Skip to main content

Geometry3d

Represents a geometry that consists of one or more IFC objects

Hierarchy

Index

Properties

readonlyaabb

aabb: { max: Vector3; min: Vector3 }

The axis-aligned bounding box of the geometry.


Type declaration

  • max: Vector3
  • min: Vector3

readonlycenter

center: Vector3

The center of the geometry’s axis-aligned bounding box in IFC space.

readonlycullingDistance

cullingDistance: number

The distance at which the geometry should be culled.

readonlyid

id: string

The unique identifier for the geometry.

readonlyindices

indices: GeometryIndiceArray

Indices. Describes triangles by referencing items in positions.

readonlyisTransparent

isTransparent: boolean

Indicates whether the geometry is transparent.

readonlypositions

positions: Float32Array

Positions (x,y,z).

readonlyproductsAndMeshes

productsAndMeshes: BimIfcProductsAndMeshes

The products and meshes associated with the geometry.

readonlyuvs

uvs: Float32Array

Uvs (u,v)

Methods

applyToGeometry

  • applyToGeometry(babylonGeometry: Geometry, engine: Engine): void
  • Applies geometry to a babylon Geometry.


    Parameters

    • babylonGeometry: Geometry
    • engine: Engine

    Returns void

applyToMesh

  • applyToMesh(mesh: Mesh, engine: Engine): void
  • Applies geometry to a babylon Mesh.


    Parameters

    • mesh: Mesh
    • engine: Engine

    Returns void

copyNormalsTo

  • copyNormalsTo<T>(dst: T): T
  • Copies normals to existing array.


    Type parameters

    • T: Writeable<ArrayLike<number>>

    Parameters

    • dst: T

    Returns T

toHandle