[vtkusers] ClipClosedSurface

David Gobbi david.gobbi at gmail.com
Tue Aug 2 11:55:42 EDT 2011

Hi Laurent,

I am glad to hear that you are interested in this class.  I'm not sure
what went wrong when you tried to download it from git, but the
versions of this class in the git master and release branches both
have SetScalarModeToLabels.  This class will be part of VTK 5.8.

When SetScalarModeToLabels is used, the array is called "Labels"
(you cannot change the name).  More documentation can be found
here: http://www.vtk.org/Wiki/VTK/Closed_Surface_Clipping

 - David

On Tue, Aug 2, 2011 at 9:35 AM, Laurent <l.paul at uclouvain.be> wrote:
> Dear users,
> I would like to clip data using ClipClosedSurface and get the generated
> cells (the cap).
> I saw in the doxygen that you can Setup a flag using SetScalarModeToLabels
> that will generate scalar data for that cells (1 for the cut face and 2 for
> the active plane, 0 for the original cells).
> That seems perfect for me but this is not implemented in my version (VTK
> 5.6.1).
> I tried to download the vtkClipClosedSurface class from Git but there is no
> ScalarMode in that clas...
> I've found CellClipScalars vtkDoubleArray that seems to be the interesting
> data, but it is not used.
> Does someone knows if this option is really available and how to use it
> (Name of the scalar Array for a latter use, ...)?
> Thanks,
> Laurent.

More information about the vtkusers mailing list