Search Results for

    Show / Hide Table of Contents

    Class MeshExtensions

    UnityEngine.Mesh Based Extension Methods

    Inheritance
    System.Object
    MeshExtensions
    Namespace: GDX
    Syntax
    [VisualScriptingCompatible((short)2)]
    public static class MeshExtensions

    Methods

    | Improve this Doc View Source

    CalculateVolume(Mesh)

    Determine the volume of a given mesh.

    Declaration
    public static float CalculateVolume(this Mesh targetMesh)
    Parameters
    Type Name Description
    UnityEngine.Mesh targetMesh

    The mesh to evaluate for its volume.

    Returns
    Type Description
    System.Single

    The meshes volume.

    Remarks

    Based off of https://n-e-r-v-o-u-s.com/blog/?p=4415.

    Exceptions
    Type Condition
    UnsupportedRuntimeException

    Not supported on DOTS Runtime.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.