<div class="gmail_quote">2012/4/18 Jothybasu Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com">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>Additionally, you can use the vtkCubeSource to setup the topology (connectivity), then use </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">// ... 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><div class="gmail_quote"><br></div><div class="gmail_quote">David<br></div>