<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi,<BR>
&nbsp;<BR>
I want to set a set of planes at specific Z coordinates.&nbsp; I tried to add the following code and it doesnt do anything.&nbsp; Any help would be greatly appreciated.<BR>
&nbsp;<BR><FONT size=1>
<FONT color=#000000>vtkTransform *transPlane0 = vtkTransform::New();</FONT><BR>
<FONT color=#000000>transPlane0-&gt;RotateZ(180.0);</FONT><BR>
<FONT color=#000000>transPlane0-&gt;Scale(640.0,480.0,1.0);</FONT><BR>
<FONT color=#000000>transPlane0-&gt;Translate(-320,240,0.0);</FONT></FONT><FONT face="" size=1><FONT color=#000000>//-320.0,240.0,0.0);</FONT><BR></FONT><FONT size=1>
<FONT color=#000000>transPlane0-&gt;Scale(-640,480,1.0);</FONT><BR>
</FONT><FONT size=1><FONT color=#000000>// Add planes... one for each image</FONT><BR></FONT><FONT size=1>
<FONT color=#000000>vtkPlaneSource *plane0 = vtkPlaneSource::New();</FONT><BR>
</FONT><FONT face="" size=1><FONT color=#000000>// Premultiply the plane transformation</FONT><BR></FONT><FONT color=#ffff00 size=1>
<FONT color=#000000>vtkTransformPolyDataFilter *planefilter0 = vtkTransformPolyDataFilter::New(); </FONT><BR>
<FONT color=#000000>planefilter0-&gt;SetInput(plane0-&gt;GetOutput());</FONT><BR>
<FONT color=#000000>planefilter0-&gt;SetTransform(transPlane0);</FONT><BR>
<FONT color=#000000>planefilter0-&gt;Update();</FONT><BR>
<FONT color=#000000>vtkPolyDataMapper *planeMapper0 = vtkPolyDataMapper::New();</FONT><BR>
<FONT color=#000000>planeMapper0-&gt;SetInput(planefilter0-&gt;GetOutput());</FONT><BR>
<FONT color=#000000>planeMapper0-&gt;SetColorModeToMapScalars();</FONT><BR>
<FONT color=#000000></FONT><BR>
<FONT color=#000000>vtkActor *planeActor0 = vtkActor::New();</FONT><BR>
<FONT color=#000000>planeActor0-&gt;SetMapper(planeMapper0);</FONT><BR>
<FONT color=#000000>planeActor0-&gt;GetProperty()-&gt;SetOpacity(0.35);</FONT><BR>
<FONT color=#000000>ren-&gt;AddActor(planeActor0);</FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR>
<FONT face="Times New Roman, Times, Serif" color=#000000 size=3>Thanks</FONT><BR>
<FONT face="Times New Roman" color=#000000 size=3></FONT>&nbsp;<BR>
<FONT face="Times New Roman" color=#000000 size=3>Neerav Patel</FONT><BR></FONT><br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>