[vtkusers] clipPolyData with cube

João Paulo Simonaio Pompei joao.pompei at cenpra.gov.br
Thu Sep 12 12:22:25 EDT 2002


Hello,

I want to know what is done with the rest of the cube? The data still in computer's memory? I'm using clipPolyData
too, and i need this information.

Thanks,

Joao Paulo S. Pompei
joao.pompei at cenpra.gov.br



> Subject: Re: [vtkusers] clipPolyData with cube
> To: Erik Sobel <erik.sobel at alphatech.com>
> Cc: vtkusers at public.kitware.com
> From: David.Pont at ForestResearch.co.nz
> Date: Thu, 12 Sep 2002 09:17:32 +1200
>
> Hi Erik,
>    take a look at vtkPlanes, which you can pass to
> vtkClipPolyData->SetImplicitFunction. You could also use six instances of
> vtkPlane, pass these to vtkImplicitBoolean->AddFunction and call
> SetOperationTypeToUnion (maybe default?).
> If your data are polygons you may find that the boundaries of your clipped
> cube are a bit ragged, this is due to the linear interpolation used in
> vtkClipPolyData. You can use vtkLinearSubdivisionFilter with
> SetNumberOfSubdivisions to 2 or 3, careful with higher values, it gets
> exponentially slow. This is a hack, but often useful.
>
>   Happy clipping
>     Dave Pont
> _




More information about the vtkusers mailing list