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

    Type Alias MeshLoadedCallback

    MeshLoadedCallback: (
        mesh: BimMesh,
        input: InputMesh,
        proxy: MeshProxy | null,
    ) => void

    Called while an object loads: once its BimMesh is made, before it is added to the scene (with or without geometry, proxy null), then again each time a geometry of it is linked (its 3D, its 2D, proxy the one linked), before it is drawn. What it sets on the mesh (colour, opacity, visibility, x-ray, layer, user data…) is its state from its first frame: set the material once a geometry is there (proxy not null), the rest from the first call.

    Type Declaration

      • (mesh: BimMesh, input: InputMesh, proxy: MeshProxy | null): void
      • Parameters

        • mesh: BimMesh

          The object loading.

        • input: InputMesh

          What the file gave for it (for a geometry, its own): read it, do not keep it (its parts hold the geometry buffers).

        • proxy: MeshProxy | null

          The engine object of the geometry just linked; null when the mesh is made.

        Returns void