class MAGES::MeshDeformations::TriangularMesh::MeshSection

Overview

class MeshSection
{
public:
    // fields

    bool isStaticMesh = true;
    Bounds bounds = new Bounds();
    List triangles = new List();

    // methods

    MeshSection(bool isStatic);
    void Draw(Transform transform, float duration, Color color, bool zTest = true);
    void RecalculateBounds(ref int[] meshTriangles, ref Vector3[] meshVertices);
};

Detailed Documentation

Methods

void Draw(Transform transform, float duration, Color color, bool zTest = true)

Debug Draw The bounds of this Mesh Section.

Parameters:

transform

The transform the bounds are referenced to

duration

The draw duration

color

The draw color

zTest

void RecalculateBounds(ref int[] meshTriangles, ref Vector3[] meshVertices)

Recalculates the bounds of this section.

Parameters:

meshTriangles

The triangle array

meshVertices

The vertices from which to take positions for recalculation. Use the vertices array for static meshes, skinnedVertices array for skinned meshes.