inventor/SoKnot.cpp
void
SoKnot::computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center)
{
  
  center = (const float*)&(knot->getCenter());
  Vector3 BBox_Min, BBox_Max;
  this->knot->getBoundingBox(BBox_Min,BBox_Max);
  
  box.setBounds(SbVec3f((const float*)&BBox_Min),
		SbVec3f((const float*)&BBox_Max));
  
}
/*!
Implemented by SoShape subclasses to let the SoShape
superclass know the exact size and weighted center point
of the shape's bounding box.

The bounding box and center point should be calculated
and returned in the local coordinate system.

The method implements action behavior for shape nodes
for SoGetBoundingBoxAction. It is invoked from
SoShape::getBoundingBox(). (Subclasses should not
override SoNode::getBoundingBox().)

The box parameter sent in is guaranteed to be an
empty box, while center is undefined upon function
entry.

Implements SoShape. 
*/
Implemented by SoShape subclasses to let the SoShape
superclass know the exact size and weighted center point
of the shape's bounding box.

The bounding box and center point should be calculated
and returned in the local coordinate system.

The method implements action behavior for shape nodes
for SoGetBoundingBoxAction.

The box parameter sent in is guaranteed to be an
empty box, while center is undefined upon function
entry.


Implemented by SoShape subclasses to let the SoShape superclass know the exact size and weighted center point of the shape ' s bounding box . The bounding box and center point should be calculated and returned in the local coordinate system . The method implements action behavior for shape nodes for SoGetBoundingBoxAction . The box parameter sent in is guaranteed to be an empty box while center is undefined upon function entry .
void
SoKnot::computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center)
{
  center = (const float*)&(knot->getCenter());
  Vector3 BBox_Min, BBox_Max;
  this->knot->getBoundingBox(BBox_Min,BBox_Max);
  box.setBounds(SbVec3f((const float*)&BBox_Min),
		SbVec3f((const float*)&BBox_Max));
}
void SoKnot :: computeBBox ( SoAction * action , SbBox3f & box , SbVec3f & center ) { center = ( const float * ) & ( knot -> getCenter ( ) ) ; Vector3 BBox_Min , BBox_Max ; this -> knot -> getBoundingBox ( BBox_Min , BBox_Max ) ; box . setBounds ( SbVec3f ( ( const float * ) & BBox_Min ) , SbVec3f ( ( const float * ) & BBox_Max ) ) ; }
Implemented by SoShape subclasses to let the SoShape
superclass know the exact size and weighted center point
of the shape's bounding box.
Implemented by SoShape subclasses to let the SoShape superclass know the exact size and weighted center point of the shape ' s bounding box .