Click or drag to resize
SbXfBox3fExtendBy Method (SbVec3f)
Extends the box (if necessary) to contain the given 3D point pt.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.1.Release.7989217834dd2b99155f267b6c8c70f9feacdedd
Syntax
public void ExtendBy(
	ref SbVec3f pt
)

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