Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_17
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshQueryFunctions.h |
| Include | #include "GeometryScript/MeshQueryFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/MeshQueryFunctions.cpp |
static UDynamicMesh &42; GetInterpolatedTrianglePosition
&40;
UDynamicMesh &42; TargetMesh,
int32 TriangleID,
FVector BarycentricCoords,
bool & bIsValidTriangle,
FVector & InterpolatedPosition
&41;
Remarks
Compute the interpolated Position (A*Vertex1 + B*Vertex2 + C*Vertex3), where (A,B,C)=BarycentricCoords and the Vertex positions are taken from the specified TriangleID of the TargetMesh.
Parameters
| Name | Description |
|---|---|
| bIsValidTriangle | will be returned true if TriangleID exists in TargetMesh, and otherwise will be returned false |