Archived issue #0016832
New methods in Bnd classes (Bnd_B2x and Bnd_B3x).
Description
The improvement contains:
New methods added to classes Bnd_B2x and Bnd_B3x (2- and 3-dimensional bounding
box):
- IsVoid() indicates whether the box is uninitialized. The uninitialized state
should be checked before calling CornerMin(), CornerMax() and SquareExtent(),
otherwise these methods return irrelevant results;
- IsIn (theBox) checks if the box is completely inside the given box 'theBox';
- IsIn (theBox, theTrsf) checks if the box is completely inside 'theBox'
transformed with the given transformation 'theTrsf'.
In method IsOut() checking for intersection of the box with a circle/sphere, the
3rd parameter is added defining if the circle/sphere is hollow. If True, then
the box inside the circle/sphere is be considered in intersection.
In method Bnd_B3x::IsOut (theLine, isRay) the 3rd parameter is added -
theOverthickness. It defines the addition to the size of the tested box; it can
also be understood as the radius of the cylinder that is checked for
intersection instead of the given line.
New methods added to classes Bnd_B2x and Bnd_B3x (2- and 3-dimensional bounding
box):
- IsVoid() indicates whether the box is uninitialized. The uninitialized state
should be checked before calling CornerMin(), CornerMax() and SquareExtent(),
otherwise these methods return irrelevant results;
- IsIn (theBox) checks if the box is completely inside the given box 'theBox';
- IsIn (theBox, theTrsf) checks if the box is completely inside 'theBox'
transformed with the given transformation 'theTrsf'.
In method IsOut() checking for intersection of the box with a circle/sphere, the
3rd parameter is added defining if the circle/sphere is hollow. If True, then
the box inside the circle/sphere is be considered in intersection.
In method Bnd_B3x::IsOut (theLine, isRay) the 3rd parameter is added -
theOverthickness. It defines the addition to the size of the tested box; it can
also be understood as the radius of the cylinder that is checked for
intersection instead of the given line.
Additional information
Documentation remark, added by Author 2007-09-21 08:13:12:
New features:
New methods added to classes Bnd_B2x and Bnd_B3x (2- and 3-dimensional bounding
box):
- IsVoid() indicates whether the box is uninitialized. The uninitialized state
should be checked before calling CornerMin(), CornerMax() and SquareExtent(),
otherwise these methods return irrelevant results;
- IsIn (theBox) checks if the box is completely inside the given box theBox';
- IsIn (theBox, theTrsf) checks if the box is completely inside 'theBox'
transformed with the given transformation 'theTrsf'.
In method IsOut() checking for intersection of the box with a circle/sphere, the
3rd parameter is added defining if the circle/sphere is hollow. If True, then a
box that is completely inside the circle/sphere is not considered in intersection.
In method Bnd_B3x::IsOut (theLine, isRay) the 3rd parameter is added -
theOverthickness. It defines the addition to the size of the tested box; it can
also be understood as the radius of the cylinder that is checked for
intersection instead of the given line.
Modified entities:
Package Bnd
Classes Bnd_B3f, Bnd_B3d, Bnd_B2f, Bnd_B2d
New features:
New methods added to classes Bnd_B2x and Bnd_B3x (2- and 3-dimensional bounding
box):
- IsVoid() indicates whether the box is uninitialized. The uninitialized state
should be checked before calling CornerMin(), CornerMax() and SquareExtent(),
otherwise these methods return irrelevant results;
- IsIn (theBox) checks if the box is completely inside the given box theBox';
- IsIn (theBox, theTrsf) checks if the box is completely inside 'theBox'
transformed with the given transformation 'theTrsf'.
In method IsOut() checking for intersection of the box with a circle/sphere, the
3rd parameter is added defining if the circle/sphere is hollow. If True, then a
box that is completely inside the circle/sphere is not considered in intersection.
In method Bnd_B3x::IsOut (theLine, isRay) the 3rd parameter is added -
theOverthickness. It defines the addition to the size of the tested box; it can
also be understood as the radius of the cylinder that is checked for
intersection instead of the given line.
Modified entities:
Package Bnd
Classes Bnd_B3f, Bnd_B3d, Bnd_B2f, Bnd_B2d
Public activity
No public notes
Participants are labeled by their role within this record.