[vtkusers] trying to clip a polyData with an other

Laurent Mundeleer lmundele at ulb.ac.be
Mon Mar 8 04:56:50 EST 2004


Hi All,

I'dl like to clip a vtkPolyData with another one.
Here's my code, based on the examples:

---------------------

vtkImplicitDataSet *v = vtkImplicitDataSet::New();
v->SetDataSet(ovoideSample->GetInput()); // ovoideSample has on input a
vtkSuperquadricSource

vtkClipPolyData *clipper = vtkClipPolyData::New();
clipper->SetInput(tumorSample->GetInput()); // tumorSample has on input
a vtkSphereSource

clipper->SetClipFunction(v);
clipper->GenerateClipScalarsOn();
clipper->Update();

tumorSample->SetInput(clipper->GetOutput());
aff->ChargerModel3D(tumorSample);

---------------------

but after that my tumorSample is empty.
What do i wrong?

Thanks in advance,
Regards

Laurent





More information about the vtkusers mailing list