JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 233
  • Score
    100M100P100Q94303F
  • License MPL-2.0

Spatial indexing for IFC-Lite

Package Exports

  • @ifc-lite/spatial

Readme

@ifc-lite/spatial

Spatial indexing for IFClite. Builds BVH (Bounding Volume Hierarchy) structures for fast ray casting and spatial queries.

Installation

npm install @ifc-lite/spatial

Quick Start

import { buildSpatialIndex } from '@ifc-lite/spatial';

const index = buildSpatialIndex(meshData);
const hit = index.raycast(origin, direction);

Features

  • BVH-based spatial indexing
  • Fast ray casting for entity picking
  • CPU-based raycasting for models with 500+ elements

API

See the API Reference.

License

MPL-2.0