<div dir="ltr">Hi all,<br><br>I'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 "square" 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> vtkActor[] actors = new vtkActor[2];<br><br> vtkJPEGReader reader = new vtkJPEGReader();<br> reader.SetFileName(lhs);<br> reader.Update();<br>
vtkTexture texture = new vtkTexture();<br> texture.SetInputConnection(reader.GetOutputPort());<br> texture.InterpolateOn();<br> <br> vtkPlaneSource plane = new vtkPlaneSource();<br> vtkPolyDataMapper planeMapper = new vtkPolyDataMapper();<br>
planeMapper.SetInputConnection(plane.GetOutputPort());<br> vtkActor planeActor = new vtkActor();<br><br> planeActor.SetMapper(planeMapper);<br> planeActor.SetTexture(texture);<br> planeActor.SetOrientation(0, 0, 0);<br>
<br> ...<br><br> actors[0] = planeActor;<br> actors[1] = plane2Actor;<br><br> return actors;<br>}<br><br><br><br>I need help in urgent. :( <br><br>Thanks...<br><br>Gokhan<br><br></div>