Class MeshUtilities
- Namespace
- S1MAPI.ProceduralMesh
- Assembly
- S1MAPI_Mono.dll
Utility functions for mesh merging and combination. For mesh modification and validation, see MeshExtensions in S1MAPI.Extensions namespace.
public static class MeshUtilities
- Inheritance
-
MeshUtilities
- Inherited Members
Methods
MergeMesh(Mesh, Vector3, string?)
Merge a single mesh with a position offset into a new mesh
public static Mesh? MergeMesh(Mesh mesh, Vector3 offset, string? name = null)
Parameters
meshMeshThe mesh to copy
offsetVector3Position offset to apply
namestringOptional name for the new mesh
Returns
- Mesh
A new mesh with offset applied
MergeMeshes(Mesh[], Vector3[]?, string)
Merge multiple meshes into a single mesh
public static Mesh? MergeMeshes(Mesh[] meshes, Vector3[]? offsets = null, string name = "MergedMesh")
Parameters
meshesMesh[]The meshes to merge
offsetsVector3[]Optional position offsets for each mesh (must match meshes length)
namestringOptional name for the merged mesh
Returns
- Mesh
A new merged mesh, or null if merging failed