@twinfinity/core
    Preparing search index...

    Interface TwinfinityMeshExtensions

    Twinfinity extensions for Mesh.

    interface TwinfinityMeshExtensions {
        ifc?: TwinfinityIfcMeshExtension;
        line?: { depthMaterial: Material };
        clearCachedVertexData(): void;
    }
    Index

    Properties

    Methods

    Properties

    If set then this mesh contains IFC data.

    line?: { depthMaterial: Material }

    Set by LineRenderer when constructed with depthParticipation: true. Signals to ShortFrustumDepthRenderer that this mesh should be included in the depth-render pass, using depthMaterial (a custom thin-instance-aware depth material that knows how to compute correct depth from the per-instance segStart/segEnd attributes). Lets DWG-style line meshes participate in LineShading + SSAO post-processes the same way IFC meshes do.

    Methods

    • Clear cached vertex data of this mesh. Basically this removes the cached vertex data from RAM (but not from GPU). This has the same effects as calling Scene.clearCachedVertexData (except that it only affects this particular Mesh).

      Returns void