Navigation
API > API/Runtime > API/Runtime/MeshDescription
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMeshDescriptionBase
- UStaticMeshDescription
References
| Module | MeshDescription |
| Header | /Engine/Source/Runtime/MeshDescription/Public/MeshDescriptionBase.h |
| Include | #include "MeshDescriptionBase.h" |
Syntax
class UMeshDescriptionBase : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMeshDescription | OwnedMeshDescription | ||
| TUniquePtr< FMeshAttributes > | RequiredAttributes |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ComputePolygonTriangulation
(
FPolygonID PolygonID |
Generates triangles and internal edges for the given polygon | |
| FEdgeID | CreateEdge
(
FVertexID VertexID0, |
Adds a new edge to the mesh and returns its ID | |
| void | CreateEdgeWithID
(
FEdgeID EdgeID, |
Adds a new edge to the mesh with the given ID | |
| FPolygonID | CreatePolygon
(
FPolygonGroupID PolygonGroupID, |
Adds a new polygon to the mesh and returns its ID. | |
| FPolygonGroupID | Adds a new polygon group to the mesh and returns its ID | ||
| void | CreatePolygonGroupWithID
(
FPolygonGroupID PolygonGroupID |
Adds a new polygon group to the mesh with the given ID | |
| void | CreatePolygonWithID
(
FPolygonID PolygonID, |
Adds a new polygon to the mesh with the given ID. | |
| FTriangleID | CreateTriangle
(
FPolygonGroupID PolygonGroupID, |
Adds a new triangle to the mesh and returns its ID. | |
| void | CreateTriangleWithID
(
FTriangleID TriangleID, |
Adds a new triangle to the mesh with the given ID. | |
| FVertexID | CreateVertex () |
Adds a new vertex to the mesh and returns its ID | |
| FVertexInstanceID | CreateVertexInstance
(
FVertexID VertexID |
Adds a new vertex instance to the mesh and returns its ID | |
| void | CreateVertexInstanceWithID
(
FVertexInstanceID VertexInstanceID, |
Adds a new vertex instance to the mesh with the given ID | |
| void | CreateVertexWithID
(
FVertexID VertexID |
Adds a new vertex to the mesh with the given ID | |
| void | DeleteEdge
(
FEdgeID EdgeID, |
Deletes an edge from a mesh | |
| void | DeletePolygon
(
FPolygonID PolygonID, |
Deletes a polygon from the mesh | |
| void | DeletePolygonGroup
(
FPolygonGroupID PolygonGroupID |
Deletes a polygon group from the mesh | |
| void | DeleteTriangle
(
FTriangleID TriangleID, |
Deletes a triangle from the mesh | |
| void | DeleteVertex
(
FVertexID VertexID |
Deletes a vertex from the mesh | |
| void | DeleteVertexInstance
(
FVertexInstanceID VertexInstanceID, |
Deletes a vertex instance from a mesh | |
| const TAttributesSet< FEdgeID > & | |||
| TAttributesSet< FEdgeID > & | |||
| const FEdgeArray & | Edges () |
||
| FEdgeArray & | Edges () |
||
| void | Empty () |
Empty the mesh description | |
| void | GetEdgeConnectedPolygons
(
FEdgeID EdgeID, |
Returns the polygons connected to this edge | |
| void | GetEdgeConnectedTriangles
(
FEdgeID EdgeID, |
Returns reference to an array of triangle IDs connected to this edge | |
| int32 | GetEdgeCount () |
Returns the number of edges | |
| FVertexID | GetEdgeVertex
(
FEdgeID EdgeID, |
Returns the vertex ID corresponding to one of the edge endpoints | |
| void | GetEdgeVertices
(
const FEdgeID EdgeID, |
Returns a pair of vertex IDs defining the edge | |
| const FMeshDescription & | |||
| FMeshDescription & | Get a reference to the actual mesh description | ||
| int32 | GetNumEdgeConnectedPolygons
(
FEdgeID EdgeID |
Returns the number of polygons connected to this edge | |
| int32 | GetNumEdgeConnectedTriangles
(
FEdgeID EdgeID |
Returns the number of triangles connected to this edge | |
| int32 | GetNumPolygonGroupPolygons
(
FPolygonGroupID PolygonGroupID |
Returns the number of polygons in this polygon group | |
| int32 | GetNumPolygonInternalEdges
(
FPolygonID PolygonID |
Return the number of internal edges in this polygon | |
| int32 | GetNumPolygonTriangles
(
FPolygonID PolygonID |
Return the number of triangles which comprise this polygon | |
| int32 | GetNumPolygonVertices
(
FPolygonID PolygonID |
Returns the number of vertices this polygon has | |
| int32 | GetNumVertexConnectedEdges
(
FVertexID VertexID |
Returns number of edges connected to this vertex | |
| int32 | GetNumVertexConnectedPolygons
(
FVertexID VertexID |
Returns the number of polygons connected to this vertex | |
| int32 | GetNumVertexConnectedTriangles
(
FVertexID VertexID |
Returns number of triangles connected to this vertex | |
| int32 | GetNumVertexInstanceConnectedPolygons
(
FVertexInstanceID VertexInstanceID |
Returns the number of polygons connected to this vertex instance. | |
| int32 | GetNumVertexInstanceConnectedTriangles
(
FVertexInstanceID VertexInstanceID |
Returns the number of triangles connected to this vertex instance | |
| int32 | GetNumVertexVertexInstances
(
FVertexID VertexID |
Returns number of vertex instances created from this vertex | |
| void | GetPolygonAdjacentPolygons
(
FPolygonID PolygonID, |
Populates the passed array with adjacent polygons | |
| int32 | Returns the number of polygons | ||
| int32 | Returns the number of polygon groups | ||
| void | GetPolygonGroupPolygons
(
FPolygonGroupID PolygonGroupID, |
Returns the polygons associated with the given polygon group | |
| void | GetPolygonInternalEdges
(
FPolygonID PolygonID, |
Populate the provided array with a list of edges which are internal to the polygon, i.e. those which separate constituent triangles. | |
| void | GetPolygonPerimeterEdges
(
FPolygonID PolygonID, |
Returns the edges which form the polygon perimeter | |
| FPolygonGroupID | GetPolygonPolygonGroup
(
FPolygonID PolygonID |
Return the polygon group associated with a polygon | |
| void | GetPolygonTriangles
(
FPolygonID PolygonID, |
Return reference to an array of triangle IDs which comprise this polygon | |
| void | GetPolygonVertexInstances
(
FPolygonID PolygonID, |
Returns reference to an array of VertexInstance IDs forming the perimeter of this polygon | |
| void | GetPolygonVertices
(
FPolygonID PolygonID, |
Returns the vertices which form the polygon perimeter | |
| FMeshAttributes & | |||
| const FMeshAttributes & | |||
| void | GetTriangleAdjacentTriangles
(
FTriangleID TriangleID, |
Returns the adjacent triangles to this triangle | |
| int32 | Returns the number of triangles | ||
| void | GetTriangleEdges
(
FTriangleID TriangleID, |
Returns the edges which define this triangle | |
| FPolygonID | GetTrianglePolygon
(
FTriangleID TriangleID |
Get the polygon which contains this triangle | |
| FPolygonGroupID | GetTrianglePolygonGroup
(
FTriangleID TriangleID |
Get the polygon group which contains this triangle | |
| FVertexInstanceID | GetTriangleVertexInstance
(
FTriangleID TriangleID, |
Get the specified vertex instance by index | |
| void | GetTriangleVertexInstances
(
FTriangleID TriangleID, |
Get the vertex instances which define this triangle | |
| void | GetTriangleVertices
(
FTriangleID TriangleID, |
Returns the vertices which define this triangle | |
| void | GetVertexAdjacentVertices
(
FVertexID VertexID, |
Returns the vertices adjacent to this vertex | |
| void | GetVertexConnectedEdges
(
FVertexID VertexID, |
Returns reference to an array of Edge IDs connected to this vertex | |
| void | GetVertexConnectedPolygons
(
FVertexID VertexID, |
Returns the polygons connected to this vertex | |
| void | GetVertexConnectedTriangles
(
FVertexID VertexID, |
Returns the triangles connected to this vertex | |
| int32 | Returns the number of vertices | ||
| void | GetVertexInstanceConnectedPolygons
(
FVertexInstanceID VertexInstanceID, |
Returns the polygons connected to this vertex instance | |
| void | GetVertexInstanceConnectedTriangles
(
FVertexInstanceID VertexInstanceID, |
Returns reference to an array of Triangle IDs connected to this vertex instance | |
| int32 | Returns the number of vertex instances | ||
| FVertexInstanceID | GetVertexInstanceForPolygonVertex
(
FPolygonID PolygonID, |
Return the vertex instance which corresponds to the given vertex on the given polygon, or INDEX_NONE | |
| FVertexInstanceID | GetVertexInstanceForTriangleVertex
(
FTriangleID TriangleID, |
Return the vertex instance which corresponds to the given vertex on the given triangle, or INDEX_NONE | |
| FEdgeID | GetVertexInstancePairEdge
(
FVertexInstanceID VertexInstanceID0, |
Returns the edge ID defined by the two given vertex instance IDs, if there is one; otherwise INDEX_NONE | |
| FVertexID | GetVertexInstanceVertex
(
FVertexInstanceID VertexInstanceID |
Returns the vertex ID associated with the given vertex instance | |
| FEdgeID | GetVertexPairEdge
(
FVertexID VertexID0, |
Returns the edge ID defined by the two given vertex IDs, if there is one; otherwise INDEX_NONE | |
| FVector | GetVertexPosition
(
FVertexID VertexID |
Gets a vertex position | |
| TVertexAttributesConstRef< FVector3f > | |||
| TVertexAttributesRef< FVector3f > | Accessors for cached vertex position array | ||
| void | GetVertexVertexInstances
(
FVertexID VertexID, |
Returns reference to an array of VertexInstance IDs instanced from this vertex | |
| bool | IsEdgeInternal
(
FEdgeID EdgeID |
Determine whether a given edge is an internal edge between triangles of a polygon | |
| bool | IsEdgeInternalToPolygon
(
FEdgeID EdgeID, |
Determine whether a given edge is an internal edge between triangles of a specific polygon | |
| bool | IsEdgeValid
(
FEdgeID EdgeID |
Returns whether the passed edge ID is valid | |
| bool | IsEmpty () |
Return whether the mesh description is empty | |
| bool | IsPolygonGroupValid
(
FPolygonGroupID PolygonGroupID |
Returns whether the passed polygon group ID is valid | |
| bool | IsPolygonValid
(
FPolygonID PolygonID |
Returns whether the passed polygon ID is valid | |
| bool | IsTrianglePartOfNgon
(
FTriangleID TriangleID |
Determines if this triangle is part of an n-gon | |
| bool | IsTriangleValid
(
const FTriangleID TriangleID |
Returns whether the passed triangle ID is valid | |
| bool | IsVertexInstanceValid
(
FVertexInstanceID VertexInstanceID |
Returns whether the passed vertex instance ID is valid | |
| bool | IsVertexOrphaned
(
FVertexID VertexID |
Returns whether a given vertex is orphaned, i.e. it doesn't form part of any polygon | |
| bool | IsVertexValid
(
FVertexID VertexID |
Returns whether the passed vertex ID is valid | |
| const TAttributesSet< FPolygonID > & | |||
| TAttributesSet< FPolygonID > & | |||
| const TAttributesSet< FPolygonGroupID > & | |||
| TAttributesSet< FPolygonGroupID > & | |||
| const FPolygonGroupArray & | |||
| FPolygonGroupArray & | |||
| FPolygonArray & | Polygons () |
||
| const FPolygonArray & | Polygons () |
||
| void | |||
| void | ReserveNewEdges
(
int32 NumberOfNewEdges |
Reserves space for this number of new edges | |
| void | ReserveNewPolygonGroups
(
int32 NumberOfNewPolygonGroups |
Reserves space for this number of new polygon groups | |
| void | ReserveNewPolygons
(
const int32 NumberOfNewPolygons |
Reserves space for this number of new polygons | |
| void | ReserveNewTriangles
(
int32 NumberOfNewTriangles |
Reserves space for this number of new triangles | |
| void | ReserveNewVertexInstances
(
int32 NumberOfNewVertexInstances |
Reserves space for this number of new vertex instances | |
| void | ReserveNewVertices
(
int32 NumberOfNewVertices |
Reserves space for this number of new vertices | |
| void | Reset () |
Reset the contained mesh description | |
| void | ReversePolygonFacing
(
FPolygonID PolygonID |
Reverse the winding order of the vertices of this polygon | |
| void | SetMeshDescription
(
FMeshDescription InMeshDescription |
Set the mesh description | |
| void | SetPolygonPolygonGroup
(
FPolygonID PolygonID, |
Sets the polygon group associated with a polygon | |
| void | SetPolygonVertexInstances
(
FPolygonID PolygonID, |
Set the vertex instance at the given index around the polygon to the new value | |
| void | SetVertexPosition
(
FVertexID VertexID, |
Sets a vertex position | |
| TAttributesSet< FTriangleID > & | |||
| const TAttributesSet< FTriangleID > & | |||
| FTriangleArray & | Triangles () |
||
| const FTriangleArray & | Triangles () |
||
| TAttributesSet< FVertexID > & | Accessors for mesh element attributes | ||
| const TAttributesSet< FVertexID > & | |||
| TAttributesSet< FVertexInstanceID > & | |||
| const TAttributesSet< FVertexInstanceID > & | |||
| FVertexInstanceArray & | |||
| const FVertexInstanceArray & | |||
| FVertexArray & | Vertices () |
Accessors for mesh element arrays | |
| const FVertexArray & | Vertices () |