Bexel Manager API Documentation
|
Represents a geometrical representation of an object. It is usually comprised of vertices/triangles but can also contain lines/edges (wireframe geometry). More...
Public Member Functions | |
Vector3D | GetVertex (int index) |
Retrieves the vertex at the specified index. More... | |
Triangle3D | GetTriangle (int index) |
Retrieves the triangle at the specified index. More... | |
Segment3D | GetEdge (int index) |
Retrieves the edge at the specified index. More... | |
IEnumerable< Vector3D > | GetAllVertices () |
Retrieves all vertices. More... | |
IEnumerable< Triangle3D > | GetAllTriangles () |
Retrieves all triangles. More... | |
IEnumerable< Segment3D > | GetAllEdges () |
Retrieves all edges. More... | |
AABB3D | GetBoundingBox () |
Returns an axis aligned bounding box (AABB) of the geometry. More... | |
OBB3D | GetOrientedBoundingBox () |
Calculates and returns an object oriented bounding box (OBB) of the geometry. More... | |
Properties | |
int | VertexCount [get] |
Returns the number of vertices associated with the geometry. More... | |
int | TriangleCount [get] |
Returns the number of triangles associated with the geometry. More... | |
int | EdgeCount [get] |
Returns the number of edges associated with this geometry. More... | |
Represents a geometrical representation of an object. It is usually comprised of vertices/triangles but can also contain lines/edges (wireframe geometry).
All of the linear measurement values are expressed in meters (m).
IEnumerable<Segment3D> Bexel.Api.IGeometry.GetAllEdges | ( | ) |
Retrieves all edges.
Implemented in Bexel.Api.Geometry, and Bexel.Api.ElementGeometry.
IEnumerable<Triangle3D> Bexel.Api.IGeometry.GetAllTriangles | ( | ) |
Retrieves all triangles.
Implemented in Bexel.Api.Geometry, and Bexel.Api.ElementGeometry.
IEnumerable<Vector3D> Bexel.Api.IGeometry.GetAllVertices | ( | ) |
Retrieves all vertices.
Implemented in Bexel.Api.ElementGeometry, and Bexel.Api.Geometry.
AABB3D Bexel.Api.IGeometry.GetBoundingBox | ( | ) |
Returns an axis aligned bounding box (AABB) of the geometry.
Implemented in Bexel.Api.Geometry, and Bexel.Api.ElementGeometry.
Segment3D Bexel.Api.IGeometry.GetEdge | ( | int | index | ) |
Retrieves the edge at the specified index.
index | Index of the edge. Must be in range [0, EdgeCount). |
Bexel.Api.InvalidApiArgumentException | Thrown if specified index is out of range. |
Implemented in Bexel.Api.ElementGeometry, and Bexel.Api.Geometry.
OBB3D Bexel.Api.IGeometry.GetOrientedBoundingBox | ( | ) |
Calculates and returns an object oriented bounding box (OBB) of the geometry.
Only XY plane is used to calculate the orientation of the object.
Implemented in Bexel.Api.Geometry, and Bexel.Api.ElementGeometry.
Triangle3D Bexel.Api.IGeometry.GetTriangle | ( | int | index | ) |
Retrieves the triangle at the specified index.
index | Index of the triangle. Must be in range [0, TriangleCount). |
Bexel.Api.InvalidApiArgumentException | Thrown if specified index is out of range. |
Implemented in Bexel.Api.ElementGeometry, and Bexel.Api.Geometry.
Vector3D Bexel.Api.IGeometry.GetVertex | ( | int | index | ) |
Retrieves the vertex at the specified index.
index | Index of the vertex. Must be in range [0, VertexCount). |
Bexel.Api.InvalidApiArgumentException | Thrown if specified index is out of range. |
Implemented in Bexel.Api.ElementGeometry, and Bexel.Api.Geometry.
|
get |
Returns the number of edges associated with this geometry.
Note that the number of edges is not related to the number of triangles nor the number of vertices. Edges are displayed as wireframe geometry in the viewer.
|
get |
Returns the number of triangles associated with the geometry.
|
get |
Returns the number of vertices associated with the geometry.