Skip to content
Shapemetry

Wire

Standalone 1D topological complex (vertex/edge graph document; may branch).

import { Wire } from '@huukhanhnguyen/geometry'

API reference

Wire.counts

Wire.counts(json: string): Uint32Array

Wasm: wire_counts

Wire.edgeValue

Wire.edgeValue(json: string, edge_index: number, t: number): Float64Array

Wasm: wire_edge_value

Wire.isChain

Wire.isChain(json: string): boolean

Wasm: wire_is_chain

Wire.isClosed

Wire.isClosed(json: string): boolean

Wasm: wire_is_closed

Wire.transform

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

Wasm: wire_transform

Wire.vertexPositions

Wire.vertexPositions(json: string): Float64Array

Wasm: wire_vertex_positions

See GEOMETRY_CATALOG.md for catalog ownership.

Last updated: 📖 1 min readEdit on GitHub