[vtkusers] trying to clip a polyData with an other
David.Pont at ForestResearch.co.nz
David.Pont at ForestResearch.co.nz
Mon Mar 8 14:46:16 EST 2004
Laurent,
vtkImplicitDataSet uses the data set scalars to perform clipping, I am
not sure what scalars (if any) are produced by vtkSuperqadricSource. But I
see there is vtkSuperquadric which can be passed directly to
vtkClipPolydata->SetClipFunction.
Dave P
Laurent Mundeleer
<lmundele at ulb.ac. To: vtk <vtkusers at vtk.org>
be> cc:
Sent by: Subject: [vtkusers] trying to clip a polyData with an other
vtkusers-admin at vt
k.org
08/03/2004 22:56
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
_______________________________________________
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://www.vtk.org/mailman/listinfo/vtkusers
_
More information about the vtkusers
mailing list