docs.unity3d.com
Version: 

    Class PolygonalInterface

    Inheritance
    object
    Interface
    PolygonalInterface
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Pixyz.Polygonal
    Syntax
    public class PolygonalInterface : Interface

    Methods

    ComputeMeshTopoChecksum(uint)

    Compute a checksum of the mesh topology, connectivity

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public string ComputeMeshTopoChecksum(uint mesh)
    Parameters
    Type Name Description
    uint mesh

    The mesh

    Returns
    Type Description
    string

    ComputeMeshVertexPositionsChecksum(uint, int)

    Compute a checksum of the mesh vertices positions

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public string ComputeMeshVertexPositionsChecksum(uint mesh, int precisionFloat = -1)
    Parameters
    Type Name Description
    uint mesh

    The mesh

    int precisionFloat

    Floating point precision [1..24], number of significant numbers kept. -1 means no rounded will be applied

    Returns
    Type Description
    string

    ComputeUVTopoChecksum(uint, int)

    Compute a checksum of the uvs topology, connectivity

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public string ComputeUVTopoChecksum(uint mesh, int uvChannel)
    Parameters
    Type Name Description
    uint mesh

    The mesh

    int uvChannel

    The uv channel

    Returns
    Type Description
    string

    ComputeUVVertexPositionsChecksum(uint, int, int)

    Compute a checksum of the vertices positions in uv space

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public string ComputeUVVertexPositionsChecksum(uint mesh, int uvChannel, int precisionFloat = -1)
    Parameters
    Type Name Description
    uint mesh

    The mesh

    int uvChannel

    The uv channel

    int precisionFloat

    Floating point precision [1..24], number of significant numbers kept. -1 means no rounded will be applied

    Returns
    Type Description
    string

    ConfigureFunctionLogger(string, bool, bool, bool)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
    Parameters
    Type Name Description
    string functionName
    bool enableFunction
    bool enableParameters
    bool enableExecutionTime

    CreateJointPlaceholders(ULongList, Matrix4List)

    Create fake joint to store in mesh definitions. Thus we can retrieve stored data from getJointPlaceholders

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public PlaceholderJointList CreateJointPlaceholders(ULongList data, Matrix4List worldMatrices)
    Parameters
    Type Name Description
    ULongList data

    Create as much joints as there are data, each joint store one data

    Matrix4List worldMatrices

    World matrix for each joints

    Returns
    Type Description
    PlaceholderJointList

    CreateMeshFromDefinition(MeshDefinition)

    Create a new mesh with the given MeshDefinition

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint CreateMeshFromDefinition(MeshDefinition meshDefinition)
    Parameters
    Type Name Description
    MeshDefinition meshDefinition

    Mesh definition

    Returns
    Type Description
    uint

    CreateMeshFromDefinitions(MeshDefinitionList)

    Create a new mesh from multiple MeshDefinition

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint CreateMeshFromDefinitions(MeshDefinitionList meshDefinition)
    Parameters
    Type Name Description
    MeshDefinitionList meshDefinition

    The MeshDefinitions

    Returns
    Type Description
    uint

    CreateMeshFromText(string, Matrix4, string, int, ColorAlpha?, double)

    Creates an occurrence from string

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public CreateMeshFromTextReturn CreateMeshFromText(string text, Matrix4 matrix, string font = "ChicFont", int fontSize = 64, ColorAlpha? color = null, double heigth3D = 40)
    Parameters
    Type Name Description
    string text

    Text to create

    Matrix4 matrix

    A matrix to apply on mesh

    string font

    The font to use

    int fontSize

    The font size

    ColorAlpha? color

    The occurrence color

    double heigth3D

    3D height of text

    Returns
    Type Description
    CreateMeshFromTextReturn

    CreateMeshesFromDefinitions(MeshDefinitionList)

    Create new meshes with the given MeshDefinitions

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public MeshList CreateMeshesFromDefinitions(MeshDefinitionList meshDefinitions)
    Parameters
    Type Name Description
    MeshDefinitionList meshDefinitions

    The MeshDefinitions

    Returns
    Type Description
    MeshList

    DracoDecode(ByteList, int, int)

    decode a mesh using draco

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint DracoDecode(ByteList buffer, int jointIndicesId = -1, int jointWeightsId = -1)
    Parameters
    Type Name Description
    ByteList buffer
    int jointIndicesId

    Unique ID of Generic attribute encoding joint indices

    int jointWeightsId

    Unique ID of Generic attribute encoding joint weights

    Returns
    Type Description
    uint

    DracoEncode(uint, int, int, int, int)

    encode a mesh using draco

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public DracoEncodeReturn DracoEncode(uint mesh, int compressionLevel = 7, int quantizationPosition = -1, int quantizationNormal = -1, int quantizationTexCoord = -1)
    Parameters
    Type Name Description
    uint mesh
    int compressionLevel

    0=faster but the worst compression, 10=slower but the best compression

    int quantizationPosition

    Number of quantization bits used for position attributes

    int quantizationNormal

    Number of quantization bits used for normal attributes

    int quantizationTexCoord

    Number of quantization bits used for texture coordinates attributes

    Returns
    Type Description
    DracoEncodeReturn

    GetJointPlaceholders(PlaceholderJointList)

    Get data stored in joint placeholders

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public ULongList GetJointPlaceholders(PlaceholderJointList joints)
    Parameters
    Type Name Description
    PlaceholderJointList joints

    Placeholder joints to get data from

    Returns
    Type Description
    ULongList

    GetLastError()

    Declaration
    public static string GetLastError()
    Returns
    Type Description
    string

    GetMeshDefinition(uint)

    Returns the definition

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public MeshDefinition GetMeshDefinition(uint mesh)
    Parameters
    Type Name Description
    uint mesh

    The mesh to get definition

    Returns
    Type Description
    MeshDefinition

    GetMeshDefinitions(MeshList)

    Returns the definition

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public MeshDefinitionList GetMeshDefinitions(MeshList meshes)
    Parameters
    Type Name Description
    MeshList meshes

    The meshes to get definitions

    Returns
    Type Description
    MeshDefinitionList

    GetMeshSkinning(uint)

    Returns the joints/IBMs list of a given mesh (those referenced by jointIndices)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public GetMeshSkinningReturn GetMeshSkinning(uint mesh)
    Parameters
    Type Name Description
    uint mesh
    Returns
    Type Description
    GetMeshSkinningReturn

    HasMeshJoints(uint)

    Check if the mesh has joints

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public bool HasMeshJoints(uint mesh)
    Parameters
    Type Name Description
    uint mesh

    The Mesh

    Returns
    Type Description
    bool

    SetMeshSkinning(uint, JointList, Matrix4List)

    Set/Replace the list of joints/IBMs of a given mesh (those referenced by jointIndices)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void SetMeshSkinning(uint mesh, JointList joints, Matrix4List IBMs)
    Parameters
    Type Name Description
    uint mesh
    JointList joints
    Matrix4List IBMs

    Inverse Bind Matrices

    UsePointGapFillerNormal(Point3List, Vector3List)

    This triangulates a set of points and normals

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public IntList UsePointGapFillerNormal(Point3List points, Vector3List normals)
    Parameters
    Type Name Description
    Point3List points

    The set of points to triangulate

    Vector3List normals

    The normals associated to the points to triangulate. This can be empty

    Returns
    Type Description
    IntList
    Version 2024.2.2.3
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.