• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • presentations
  • sectionCaps
  • canBuildSectionCaps

Function canBuildSectionCaps

  • canBuildSectionCaps(sourceModel: SceneModel): boolean

    Quick scan to check whether sourceModel has any geometry the cap builder can usefully consume. Lets callers (panels, batch tools) skip the call entirely when the source is e.g. a point cloud or a line-only model, instead of letting buildSectionCaps run and emit zero caps.

    Returns true as soon as it finds the first triangle-flavoured geometry (TrianglesPrimitive, SolidPrimitive, or SurfacePrimitive) with a non-empty indices buffer.

    Parameters

    • sourceModel: SceneModel

    Returns boolean

    • Defined in packages/sdk/src/presentations/sectionCaps/buildSectionCaps.ts:320

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc