Implements

Constructors

Properties

conwayGeometry: ConwayGeometry
model: default
roots: number[] = []

Accessors

  • get stackLength(): number
  • Get the current stack deoth.

    Returns number

    The current stack depth.

Methods

  • Parameters

    • localID: number
    • OptionalowningElementLocalID: number
    • OptionalmaterialOverridLocalID: number

    Returns AP214SceneGeometry

  • Add a transform node and make the current transform stack parent its parent.

    Items added will be made the top of the transform stack.

    To prevent a node being used as a parent, pop it subsequently.

    Parameters

    • localID: number

      The local ID of the transform.

    • transform: readonly number[]

      The transform matrix.

    • nativeTransform: NativeTransform4x4

      The native transform matrix.

    • mappedItem: boolean = false

      Whether the transform is a mapped item.

    Returns AP214SceneTransform

    The added transform node.

  • Build a packed/optimised mesh model with triangle element maps.

    Returns PackedMesh<default>

    Maps materials to a geometry object and triangle element map.

  • Returns void

  • Walk every geometry node yielding its owning part-type element (the product_definition_shape, shared across occurrences) alongside the occurrence path (NAUO express ids) that uniquely places it. This is the seam that lets a picked mesh resolve to the right product-structure node: the owner id alone collides across reused parts; the occurrence path does not.

    Returns IterableIterator<[undefined | default<EntityTypesAP214>, readonly number[]], any, any>

    [owning element, occurrence path] per geometry node.

  • Does this scene have a particular piece of geometry?

    Parameters

    • localID: number

      The local ID of the geometry

    Returns boolean

    True if the scene has this geometry.

  • Are all the geometry nodes in the scene spaces

    Returns boolean

    Are all the geometry nodes in the scene spaces

  • Leave the most recently entered assembly occurrence.

    Returns void

  • Returns void

  • Enter an assembly occurrence: subsequent geometry is stamped as belonging to this NAUO. Balanced by popOccurrence.

    Parameters

    • occurrenceExpressID: number

      The NAUO express id of the placement being entered.

    Returns void

  • Parameters

    Returns void

  • Walk the current scene.

    Parameters

    • includeSpaces: boolean = false

      the canonical material and the associated step element as it walks the hierarchy.

    Returns IterableIterator<[undefined | readonly number[], undefined | NativeTransform4x4, CanonicalMeshBuffer, undefined | CanonicalMaterial, undefined | default<EntityTypesAP214>], any, any>

    Raw absolute matrix transform, the native absolute transform, the canonical mesh,

  • Same as walk, but also yields each geometry instance's occurrence path (NAUO express ids) as a 6th element. Kept separate from walk (which satisfies the shared WalkableScene contract) so the AP214 shim can attach per-instance occurrence identity to each emitted PlacedGeometry without changing the interface every scene builder implements.

    Parameters

    • includeSpaces: boolean = false

      Unused; kept for signature parity with walk.

    Returns IterableIterator<[undefined | readonly number[], undefined | NativeTransform4x4, CanonicalMeshBuffer, undefined | CanonicalMaterial, undefined | default<EntityTypesAP214>, readonly number[]], any, any>

    walk tuple plus the occurrence path of the geometry instance.