[vtkusers] using vtkImplicitFunction in two ways to clip a cylinder
Dean Inglis
dean.inglis at camris.ca
Tue May 3 12:48:51 EDT 2011
Im having a problem getting a proof of principle established
that demonstates clipping with vtkClipPolyData using vtkImplicitDataSet.
I would ultimately like to clip a vtkPolyData with an arbitrary
(non-parametric)
surface defined by vtkPolyData composed of 2D cells (vtkTriangle,
vtkTriangleStrip
etc.). I have coded two simple demos in tcl: one uses a vtkPlane as the
vtkImplicitFunction and is controlled interactively with
vtkImplicitPlaneWidget,
the other uses a vtkPolyData output from a vtkPlaneWidget. In the latter
case
I am using vtkImplicitDataSet as the function by assigning a scalar array
(of 1's) to the
polydata, but no clipping occurs. Can anyone offer suggestion on how to get
the latter demo working?
best,
Dean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImplicitPlaneWidgetClip.tcl
Type: application/octet-stream
Size: 1778 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110503/defdc51f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PlaneWidgetClip.tcl
Type: application/octet-stream
Size: 2062 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110503/defdc51f/attachment-0001.obj>
More information about the vtkusers
mailing list