From boundingbox:

inline float& xMin() { return _min.x(); }
inline float xMin() const { return _min.x(); }
inline float& yMin() { return _min.y(); }
inline float yMin() const { return _min.y(); }
inline float& zMin() { return _min.z(); }
inline float zMin() const { return _min.z(); }

inline float& xMax() { return _max.x(); }
inline float xMax() const { return _max.x(); }
inline float& yMax() { return _max.y(); }
inline float yMax() const { return _max.y(); }
inline float& zMax() { return _max.z(); }
inline float zMax() const { return _max.z(); }

The units returned are whatever units your model uses, so if your model is 1.0 units -> 1 meter, then the units will be in meters, 1.0 units -> inch, then it'll be in inches and so on.

Sorry for the typo in my last email, "extends" should have been "extents". I always make silly grammatical mistakes like that :)


Alan.

On 2 May 2006, at 17:06, [EMAIL PROTECTED] wrote:

Exactly, I just want to achieve the selected object's bounding extends. Which function can be used? getbound() is just used to achieve bounding box,
not scale of bound.

Quoting Alan Purvis <[EMAIL PROTECTED]>:

Perhaps he means the object's bounding extends?


On 2 May 2006, at 15:07, Robert Osfield wrote:

On 5/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
When I clicked a model using the mouse, Which function can I use
to get the
the scale of the model? Thanks.

What do you mean by scale of the model???  Units?  The OSG doesn't
explicitly have units, it simply works in the units the database in
loaded with.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/




_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to