Skip to main content

loadProductEdges

Callable

  • loadProductEdges(product: BimIfcObject, featureEdgeFallback?: false | FeatureEdgeOptions): Promise<FlatSegment3[]>

  • Lazily load a product's snap edges. Each mesh resolves (and caches) its edges on first access via BimProductMesh.getEdges; allSettled so one mesh whose geometry has not been demand-loaded yet doesn't poison the whole product. A mesh that resolves to no edges falls back to deriving them from its vertex data (see BimSnapProviderConfig.featureEdgeFallback); pass false to skip that. Derived edges are not cached across calls here; a snap provider caches its own.


    Parameters

    • product: BimIfcObject
    • featureEdgeFallback: false | FeatureEdgeOptions = DEFAULT_FEATURE_EDGE_OPTIONS

    Returns Promise<FlatSegment3[]>