[vtkusers] Isosurface: Multiple Contours?? Outer Surface?? my Solution
R T
doctorart at hotmail.com
Fri Jul 26 23:45:38 EDT 2002
Hello all,
thanks for your help,
the following below worked for me:
(I pre-processed image data and
then used connectivity filter)
The question stays still (at least for me):
how to get boundary faces from a polyhedral mesh?
or how to get rid of interior in a closed-surface triangular mesh?
how to extract a mesh of certain thickness?
vtkImageData *id = ReadDatFile(argv[1]);//my C Function--never mind
vtkImageThreshold *thresh=vtkImageThreshold::New();
thresh->SetInput(id);
thresh->ThresholdByUpper(60);
thresh->SetInValue(255);
thresh->SetOutValue(0);
thresh->ReleaseDataFlagOff();
vtkImageLaplacian *il=vtkImageLaplacian::New();
il->SetInput(thresh->GetOutput());
il->SetDimensionality(3);
vtkImageIslandRemoval2D *island=vtkImageIslandRemoval2D::New();
island->SetInput(il->GetOutput());
island->SetIslandValue(0);
island->SetReplaceValue (255);
island->SetAreaThreshold(2500);
island->SquareNeighborhoodOn();
vtkContourFilter *cf = vtkContourFilter::New();
cf->SetInput(island->GetOutput());
cf->SetValue(0,255);
vtkPolyDataConnectivityFilter *con=vtkPolyDataConnectivityFilter::New();
con->SetInput(cf->GetOutput());
con->SetExtractionModeToLargestRegion();
vtkPolyDataMapper *headMapper = vtkPolyDataMapper::New();
headMapper->SetInput(con->GetOutput());
>From: "R T" <doctorart at hotmail.com>
>To: vtkusers at public.kitware.com
>Subject: [vtkusers] Isosurface: Multiple Contours??
>Date: Thu, 25 Jul 2002 08:27:13 -0800
>
>
>Hello all,
>how to produce an isosurface without getting multiple contours?
>
> vtkContourFilter *cf = vtkContourFilter::New();
> cf->SetInput(id);
> cf->SetValue(0,60);
> cf->SetNumberOfContours(1);
>
>This gives numerous points and cells inside the boundary surface.
>
>Thanks in advance
>
>Roma
>
>_________________________________________________________________
>Join the worlds largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic.
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the vtkusers
mailing list