<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi,<BR>
<BR>
I want to set a set of planes at specific Z coordinates. I tried to add the following code and it doesnt do anything. Any help would be greatly appreciated.<BR>
<BR><FONT size=1>
<FONT color=#000000>vtkTransform *transPlane0 = vtkTransform::New();</FONT><BR>
<FONT color=#000000>transPlane0->RotateZ(180.0);</FONT><BR>
<FONT color=#000000>transPlane0->Scale(640.0,480.0,1.0);</FONT><BR>
<FONT color=#000000>transPlane0->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->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->SetInput(plane0->GetOutput());</FONT><BR>
<FONT color=#000000>planefilter0->SetTransform(transPlane0);</FONT><BR>
<FONT color=#000000>planefilter0->Update();</FONT><BR>
<FONT color=#000000>vtkPolyDataMapper *planeMapper0 = vtkPolyDataMapper::New();</FONT><BR>
<FONT color=#000000>planeMapper0->SetInput(planefilter0->GetOutput());</FONT><BR>
<FONT color=#000000>planeMapper0->SetColorModeToMapScalars();</FONT><BR>
<FONT color=#000000></FONT><BR>
<FONT color=#000000>vtkActor *planeActor0 = vtkActor::New();</FONT><BR>
<FONT color=#000000>planeActor0->SetMapper(planeMapper0);</FONT><BR>
<FONT color=#000000>planeActor0->GetProperty()->SetOpacity(0.35);</FONT><BR>
<FONT color=#000000>ren->AddActor(planeActor0);</FONT><BR>
<FONT color=#000000></FONT> <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> <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>