docs.unity3d.com
Version: 

    Struct MeshDefinition

    Mesh definition

    Fields

    id Mesh: the mesh from which we get the definition

    externalId Ident: External ID used for API integrations.

    vertices Point3List: vertices coordinates

    normals Vector3List: vertices normals

    tangents Vector4List: vertices tangents

    uvChannels IntList: UV channels

    uvs Point2ListList: array of vertices uv coordinates (one array per channel)

    vertexColors ColorAlphaList: vertex colors

    curvatures CurvaturesList: vertices curvatures

    triangles IntList: triangles (vertex indices)

    quadrangles IntList: quadrangles (vertex indices)

    vertexMerged IntList: array which contains for each vertex in vertices the vertex that it is merged with

    submeshes SubmeshList: array which contain information about multi materials mesh

    linesVertices Point3List: lines vertices coordinates

    lines StylizedLineList: lines vertices indices

    points Point3List: points

    pointsColors Vector3List: points colors

    joints JointList: joints (bones) identifiers

    inverseBindMatrices Matrix4List: joints inverse bind matrices (bones poses)

    jointWeights Vector4List: joints (bones) weights

    jointIndices Vector4IList: joints (bones) indices

    Functions accepting this type or a list of this type as a parameter:

    • polygonal.createMeshFromDefinition
    • polygonal.createMeshFromDefinitions
    • polygonal.createMeshesFromDefinitions
    Namespace: Polygonal
    Syntax
    Version 2024.3.0.10
    • 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.