<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"><LINK rel=stylesheet
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT size=2 face=Verdana>Hi all,</FONT></DIV>
<DIV>I have define two plane with the class of vtkPlanesource. But they are too
small. How can I modify the size of the plane?</DIV>
<DIV>This is the C# code almost the same as C++.</DIV>
<DIV> </DIV>
<DIV>
<DIV> vtkPlaneSource planeSource1 = new vtkPlaneSource();</DIV>
<DIV> vtkPlaneSource planeSource2 = new vtkPlaneSource();</DIV>
<DIV> planeSource1.SetCenter(x, y, z);</DIV>
<DIV> planeSource1.SetNormal(0.0, y, 0.0);</DIV>
<DIV> planeSource2.SetCenter(x, y, z);</DIV>
<DIV> planeSource2.SetNormal(x, 0.0, 0.0);</DIV>
<DIV> vtkPolyData plane1 = planeSource1.GetOutput();</DIV>
<DIV> vtkPolyData plane2 = planeSource2.GetOutput();</DIV>
<DIV> vtkPolyDataMapper mapper1 = new vtkPolyDataMapper();</DIV>
<DIV> mapper1.SetInput(plane1);</DIV>
<DIV> vtkPolyDataMapper mapper2 = new vtkPolyDataMapper();</DIV>
<DIV> mapper2.SetInput(plane2);</DIV>
<DIV> vtkActor actor1 = new vtkActor();</DIV>
<DIV> vtkActor actor2 = new vtkActor();</DIV>
<DIV> actor1.SetMapper(mapper1);</DIV>
<DIV> actor2.SetMapper(mapper2);</DIV>
<DIV> actor1.GetProperty().SetColor(0.0, 1.0, 0.0);</DIV>
<DIV> actor2.GetProperty().SetColor(1.0, 0.0, 0.0);</DIV>
<DIV> ren.AddActor(actor1);</DIV>
<DIV> ren.AddActor(actor2);</DIV></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2010-09-30
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>myaqua1982</SPAN>
</FONT></DIV></FONT></BODY></HTML>