SbXfBox3fExtendBy Method (SbVec3f) |
Extends the box (if necessary) to contain the given 3D point pt.
Namespace: OIV.InventorAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax public void ExtendBy(
ref SbVec3f pt
)
Public Sub ExtendBy (
ByRef pt As SbVec3f
)
public:
void ExtendBy(
SbVec3f% pt
)
member ExtendBy :
pt : SbVec3f byref -> unit
Parameters
- pt
- Type: OIV.InventorSbVec3f
Point the box must contain.
Remarks
If the box has had
a non-identity transformation applied using the
[Overload:SetTransform] Overload method,
the point is assumed to be in the transformed space. For example, the following
code sequence:
SbXfBox3f bbox;
bbox.ExtendBy(new SbVec3f(0,0,0));
SbMatrix trans;
trans.SetTranslate(new SbVec3f(1,1,1));
bbox.SetTransform(trans);
bbox.ExtendBy(new SbVec3f(0,0,0));
will result in a bounding box extending from (-1,-1,-1) to (0,0,0) in
bbox'es local (untransformed) space.
See Also