gophergfx
    Preparing search index...

    Class MeshParser

    Index
    • Parses the contents of a GLTF file and stores the scene in a Node3 object

      Parameters

      • document: Document

        The contents of the GLTF file

      • transform: Node3

        The transform to store the data

      Returns void

    • Parses the contents of an OBJ file and stores the data in a given Mesh object

      Parameters

      • obj: string

        The contents of the object file as a string

      • mesh: Mesh3

        The Mesh object to store the data

      Returns void

    • Parses the contents of a PLY file and stores the data in a given Mesh object This function works for both ASCII or binary PLY files.

      Parameters

      • ply: ArrayBuffer

        The contents of the PLY file as an ArrayBuffer

      • mesh: Mesh3

        The Mesh object to store the data

      Returns void