Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Operations > API/Runtime/GeometryCore/Operations/FMeshSurfacePath
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Operations/EmbedSurfacePath.h |
| Include | #include "Operations/EmbedSurfacePath.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Operations/EmbedSurfacePath.cpp |
bool EmbedSimplePath
(
bool bUpdatePath,
TArray < int > & PathVertices,
bool bDoNotDuplicateFirstVertexID,
double SnapElementThresholdSq
)
Remarks
TODO: support for embedding arbitrary paths in mesh using a graph remesher **
- Embed surface path in mesh, such that each point in path is a mesh vertex with a connecting edge. Note that IsConnected must be true for this to succeed.
- Embed a surface path in mesh provided that the path only crosses vertices and edges except at the start and end, so we can add the path easily with local edge splits and possibly two triangle pokes (rather than needing general remeshing machinery) Also assumes triangles are only crossed over once (except possibly to loop around to the start triangle on the end triangle) Planar walks naturally create simple paths, so this function can be used on any paths created by single planar walks. true if embedding succeeded.
Parameters
| Name | Description |
|---|---|
| bUpdatePath | Updating the Path array with the new vertices (if false, the path will no longer be valid after running this function)\ |
| PathVertices | Indices of the vertices on the path after embedding succeeds; NOTE these will not be 1:1 with the input Path |