Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMesh3
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EMeshResult SplitEdge
(
int EdgeAB, |
Split an edge of the mesh by inserting a vertex. | DynamicMesh/DynamicMesh3.h | |
EMeshResult SplitEdge
(
int EdgeVertA, |
Splits the edge between two vertices at the midpoint, if this edge exists | DynamicMesh/DynamicMesh3.h |
SplitEdge(int, FEdgeSplitInfo &, double)
Description
Split an edge of the mesh by inserting a vertex. This creates a new triangle on either side of the edge (ie a 2-4 split). If the original edge had vertices [a,b], with triangles t0=[a,b,c] and t1=[b,a,d], then the split inserts new vertex f. After the split t0=[a,f,c] and t1=[f,a,d], and we have t2=[f,b,c] and t3=[f,d,b] (it's best to draw it out on paper...)
| Name | SplitEdge |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
virtual EMeshResult SplitEdge
(
int EdgeAB,
FEdgeSplitInfo & SplitInfo,
double SplitParameterT
)
Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.
Parameters
| Name | Remarks |
|---|---|
| EdgeAB | index of the edge to be split |
| SplitInfo | returned information about new and modified mesh elements |
| SplitParameterT | defines the position along the edge that we split at, must be between 0 and 1, and is assumed to be based on the order of vertices returned by GetEdgeV() |
SplitEdge(int, int, FEdgeSplitInfo &)
Description
Splits the edge between two vertices at the midpoint, if this edge exists
| Name | SplitEdge |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include Path | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
EMeshResult SplitEdge
(
int EdgeVertA,
int EdgeVertB,
FEdgeSplitInfo & SplitInfo
)
Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.
Parameters
| Name | Remarks |
|---|---|
| EdgeVertA | index of first vertex |
| EdgeVertB | index of second vertex |
| SplitInfo | returned information about new and modified mesh elements |