Skip to content
Shapemetry

Geometry

Guide

What it is: the COMPUTE tier - pure geometry math over Rust/WASM. Function-only namespaces (Point.*, Brep.*, Path2d.*, …). No scene graph, no file I/O.

numbers / JSON in  →  @huukhanhnguyen/geometry  →  numbers / JSON out
B-Rep: solid-root via Brep.*; one-shell via Shell.* (no arena free)
2D fill: Path2d { curves: PolyCurve2d[], transformation? }
3D path: Path { curves: PolyCurve[], transformation? }

Install

pnpm add @huukhanhnguyen/geometry
import { Brep, Point, Shell, Path2d, Path } from '@huukhanhnguyen/geometry'

Reference signatures resolved from geometry-wasm .d.ts (646 functions) and package .d.ts.

API reference

Reference pages list live members with signatures. Membership is generated from the published wasm + package .d.ts (drift-gated).

Document / free helpers

B-Rep

  • Brep - solid-root multi-shell document ops
  • Shell - one-shell document ops
  • Brep.tessellate / Shell.tessellateTriangleMesh (Unit H; no Tessellation namespace)

Core 3D

Core 2D

Curve

Surface

Mesh

Other

Last updated: 📖 1 min readEdit on GitHub