Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_MeshQuery-
Description
Returns the 3D positions (in the mesh local space) of the three vertices of the requested triangle. If the Triangle ID is not an element of the Target Mesh, all three vertices will be returned as (0, 0, 0) and bIsValidTriangle will be set to false.
| Name | GetTrianglePositions |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshQueryFunctions.h |
| Include Path | #include "GeometryScript/MeshQueryFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/MeshQueryFunctions.cpp |
UFUNCTION (BlueprintPure, Category="GeometryScript|MeshQueries", Meta=(ScriptMethod))
static void GetTrianglePositions
(
UDynamicMesh * TargetMesh,
int32 TriangleID,
bool & bIsValidTriangle,
FVector & Vertex1,
FVector & Vertex2,
FVector & Vertex3
)