Skip to content
Shapemetry

Model - Deform

API reference for src/schema/domains/deform, src/nodeMethods/deform on @huukhanhnguyen/model, reachable from ./compute.

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

AxisExtent

type

type AxisExtent
// = {
    min: number;
    max: number;
    length: number;
}

bend

const

const bend: ((entities: Entity[], axis: Axis, angle: number, detail?: number) => Entity[]) & { wholeArray: true

LocalPoint

type

type LocalPoint
// = {
    along: number;
    offsetU: number;
    offsetV: number;
}

Mapper

type

type Mapper
// = (local: LocalPoint, t: number, extent: AxisExtent) => LocalPoint

taper

const

const taper: ((entities: Entity[], axis: Axis, factor: number, detail?: number) => Entity[]) & { wholeArray: true

twist

const

const twist: ((entities: Entity[], axis: Axis, angle: number, detail?: number) => Entity[]) & { wholeArray: true
Last updated: 📖 1 min readEdit on GitHub