[vtkusers] cellClipping for vtkGeometryFilter
Pan, Tony C (CRD)
tpan at crd.ge.com
Thu Jan 3 16:09:50 EST 2002
Marc,
SetCellClipping takes a boolean value (in the case of C++, 0 for false and 1 for true), not a cell
id. It has the same function as CellClippingOn and CellClippingOff. So, in your code, you've turned
cell clipping off, then back on. If you want to prevent the cell from being clipped, then removing
the line CellClippingOn should do the trick.
This kind of syntax is prevalent in vtk API. There are a lot of functions that have the On/Off form
with a corresponding Set form which takes a boolean argument.
Tony
-----Original Message-----
From: Marc Niethammer [mailto:marcn at ece.gatech.edu]
Sent: Thursday, January 03, 2002 1:32 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] cellClipping for vtkGeometryFilter
Hi,
I am trying to prevent the GeometryFilter from converting
individual cells by using SetCellClipping cellID.
However, the following code seems to have no effect at all.
(sPts are vtkStructuredPoints here).
vtkGeometryFilter gf
gf SetCellClipping 0
gf CellClippingOn
gf SetInput sPts
Does anybody have an idea what that is?
(Did I misunderstand the meaning of SetCellClipping?)
Thanks.
-- Marc
_______________________________________________
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