[vtkusers] Question about model bounds

Fabrice Vincent fabrice.vincent at creatis.insa-lyon.fr
Mon Jan 22 04:30:09 EST 2001


Hello

I think that :

(-1,1.5,-1.25,1.25,-1.25,1.25)=(x1,y1,z1,x2,y2,z2)  are the coordinates of two opposite corners of a
box.
SetSampleDimensions(25,25,25)  defines the number of samples  in x , y and z directions.

So,  you will get a grid of 25*25*25 points inside the specified box.

Fabrice

Nikita Kojekine AKA Kitya Karlson wrote:

> Hello!
> I use such code (i get it from examples) to create the surface
> of my implicit function:
>
> vtkSampleFunction *spline = vtkSampleFunction::New();
>     spline->SetImplicitFunction(func);
>  spline->SetModelBounds(-1,1.5,-1.25,1.25,-1.25,1.25);
>  spline->SetSampleDimensions(25,25,25);
>     spline->ComputeNormalsOff();
>
> Could you explain me the meaning of each parameter of SetModelBounds()
> and SetSampleDimensions()
> I cannot found it in the Book :(

--
Fabrice VINCENT

CREATIS (CNRS UMR 5515), INSA 502, 69621 Villeurbanne, FRANCE
email: fabrice.vincent at creatis.insa-lyon.fr
 Tel. : +33 (0)4 72 43 63 06
 Fax : +33 (0)4 72 43 85 26






More information about the vtkusers mailing list