OrientedBoundingBox Class

Oriented Bounding Box definition.
Public Class OrientedBoundingBox 
Inherits OrientedBoundingRect
This language is not supported or no code example is available.
public class OrientedBoundingBox : OrientedBoundingRect
This language is not supported or no code example is available.
Name Description
Protected constructor OrientedBoundingBox(OrientedBoundingBox) Defines an OrientedBoundingBox from another one.
Public constructor OrientedBoundingBox(IList<Point2D>) Defines an OrientedBoundingBox from a list of Point3D.
Public constructor OrientedBoundingBox(IList<Point2D>, Vector3D, Vector3D) Defines an OrientedBoundingBox from a list of Point3D by forcing the input axis-X and axis-Y orientation.
Public constructor OrientedBoundingBox(Point3D, Vector3D, Vector3D, double, double, double) Defines an OrientedBoundingBox with axis-X and axis-Y orientation.
Public constructor OrientedBoundingBox(Point3D, double, double, double) Defines an OrientedBoundingBox with World-Axis-Aligned transformation.
Top
Name Description
Public property AccumulatedTransformation Gets the global transformation given by the transformation of the parents entity (if entity is a BlockReference or is into one of it). (inherited from OrientedBoundingRect).
Public property Size The size-box.
Public property Transformation the Oriented Bounding Box transformation that defines its orientation from the world-axes. (inherited from OrientedBoundingRect).
Top
Methods
 
Name Description
Public method AccumulateTransformation(Transformation) Adds transformation to the global transformation. (inherited from OrientedBoundingRect).
Public method Clone() Creates a deep copy of this oriented bounding box.
Public method Static DoOverlap(OrientedBoundingBox, OrientedBoundingBox) Checks if two Oriented Bounding Boxes overlap each other.
Public method Static DoOverlapOrTouch(OrientedBoundingBox, OrientedBoundingBox) Checks if two Oriented Bounding Boxes overlap or touch each other.
Protected method Static DoOverlapOrTouchInternal(OrientedBoundingBox, OrientedBoundingBox, bool)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetAxis() Gets the 3-axis defining the direction of the OrientedBoundingBox
Public method GetFullTransformation() Gets the OrientedBoundingBox transformation combined with the global transformation. (inherited from OrientedBoundingRect).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetOrigin() Gets the Origin position of the OrientedBoundingBox.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetVertices() Gets the 8-vertices of the OrientedBoundingBox.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Protected method UpdateAxis()
Protected method UpdateData() Updates the data of the OrientedBoundingBox needed during collision/intersection check among others OrientedBoundingBoxes. (inherited from OrientedBoundingRect).
Protected method UpdateOrigin()
Protected method Static projectVerticesOnAxis(Point2D[], Vector2D, out double, out double) (inherited from OrientedBoundingRect).
Top
Fields
 
Name Description
Protected field _accumulatedTrans (inherited from OrientedBoundingRect).
Protected field _axis (inherited from OrientedBoundingRect).
Protected field _componentX (inherited from OrientedBoundingRect).
Protected field _componentY (inherited from OrientedBoundingRect).
Protected field _componentZ
Protected field _origin (inherited from OrientedBoundingRect).
Protected field _transformation (inherited from OrientedBoundingRect).
Protected field needToUpdate (inherited from OrientedBoundingRect).
Top
Remarks
 
The result is not guaranteed to be the minimum Oriented Bounding Box possible.

.NET Framework

Supported in: 4.8

In this article

Definition