[vtkusers] vtkActor->SetBounds(double[])

Najzero adrian.gabriel at 4plus.de
Mon Aug 27 09:00:15 EDT 2012


that sounds complicated.

Maybe you want to take a look at
though I am not sure if the boundingBox is your problem.

I'd suggest another approach using vtkPlane instead of the boundingBox to
create those contours.
Most of the time you want a contour through the center ( SetNormal and
SetOrigin for that vtkPlane from the vtkActor coordinates/orientation).

pseudoCode for 1 slice missing some handling for that contourActor (like
setRepresnetationToWireframe() and stuff)

slicePlane = vtkPlane::New();
cutterPlane = vtkCutter::New();

cutterPlane->SetInput( yourPolyData );
cutterPlane->SetValue( 0, 0.5 );
cutterPlane->SetCutFunction( slicePlane );

// after rotating your object just always call
slicePlane->SetNormal( yourvtkObject.getX(), yvtkObject.getY(),
slicePlane->SetOrigin( yourVtkObject.GetOrigin() );


View this message in context: http://vtk.1045678.n5.nabble.com/vtkActor-SetBounds-double-tp5715558p5715568.html
Sent from the VTK - Users mailing list archive at Nabble.com.

More information about the vtkusers mailing list