<div dir="ltr"><div><div><div><div>Hi Doug,<br></div>I guess you'll need to use the Origin and the Point1 and Point2 attributes [1] in order to do so.<br><br></div>You may want to have a look at the example [2] or the vtkPlaneSource implementation itself [3].<br></div><br>HTH,<br></div>JON HAITZ<br><div><div><br><div><br>[1] <a href="http://www.vtk.org/doc/nightly/html/classvtkPlaneSource.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkPlaneSource.html</a><br><div><div>[2] <a href="http://www.itk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines" target="_blank">http://www.itk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines</a><br>[3] <a href="https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/Sources/vtkPlaneSource.cxx" target="_blank">https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/Sources/vtkPlaneSource.cxx</a><br><br><div><div><div dir="ltr"></div></div></div>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Doug Hoppes</b> <span dir="ltr"><<a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>></span><br>Date: 18 March 2015 at 20:18<br>Subject: [vtkusers] Setting size of vtkPlaneSource<br>To: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br><br><br>





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">                Okay, this may be a simple question but I can’t seem to find the answer.  I have a vtkplanesource and I need to set the size of the plane.  How?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My code:<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt;font-family:"Courier New"">     
<span style="color:green">// Create a plane<u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt;font-family:"Courier New"">     
<span style="color:rgb(1,0,1)">vtkSmartPointer</span><<span style="color:rgb(1,0,1)">vtkPlaneSource</span>>
<span style="color:rgb(1,0,1)">planeSource</span> = <span style="color:rgb(1,0,1)">vtkSmartPointer</span><<span style="color:rgb(1,0,1)">vtkPlaneSource</span>>::<span style="color:rgb(1,0,1)">New</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt;font-family:"Courier New"">     
<span style="color:rgb(1,0,1)">planeSource</span>-><span style="color:rgb(1,0,1)">SetCenter</span>(<span style="color:rgb(1,0,1)">pCenterPoint</span>);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10pt;font-family:"Courier New"">     
<span style="color:rgb(1,0,1)">planeSource</span>-><span style="color:rgb(1,0,1)">SetNormal</span>(<span style="color:rgb(1,0,1)">pLineVector</span>);<span><font color="#888888"><u></u><u></u></font></span></span></p><span><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Doug<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></div><br></div></div></div></div></div></div>