[vtkusers] Test
Yang, Jinzhong
jinzhong76 at gmail.com
Mon Jun 22 18:44:19 EDT 2009
Thank you all for your reply. So it works, great! :)
Here is my question.
I have an enclosed surface (in vtkPolyData format) and I use vtkClipPolyData
to clip the surface in a smaller volume. After the clip, I get a surface
that is not closed - it becomes open at the cutting plane. I wonder if there
is any simple method in VTK to make the new surface closed again - maybe
just put some points on the cutting plane and compose some triangular cells.
Here is the source code that I used to clip the surface.
roi_start[3] is the x,y,z values of the starting point of ROI, roi_end[3]
are the x,y,z values of the ending point of ROI.
meshProcessor->GetOutputPort() is an enclosed surface.
double roi_start[3], roi_end[3];
vtkPlanes* BoundingBox = vtkPlanes::New();
BoundingBox->SetBounds(roi_start[0], roi_end[0], roi_start[1], roi_end[1],
roi_start[2], roi_end[2]);
vtkClipPolyData * clipper = vtkClipPolyData::New();
clipper->SetInputConnection(meshProcessor->GetOutputPort());
clipper->SetClipFunction(BoundingBox);
clipper->InsideOutOn();
clipper->Update();
Thanks,
-Jinzhong
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of David Doria
Sent: Monday, June 22, 2009 5:05 PM
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Test
On Mon, Jun 22, 2009 at 5:48 PM, Yang, Jinzhong <jinzhong76 at gmail.com>
wrote:
Test if I can send an email to the mailing list. I failed to send my mail to
the list for several times, but I did see my email on the website.
Yep, its working.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090622/63d012d9/attachment.htm>
More information about the vtkusers
mailing list