[vtkusers] Need Help with vtkPlaneSource Sizing

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed May 19 16:57:41 EDT 2004


Use
SetOrigin(0.0, 0.0, 0.0)
SetPoint1(10.0, 0.0, 0.0 );
SetPoint2(0.0, 34.0, 0.0 );

and then
SetXResolution(10);
SetYResolution(340);

and you'll get a plane with 10x340 quadrilaterals with dimensions 1.0x0.1

When you change the resolution, you change the number of quadrilaterals, but
the area covered is still controlled by point1,point2 and origin

JB


----- Original Message ----- 
From: "Bill Vogler" <vogler at calcreek.com>
To: <vtkusers at vtk.org>
Sent: Wednesday, May 19, 2004 9:41 PM
Subject: [vtkusers] Need Help with vtkPlaneSource Sizing


> Hello -
>
> I am having problems sizing a plane created with vtkPlaneSource. The
created
> plane is of fixed size and I can't change the size using the member
function
> SetResolution();
>
> My understanding of a vtkPlaneSource is that it is an array of "m x n"
> quadrilaterals located on the specified plane. By default the width and
> height is of length one (1) and the resolution of the plane is controlled
by
> XResolution and YResolution (which are both integers).
>
> I would like to specify the width and height with a specific dimension of
> real numbers (i.e., doubles). Therefore I am a bit confused why the
> dimensions of the plane do not change is response to a SetResolution()
call.
> I am also a bit confused on how to specify this dimension using integers.
>
> TIA
>
> Bill
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>




More information about the vtkusers mailing list