[vtkusers] vtkAxes

M.Hardikar at asu.edu M.Hardikar at asu.edu
Wed May 29 13:08:32 EDT 2002


Hi there,

I am using following code to display X,Y,Z axes:

		vtkActor *actorAxes;
		actorAxes = vtkActor::New();

		double maxDim = 2.00;
		float scaleFactor = 2.5*maxDim;
		// create axes
		vtkAxes *axes;
		axes = vtkAxes::New();
		vtkPolyDataMapper *polyMapAxes = vtkPolyDataMapper::New();
		axes->SetOrigin(0,0,0);
		axes->SetScaleFactor(scaleFactor);
		polyMapAxes->SetInput(axes->GetOutput());
		actorAxes->SetMapper(polyMapAxes);
		actorAxes->PickableOff();
		pDoc->Props->AddItem(actorAxes);


Does anybody know how to increase the thickness for the axes and change the
color too?

If not,
 is there any other way to show axes?

thanks
mahesh







More information about the vtkusers mailing list