Skip to content
Shapemetry

Shell

One-shell document (Shell style): fromFaces, thicken, transform, face evaluate. Display mesh: Shell.tessellateTriangleMesh.

import { Shell } from '@huukhanhnguyen/geometry'

API reference

Shell.dump

Shell.dump(json: string): string

Wasm: brep_shell_dump

Shell.entityCounts

Shell.entityCounts(json: string): Uint32Array

Wasm: brep_shell_entity_counts

Shell.faceDocument

Shell.faceDocument(json: string, face_index: number): string

Wasm: brep_shell_face_document

Shell.faceFormsJson

Shell.faceFormsJson(json: string): string

Wasm: brep_shell_face_forms_json

Shell.faceLoops

Shell.faceLoops(json: string, tolerance: number): string

Wasm: brep_shell_face_loops

Shell.faceOutwardNormal

Shell.faceOutwardNormal(json: string, face_index: number, u: number, v: number): Float64Array

Wasm: brep_shell_face_outward_normal

Shell.faceValue

Shell.faceValue(json: string, face_index: number, u: number, v: number): Float64Array

Wasm: brep_shell_face_value

Shell.fromFaces

Shell.fromFaces(documents_json: string, tolerance: number): string

Wasm: brep_shell_from_faces

Shell.isClosed

Shell.isClosed(json: string): boolean

Wasm: brep_shell_is_closed

Shell.mirror

Shell.mirror(json: string, normal_x: number, normal_y: number, normal_z: number, point_x: number, point_y: number, point_z: number): string

Wasm: brep_shell_mirror

Shell.splitByLoops

Shell.splitByLoops(json: string, loops_json: string, tolerance: number): string

Wasm: brep_shell_split_by_loops

Shell.thicken

Shell.thicken(json: string, thickness: number, symmetric: boolean, tolerance: number): string

Wasm: brep_shell_thicken

Shell.transform

Shell.transform(json: string, matrix: Float64Array): string

Wasm: brep_shell_transform

Shell.vertexPositions

Shell.vertexPositions(json: string): Float64Array

Wasm: brep_shell_vertex_positions

See GEOMETRY_CATALOG.md for catalog ownership.

Last updated: 📖 1 min readEdit on GitHub