[vtkusers] Cutting assemblies??

Shiva Bissoon sbissoo2 at hotmail.com
Fri Jul 13 15:22:18 EDT 2001


Hi all,
I am resending this message.I am trying to use vtkcutter with an assembly 
but it seems to be giving an error.
Here is a snipcode...if anyone could figure out what is happening I would 
appreciate some help.

I am trying to set the Input as the assembly but it keeps giving an error.
vtkAssembly fullassem
	   fullassem SetMapper 	cubemapper
	   fullassem AddPart sphereActor1
	   fullassem AddPart sphereActor2
	   fullassem AddPart sphereActor3

	eval [fullassem GetProperty] SetOpacity 0.3

	   #now try adding a plane and cutter

	  vtkPlane planec
	   planec SetOrigin 0 0 0
	   planec SetNormal 1 0 0

	  vtkCutter cutplane; #Generate cut lines
  cutplane SetInput [fullassem GetOutput]<-----------###The errorline
  cutplane SetCutFunction planec
  cutplane GenerateCutScalarsOn
  cutplane SetValue 0 0.5

    vtkPolyDataMapper cutmapper
	  cutmapper SetInput [cutplane GetOutput]
	  cutmapper SetScalarRange .18 .7

	vtkActor cutz
	  cutz SetMapper cutmapper


Thanks in advance.
Shiva

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the vtkusers mailing list