Bexel Manager API Documentation
|
Represents the geometrical representation associated with the element. More...
Public Member Functions | |
Geometry | GetGeometry () |
Retrieves the geometry object of the element. More... | |
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 | |
bool | HasGeometry [get] |
Indicates whether the element has geometrical representation. More... | |
bool | IsInstanced [get] |
Indicates whether the element has instanced geometry. If True, use cast to Bexel.Api.InstancedGeometry when calling GetGeometry to retrieve instance information. More... | |
int | VertexCount [get] |
int | TriangleCount [get] |
int | EdgeCount [get] |
Properties inherited from Bexel.Api.IGeometry | |
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 the geometrical representation associated with the element.
IEnumerable<Segment3D> Bexel.Api.ElementGeometry.GetAllEdges | ( | ) |
IEnumerable<Triangle3D> Bexel.Api.ElementGeometry.GetAllTriangles | ( | ) |
IEnumerable<Vector3D> Bexel.Api.ElementGeometry.GetAllVertices | ( | ) |
AABB3D Bexel.Api.ElementGeometry.GetBoundingBox | ( | ) |
Returns an axis aligned bounding box (AABB) of the geometry.
Implements Bexel.Api.IGeometry.
Segment3D Bexel.Api.ElementGeometry.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. |
Implements Bexel.Api.IGeometry.
Geometry Bexel.Api.ElementGeometry.GetGeometry | ( | ) |
Retrieves the geometry object of the element.
Bexel.Api.InvalidApiOperationException | Thrown if element has no geometry. |
OBB3D Bexel.Api.ElementGeometry.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.
Implements Bexel.Api.IGeometry.
Triangle3D Bexel.Api.ElementGeometry.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. |
Implements Bexel.Api.IGeometry.
Vector3D Bexel.Api.ElementGeometry.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. |
Implements Bexel.Api.IGeometry.
|
get |
Indicates whether the element has geometrical representation.
|
get |
Indicates whether the element has instanced geometry. If True, use cast to Bexel.Api.InstancedGeometry when calling GetGeometry to retrieve instance information.