<div dir="ltr">Hi all,<br><br>I&#39;ve made a plane using vtkTexture and vtkPlaneSource. The image file which used for vtkTexture has dimensions of 487x600. When it is rendered, it is converted to 1x1 &quot;square&quot; plane. I want the image dimension rates to remain same. Is there a parameter for this? How can i do this? The following is my code snippet.<br>
<br><br>public static vtkActor[] createActors(String lhs, String rhs) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkActor[] actors = new vtkActor[2];<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkJPEGReader reader = new vtkJPEGReader();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; reader.SetFileName(lhs);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; reader.Update();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkTexture texture = new vtkTexture();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; texture.SetInputConnection(reader.GetOutputPort());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; texture.InterpolateOn();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkPlaneSource plane = new vtkPlaneSource();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkPolyDataMapper planeMapper = new vtkPolyDataMapper();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; planeMapper.SetInputConnection(plane.GetOutputPort());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkActor planeActor = new vtkActor();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; planeActor.SetMapper(planeMapper);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; planeActor.SetTexture(texture);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; planeActor.SetOrientation(0, 0, 0);<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; actors[0] = planeActor;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; actors[1] = plane2Actor;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return actors;<br>}<br><br><br><br>I need help in urgent. :( <br><br>Thanks...<br><br>Gokhan<br><br></div>