Dear David Doria :<br><br><div class="gmail_quote">2012/4/18 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im">2012/4/18 Jothybasu Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Look at this<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Cube" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Cube</a><br><br>SetDimesions and SetOrigin should do what you need.<br>


<br>Jothy<br></div></blockquote><div><br></div></div>Additionally, you can use the vtkCubeSource to setup the topology (connectivity), then use&nbsp;</div><div class="gmail_quote"><br></div><div class="gmail_quote">vtkPoints* points = vtkPoints::New();</div>

<div class="gmail_quote"><br></div><div class="gmail_quote">points-&gt;InsertNextPoint(x,y,z);</div><div class="gmail_quote">//&nbsp;...&nbsp;do this 8 times for your 8 points...</div><div class="gmail_quote"><br></div><div class="gmail_quote">

cubeSource-&gt;GetOutput()-&gt;SetPoints(points);</div></blockquote><div><br>Thank you for your help!<br><br>But I used &quot;cubeSource-&gt;GetOutput()-&gt;SetPoints(points);&quot; that you introduced, the cube created still has default attributes. Do you have any ideas ?<br>
&nbsp;</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><br></div><div class="gmail_quote">David<br></div>
</blockquote></div><br><br clear="all"><br>-- <br><br> ---------------------<br>Best Regards!<br><br>===============================================<br>Rong Xu,&nbsp; Ph.D Student<br>Ohya Lab<br>Graduate School of Global Information
and Telecommunication<br>Studies (GITS), Waseda University<br>1-6-1 Nishi Waseda, Shinjuku-ku,
Tokyo, Japan (¨“169-8050)<br><br>Tel:&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; +81-80-4208-1207<br>E-mail:&nbsp; &nbsp;&nbsp; <a href="mailto:xurong1981@gmail.com" target="_blank">xurong1981@gmail.com</a><br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <a href="mailto:xurong@fuji.waseda.jp" target="_blank">xurong@fuji.waseda.jp</a><br>
===============================================<br><br>