Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UGeometryScriptLibrary_MeshMaterialFunctions
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshMaterialFunctions.h |
| Include | #include "GeometryScript/MeshMaterialFunctions.h" |
Syntax
UCLASS&40;Meta&61;&40;ScriptName&61;"GeometryScript_Materials"&41;&41;
class UGeometryScriptLibrary_MeshMaterialFunctions : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| UDynamicMesh * | ClearMaterialIDs
(
UDynamicMesh* TargetMesh, |
Resets all Material IDs on a mesh to the given ClearValue, or 0 if no ClearValue is provided. | |
| UDynamicMesh * | CompactMaterialIDs
(
UDynamicMesh* TargetMesh, |
Compact the MaterialIDs of the TargetMesh, ie remove any un-used MaterialIDs and remap the remaining N in-use MaterialIDs to the range [0,N-1]. | |
| UDynamicMesh * | DeleteTrianglesByMaterialID
(
UDynamicMesh* TargetMesh, |
Delete all triangles in TargetMesh with the given MaterialID | |
| UDynamicMesh * | EnableMaterialIDs
(
UDynamicMesh* TargetMesh, |
Enables per-triangle Material IDs on a mesh and initializes the values to 0. | |
| UDynamicMesh * | GetAllTriangleMaterialIDs
(
UDynamicMesh* TargetMesh, |
Returns an Index List of all triangle Material IDs, constructed with one entry for each consecutive Triangle ID. | |
| UDynamicMesh * | GetMaterialIDsOfTriangles
(
UDynamicMesh* TargetMesh, |
This populates the MaterialIDList with Material IDs for each triangle in the TriangleIDList. | |
| int | GetMaxMaterialID
(
UDynamicMesh* TargetMesh, |
||
| int32 | GetTriangleMaterialID
(
UDynamicMesh* TargetMesh, |
Returns the current Material ID for a Triangle. | |
| UDynamicMesh * | GetTrianglesByMaterialID
(
UDynamicMesh* TargetMesh, |
Populates Triangle ID List with the Triangle IDs of triangles that share the specified Material ID in the Target Mesh. | |
| UDynamicMesh * | RemapMaterialIDs
(
UDynamicMesh* TargetMesh, |
For all triangles with a Material ID matching the given value (From Material ID), update the Material ID to the new value (To Material ID). | |
| UDynamicMesh * | SetAllTriangleMaterialIDs
(
UDynamicMesh* TargetMesh, |
Sets the Material ID of all triangles in a mesh to the values in an input Index List. | |
| UDynamicMesh * | SetMaterialIDForMeshSelection
(
UDynamicMesh* TargetMesh, |
Set a new MaterialID on all the triangles of the given Selection. | |
| UDynamicMesh * | SetMaterialIDOnTriangles
(
UDynamicMesh* TargetMesh, |
Assigns the Material ID to all the triangles specified by the Triangle ID List. | |
| UDynamicMesh * | SetPolygroupMaterialID
(
UDynamicMesh* TargetMesh, |
Set a new MaterialID on all the triangles of TargetMesh with the given PolyGroup. | |
| UDynamicMesh * | SetTriangleMaterialID
(
UDynamicMesh* TargetMesh, |
Assigns the specified triangle the given Material ID. |