[vtkusers] Boolean Operation on two (cube) objects

David Doria daviddoria+vtk at gmail.com
Fri Mar 19 18:42:59 EDT 2010


On Fri, Mar 19, 2010 at 3:24 PM, 이정규 <glazex2 at naver.com> wrote:
> Hello Sebastian,
> I would look for the right filter that vtk has.. otherwise I'll do the
> following(for union operation. other operations will be similar)
> 1. get all geometry of two objects that you want to perform union operation.
> 2. compute points that are inside the object A and object B by testing point
> in tetrahydron(I forget the formula but it's simple combination of dot and
> cross products)
> 3. eliminate one point by one point while fixing topology.
> 4. merge the result and send it back to vtk
> Sorry for not being much help.
> --
> Jeonggyu Lee

You could "clip" the data set:
http://www.vtk.org/Wiki/VTK/Examples/ImplicitDataSet

with the InsideOut variable set to true. This would remove the points
that you have selected.

Thanks,

David



More information about the vtkusers mailing list