OrientedBoundingBox3D Object
Derived from:
Base Object
Defined in namespace "adsk::core" and the header file is <Core/Geometry/OrientedBoundingBox3D.h>
Description
Transient object that represents an oriented 3D bounding box. An oriented 3D bounding box is a rectangular box that can be in any orientation in model space. They are created statically using the create method of the OrientedBoundingBox3D class and are used by some functions to return oriented box information.
Methods
classType |
Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType(). |
contains |
Determines if the specified point lies within the oriented bounding box. |
copy |
Create a copy of this oriented bounding box. |
create |
Creates a transient oriented bounding box object. |
setOrientation |
Sets the orientation of the oriented bounding box. |
Properties
centerPoint |
Gets and sets the centerPoint point of the oriented box. |
height |
Gets and sets the height of the oriented bounding box in centimeters. |
heightDirection |
Gets the direction of the height of the oriented bounding box. A unit vector is always returned. |
isValid |
Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
length |
Gets and sets the length of the oriented bounding box in centimeters. |
lengthDirection |
Gets the direction of the length of the oriented bounding box. A unit vector is always returned. |
objectType |
This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.
It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType(): |
width |
Gets and sets the width of the oriented bounding box in centimeters. |
widthDirection |
Gets the direction of the width of the oriented bounding box. A unit vector is always returned. |
Accessed From
BRepBody.orientedMinimumBoundingBox,
Component.orientedMinimumBoundingBox,
FlatPatternComponent.orientedMinimumBoundingBox,
MeasureManager.getOrientedBoundingBox,
MeshBody.orientedMinimumBoundingBox,
Occurrence.orientedMinimumBoundingBox,
OrientedBoundingBox3D.copy,
OrientedBoundingBox3D.create
Samples
Version
Introduced in version December 2017