@ifc-lite/spatial 1.6.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @ifc-lite/spatial
2
+
3
+ Spatial indexing for IFClite. Builds BVH (Bounding Volume Hierarchy) structures for fast ray casting and spatial queries.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @ifc-lite/spatial
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```typescript
14
+ import { buildSpatialIndex } from '@ifc-lite/spatial';
15
+
16
+ const index = buildSpatialIndex(meshData);
17
+ const hit = index.raycast(origin, direction);
18
+ ```
19
+
20
+ ## Features
21
+
22
+ - BVH-based spatial indexing
23
+ - Fast ray casting for entity picking
24
+ - CPU-based raycasting for models with 500+ elements
25
+
26
+ ## API
27
+
28
+ See the [API Reference](../../docs/api/typescript.md#ifc-litespatial).
29
+
30
+ ## License
31
+
32
+ [MPL-2.0](../../LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/spatial",
3
- "version": "1.6.1",
3
+ "version": "1.8.0",
4
4
  "description": "Spatial indexing for IFC-Lite",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,7 +12,7 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@ifc-lite/geometry": "^1.6.1"
15
+ "@ifc-lite/geometry": "^1.8.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "typescript": "^5.3.0"