Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/EdgeLoop.h |
| Include | #include "EdgeLoop.h" |
Syntax
class FEdgeLoop
Remarks
Sequential lists of vertices/edges in a mesh that form a closed loop
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bBowtiesCalculated | If true, then BowtieVertices list is valid | |
| TArray< int > | BowtieVertices | List of bowtie vertices. This list is only valid if bBowtiesCalculated = true. | |
| TArray< int > | Edges | Ordered list of edges forming the EdgeLoop | |
| const FDynamicMesh3 * | Mesh | The Mesh that contains this EdgeLoop | |
| TArray< int > | Vertices | Ordered list of vertices forming the EdgeLoop |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEdgeLoop () |
|||
FEdgeLoop
(
const FDynamicMesh3* mesh |
|||
FEdgeLoop
(
const FDynamicMesh3* mesh, |
Initialize EdgeLoop with the given vertices and edges |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Populate the BowtieVertices member | ||
| bool | CheckValidity
(
EValidityCheckFailMode FailMode |
Exhaustively check that verts and edges of this EdgeLoop are consistent. This is quite expensive. | |
| int | FindNearestVertexIndex
(
const FVector3d& QueryPoint |
||
| int | FindVertexIndex
(
int VertexID |
||
| FAxisAlignedBox3d | GetBounds () |
||
| int | GetEdgeCount () |
||
| FVector3d | GetNextVertex
(
int32 LoopIndex |
||
| FVector3d | GetPrevVertex
(
int32 LoopIndex |
||
| FVector3d | GetVertex
(
int LoopIndex |
||
| int | |||
| void | GetVertices
(
TArray< VecType >& VerticesOut |
Add the vertices of the loop to the Vertices array | |
| void | Initialize
(
const FDynamicMesh3* mesh, |
Initialize the loop data | |
| void | InitializeFromEdges
(
const FDynamicMesh3* MeshIn, |
Construct an FEdgeLoop from a list of edges of the mesh | |
| void | InitializeFromEdges
(
const TArray< int >& EdgesIn |
Construct an FEdgeLoop from a list of edges of the mesh | |
| bool | InitializeFromVertices
(
const FDynamicMesh3* MeshIn, |
Construct EdgeLoop from list of vertices of mesh | |
| bool | InitializeFromVertices
(
const TArray< int >& VerticesIn, |
Construct EdgeLoop from list of vertices of mesh | |
| bool | IsBoundaryLoop
(
const FDynamicMesh3* TestMesh |
||
| bool | |||
| void | Reverse () |
Reverse order of vertices and edges in loop | |
| void | SetBowtieVertices
(
const TArray< int >& Bowties |
Set the bowtie vertices | |
| bool | If any edges if the loop are on a mesh boundary, we can check that the loop is oriented such that it corresponds with the boundary edges, and if not, reverse it. | ||
| void | VertexLoopToEdgeLoop
(
const FDynamicMesh3* Mesh, |
Utility function to convert a vertex loop to an edge loop |