예제 #1
0
    // public int GetSubdividedFaceCount() => NativeInterface.GetSubdividedFaceCount(this._cppMesh);
    // public int GetSubdividedVertexCount() => NativeInterface.GetSubdividedVertexCount(this._cppMesh);

    /// <summary>
    /// Get the number of center of rotations in the mesh.
    /// It will computed it if the number is not defined.
    /// </summary>
    /// <returns></returns>
    public int GetCenterCount()
    {
        var count = NativeInterface.GetCenterCount(this._cppMesh);
        var error = ExtractFailureMessage(NativeInterface.HasFailedGettingCentersOfRotation(_cppMesh));

        if (error.Equals(""))
        {
            return(count);
        }
        else
        {
            NativeInterface.DestroyMesh(this._cppMesh);
            throw new Exception(error);
        }
    }