<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jan 5, 2014 at 11:11 PM, NS-5 <span dir="ltr"><<a href="mailto:cybertronic@126.com" target="_blank">cybertronic@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,everyone!<br>
I want to pick 4 points,the first four points determine the radius of<br>
cylindrical bottom surface,and the fourth point determine the cylinder's<br>
height,so I can use these values to create the cylinder in the right<br>
position,and now I can build the cylinder by picking points but it is in the<br>
place where the origin of coordinates in,how can I move the cylinder to the<br>
right position?<br>
Thanks for help<br>
NS-5<br></blockquote><div><br>You could position the actual data with:<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/TransformPolyData</a><br>
<br></div><div>or you could position the actor representing that data with:<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor</a><br>
<br></div><div>See the "Transforms" slides here for a little bit more explanation:<br><br clear="all"></div><div><div><a href="http://www.vtk.org/Wiki/VTK/Presentations">http://www.vtk.org/Wiki/VTK/Presentations</a><br>
<br>David</div></div></div></div></div>