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