SbXfBox3dExtendBy Method (SbVec3d) |
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 SbVec3d pt
)
Public Sub ExtendBy (
ByRef pt As SbVec3d
)
public:
void ExtendBy(
SbVec3d% pt
)
member ExtendBy :
pt : SbVec3d byref -> unit
Parameters
- pt
- Type: OIV.InventorSbVec3d
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:
SbXfBox3d bbox;
bbox.ExtendBy(new SbVec3d(0,0,0));
SbMatrixd trans;
trans.SetTranslate(new SbVec3d(1,1,1));
bbox.SetTransform(trans);
bbox.ExtendBy(new SbVec3d(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