[vtkusers] [vtk-developers] I 'm not sure if my mails be sent to the vtk users or not
Berk Geveci
berk.geveci at kitware.com
Thu Oct 15 07:32:43 EDT 2009
Hi Ali,
Please stop cross-posting your question to the vtk-developers list.
This mailing list is for those that develop VTK itself and not for
users of VTK. Your posts have been received by the vtk-users list and
some of them received plenty of answers.
Best,
-berk
On Wed, Oct 14, 2009 at 11:29 AM, Ali Habib <ali.mahmoud.habib at gmail.com> wrote:
> Hi All,
>
> this is my fourth time to send to your group asking the help , I amn't sure
> if my questions be sent or not but this is my question again:
>
> I created a 3D volumeof skull from 2D slices I want to create a Mesh on this
> 3D I tried alot of things and I found in an old question an algorithm but
> when applying it always give bug and error said that VTKinttype array can't
> load elements :I used getactualmemorysize and numberofcells and numberof
> point:at marching, till normal steps I have 23799 kb , 6608388 cells , and
> 3306508 points ,I commented the delaunary part and return the same error :
>
> the code is :
>
> ren1 = gcnew vtk::vtkRenderer();
> renwM = r;
> renwM::AddRenderer(ren1);
> iren::SetRenderWindow(renwM);
>
>
>
> vtk::vtkMarchingCubes ^mcubes = gcnew vtk::vtkMarchingCubes();
> mcubes->GetOutput()->ReleaseDataFlagOff();
> mcubes->SetInput(VoxelData);
> mcubes->SetValue(0, 4);
> mcubes->ComputeGradientsOn();
> mcubes->Update();
> vtk::vtkSmoothPolyDataFilter ^smoother = gcnew
> vtk::vtkSmoothPolyDataFilter();
> smoother->GetOutput()->ReleaseDataFlagOff();
> smoother->SetInput(mcubes->GetOutput());
> smoother->SetNumberOfIterations(5);
> smoother->SetRelaxationFactor(0.70);
> smoother->SetFeatureAngle(70);
> smoother->FeatureEdgeSmoothingOn();
> smoother->BoundarySmoothingOn();
>
> smoother->Update();
> vtk::vtkPolyDataNormals ^normals = gcnew vtk::vtkPolyDataNormals();
> normals->GetOutput()->ReleaseDataFlagOff();
> normals->SetInput(smoother->GetOutput());
> normals->SetFeatureAngle(80);
> normals->Update();
>
> vtk::vtkDelaunay3D ^delaunay4 = gcnew vtkDelaunay3D();
> try
> {
>
>
>
> delaunay4->SetInputConnection(normals->GetOutputPort());
> delaunay4->Update();
>
> }
> catch(System::Exception ^ex)
> {
>
>
> MessageBox::Show(ex->Message);
>
>
>
> }
>
>
> vtkDataSetMapper ^mapper = gcnew vtk::vtkDataSetMapper();
> mapper->SetInputConnection(delaunay4->GetOutputPort());
>
> vtkActor ^actor = gcnew vtk::vtkActor();
> actor->SetMapper(mapper);
> actor->GetProperty()->SetRepresentationToWireframe();
>
> ren1::AddActor(actor);
>
> renwM::Render();
> iren->Initialize();
> iren::Enable();
>
>
>
>
> Looking forward to your help
>
> Best regards
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
More information about the vtkusers
mailing list