Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshGeode-
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static static UPARAM
(
DisplayName |
Computes a vertex list that represents the shortest path constrained to travel along mesh triangle edges between the prescribed start and end vertex. | GeometryScript/MeshGeodesicFunctions.h |
|
static static UPARAM
(
DisplayName |
Computes a PolyPath that represents the shortest mesh surface path between two prescribed points on the provided mesh. | GeometryScript/MeshGeodesicFunctions.h |
|
static static UPARAM
(
DisplayName |
Computes a PolyPath that represents a "straight" surface path starting at the prescribed point on the mesh, and continuing in the indicated direction until reaching the requested path length or encountering a mesh boundary, whichever comes first. | GeometryScript/MeshGeodesicFunctions.h |
|
UPARAM(DisplayName)
Description
Computes a vertex list that represents the shortest path constrained to travel along mesh triangle edges between the prescribed start and end vertex. This can fail if the Start and End points are within separate connected components of the mesh.
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshGeodesicFunctions.h |
| Include Path | #include "GeometryScript/MeshGeodesicFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshGeodesic", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
)
Parameters
| Name | Remarks |
|---|---|
| TargetMesh | defines the surface where the path is computed. |
| StartVertexID | indicates ID of mesh vertex that defines the starting point of the path. |
| EndVertexID | indicates ID of the mesh vertex that defined the end point of the path. |
| VertexIDList, if | found this will hold on return a list of mesh vertex IDs that define the path from StartVertexID to EndVertexID. |
| bFoundErrors | will be false on success. |
UPARAM(DisplayName)
Description
Computes a PolyPath that represents the shortest mesh surface path between two prescribed points on the provided mesh. This can fail if the Start and End points are within separate connected components of the mesh.
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshGeodesicFunctions.h |
| Include Path | #include "GeometryScript/MeshGeodesicFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshGeodesic", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
)
Parameters
| Name | Remarks |
|---|---|
| TargetMesh | defines the surface where the path is computed. |
| StartTriangleID | the ID of mesh Triangle that contains the start point of the path. |
| StartBaryCoords | indicates the location of start point within the start triangle, in terms of barycentric coordinates. |
| EndTriangleID | the ID of mesh Triangle that contains the end point of the path. |
| EndBaryCoords | indicates the location of the end point within the end triangle, in terms of barycentric coordinates. |
| ShortestPath, if | found this will hold on return a PolyPath that defines the shortest path along the mesh surface connecting the start and end points. |
| bFoundErrors, will | be false on success. Note, Barycentric coordinates are of the form (a,b,c) where each entry is positive and a + b + c = 1. If the provided coordinates are invalid, the value (1/3, 1/3, 1/3) will be used. |
UPARAM(DisplayName)
Description
Computes a PolyPath that represents a "straight" surface path starting at the prescribed point on the mesh, and continuing in the indicated direction until reaching the requested path length or encountering a mesh boundary, whichever comes first.
| Name | UPARAM |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshGeodesicFunctions.h |
| Include Path | #include "GeometryScript/MeshGeodesicFunctions.h" |
UFUNCTION (BlueprintCallable, Category="GeometryScript|MeshGeodesic", Meta=(ScriptMethod))
static static UPARAM
(
DisplayName
)
Parameters
| Name | Remarks |
|---|---|
| TargetMesh | defines the surface where the path is computed. |
| Direction | is a three-dimensional vector that is projected onto the mesh surface to determine the path direction. |
| StartTriangleID | the ID of mesh Triangle that contains the start point of the path. |
| StartBaryCoords | indicates the location of start point within the start triangle, in terms of barycentric coordinates. |
| MaxPathLength | sets the maximal length of the path, but the actual path may be shorter as it automatically terminates when encountering a mesh boundary edge. |
| SurfacePath | holds on return a PolyPath that forms a "straight" path along the mesh surface from the start position. |
| bFoundErrors, will | be false on success. Note, Barycentric coordinates are of the form (a,b,c) where each entry is positive and a + b + c = 1. If the provided coordinate is invalid, the value (1/3, 1/3, 1/3) will be used. Also, if the direction vector is nearly zero, the up-vector will be used. |