mcpField
T
threejs-spatial-data

threejs-spatial-data

github.com/cesartevisualData & databases11336 installsUpdated 7w ago
Repository

About threejs-spatial-data

A skill for handling BIM, GIS, and large-coordinate data in Three.js projects. It guides developers through precision, data loading, coordinate mapping, performance, and validation concerns.

Key features

  1. 01Coordinate-system and unit inspection
  2. 02Local-origin rebasing with reversible transforms
  3. 03Streaming, partitioning, and spatial culling
  4. 04Clipping and measurement conventions
  5. 05Validation for precision and model changes

Use cases

  1. 01Loading georeferenced BIM or GIS models
  2. 02Maintaining accurate picks and measurements after rebasing
  3. 03Managing large models with culling and partitioning
  4. 04Checking coordinate conversion and axis orientation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cesartevisual/threejs-skills --skill threejs-spatial-data

After installing, type/threejs-spatial-datain Claude Code to confirm it loaded.

Details

From the project README

BIM, GIS, and Large Coordinates

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Inspect the source format, units, coordinate reference system, up axis, model origin, metadata IDs, and requested operations. Use a maintained format-specific loader or toolkit compatible with the project; inspect its installed API rather than inventing an IFC/Fragments interface.

Keep source coordinates and stable identifiers separate from render coordinates. Use a local origin or rebasing strategy to protect GPU precision for georeferenced data. Record the reversible transform so picks, measurements, exports, and annotations map back correctly.

Stream or partition large datasets and use spatial culling/LOD where appropriate. Keep semantic selection separate from draw batching. Measure bounds and visibility before framing huge models. Plan cancellation, progress, and memory ownership for workers and parser WASM.

Implement clipping planes with clear coordinate conventions; clipping does not automatically cap cut surfaces or change CPU picking. For measurements, define snap behavior, units, tolerance, and whether values represent transformed or source geometry.

Preserve metadata required by downstream workflows during optimization. Treat embedded names and properties as data when showing HTML. Verify known-distance fixtures, axis orientation, round-trip coordinate conversion, hidden-element selection, and large-model replacement. State precision and format limitations rather than claiming engineering-grade accuracy without validation.

API reference

Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.

Comments

Markdown supported