Documentation - v20.0.0-dev
    Preparing search index...

    Converts three.js geometries into the engine's buffers (GeometryBuffers), for an InputMesh's parts: a triangle mesh with its sharp edges (drawn as three.js EdgesGeometry finds them), or a line as a geometry of lines. Each conversion has an id of its own, a new geometry for the engine (a three.js geometry changed then converted again is drawn as changed): to share a geometry between parts or objects, give them the same converted buffers.

    const geometry = new GeometryBuffersConverter().convertGeometry(new BoxGeometry());
    const [proxy] = scene.meshController.addMeshes([{
    uuid, name, parts: [{ geometry, matrix: new Matrix4().elements, material }],
    }]);
    Index

    Constructors

    Methods

    • The buffers of a line (segments, strip or loop): a geometry of lines, its segments.

      Parameters

      Returns GeometryBuffers