Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_26
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshUVFunctions.h |
| Include | #include "GeometryScript/MeshUVFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/MeshUVFunctions.cpp |
static UDynamicMesh &42; ComputeMeshLocalUVParam
&40;
UDynamicMesh &42; TargetMesh,
FVector CenterPoint,
int32 CenterPointTriangleID,
TArray< int > & VertexIDs,
TArray< FVector2D > & VertexUVs,
double Radius,
bool bUseInterpolatedNormal,
FVector TangentYDirection,
double UVRotationDeg,
UGeometryScriptDebug &42; Debug
&41;
Remarks
Compute local UV parameterization on TargetMesh vertices around the given CenterPoint / Triangle. This method uses a Discrete Exponential Map parameterization, which unwraps the mesh locally based on geodesic distances and angles. The CenterPoint will have UV value (0,0), and the computed vertex UVs will be such that Length(UV) == geodesic distance.
Parameters
| Name | Description |
|---|---|
| CenterPoint | the center point of the parameterization. This point must lie on the triangle specified by CenterPointTriangleID |
| CenterPointTriangleID | the ID of the Triangle that contains CenterPoint |
| Radius | the parameterization will be computed out to this geodesic radius |
| bUseInterpolatedNormal | if true (default false), the normal frame used for the parameterization will be taken from the normal overlay, otherwise the CenterPointTriangleID normal will be used |
| VertexIDs | output list of VertexIDs that UVs have been computed for, ie are within geodesic distance Radius from the CenterPoint |
| VertexUVs | output list of Vertex UVs that corresponds to VertexIDs |