Table of Contents

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

mesh Mesh

The mesh to copy

offset Vector3

Position offset to apply

name string

Optional 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

meshes Mesh[]

The meshes to merge

offsets Vector3[]

Optional position offsets for each mesh (must match meshes length)

name string

Optional name for the merged mesh

Returns

Mesh

A new merged mesh, or null if merging failed