[vtkusers] clipPolyData with cube

David.Pont at ForestResearch.co.nz David.Pont at ForestResearch.co.nz
Sun Sep 15 17:02:43 EDT 2002


Hi Joao,
  with vtkClipPolyData SetGenerateClippedOutputOn, then GetClippedOutput
you can get the part of the data clipped away. The part rmaining after
clipping is good old GetOutput. With InsideOutOn you can reverse the sense
of these outputs.

  regards
   Dave Pont




|--------+--------------------------------->
|        |          João Paulo Simonaio    |
|        |          Pompei                 |
|        |          <joao.pompei at cenpra.gov|
|        |          .br>                   |
|        |          Sent by:               |
|        |          vtkusers-admin at public.k|
|        |          itware.com             |
|        |                                 |
|        |                                 |
|        |          13/09/2002 04:52       |
|        |          Please respond to      |
|        |          joao.pompei            |
|        |                                 |
|--------+--------------------------------->
  >------------------------------------------------------------------------------------------------------------|
  |                                                                                                            |
  |      To:     vtkusers at public.kitware.com                                                                   |
  |      cc:                                                                                                   |
  |      Subject:     Re: [vtkusers] clipPolyData with cube                                                    |
  >------------------------------------------------------------------------------------------------------------|




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
> _

_______________________________________________
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







More information about the vtkusers mailing list