[vtkusers] what's wrong with my code

Bill Lorensen bill.lorensen at gmail.com
Sun Oct 25 17:33:05 EDT 2009


Infoseeker, Ali Habib,

I count over 80 messages from you and assorted replies from vtk
developers and users.

Your multiple posts are not resulting in any solutions to your
problem. For example this post says you have an error. What error?

The vtk user community seeks to help users that have problems and are
willing to accept the advice of the community. Every reply requires
time and effort spent by an individual that wants to help you.

>From what I can tell from these dozens of e-mails is that you want to
generate a tetrahedral mesh from DICOM data for the purpose of finite
element analysis.

VTK is not a mesh generation system. It's primary purpose is
visualization. Some posts have suggested alternative systems for
finite element mesh generation. Please review those e-mails.

Please stop asking the same questions over and over using multiple
email addresses.

Bill

On Sun, Oct 25, 2009 at 5:09 PM, InfoSeekerr
<ali.mahmoud.habib at gmail.com> wrote:
>
> I want to create a tetrahedral mesh upon 3D volume come from 2D slices, but
> it give error any suggestion please:
>
> My code:
>
> vtk::vtkDICOMImageReader ^VDR = gcnew vtk::vtkDICOMImageReader();
>                        VDR->SetDirectoryName("H:\\work\\Master
> Degree\\DataSet\\case2\\DICOM\\PA1\\ST1\\SE2");
>                        VDR->SetDataOrigin(0, 0, 0);
>
>                        vtk::vtkImageChangeInformation ^VIC = gcnew
> vtk::vtkImageChangeInformation();
>                        VIC->SetInput(VDR->GetOutput());
>
>                        vtkClipVolume ^v = gcnew vtkClipVolume();
>                        v->SetInputConnection(VDR->GetOutputPort());
>                        v->SetValue(2.0);
>                        v->GenerateClippedOutputOff();
>
>                        vtkDataSetMapper ^mapper = gcnew vtkDataSetMapper();
>                        mapper->SetInputConnection(v->GetOutputPort());
>
>                        // actor coordinates geometry, properties, transformation
>                        vtkActor ^aSphere = gcnew vtkActor();
>                        aSphere->SetMapper(mapper);
>                        // aSphere.GetProperty().SetRepresentationToWireframe();
>                        //aSphere.GetProperty().SetColor(0,0,1); // sphere color blue
>
>                        // a renderer and render window
>                        vtkRenderer ^ren1 = gcnew vtkRenderer();
>                        vtkRenderWindow ^renWin = gcnew vtkRenderWindow();
>                        renWin->AddRenderer(ren1);
>
>                        // an interactor
>                        vtkRenderWindowInteractor ^iren = gcnew vtkRenderWindowInteractor();
>                        iren->SetRenderWindow(renWin);
>
>                        // add the actor to the scene
>                        ren1->AddActor(aSphere);
>                        //ren1.SetBackground(1,1,1); // Background color white
>
>                        // render an image (lights and cameras are created automatically)
>                        renWin->Render();
>
>                        // begin mouse interaction
>                        iren->Start();
> --
> View this message in context: http://www.nabble.com/what%27s-wrong-with-my-code-tp26051836p26051836.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list