Skip to content
Shapemetry

Model - Section

API reference for src/nodeMethods/section 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.

clipFaces

function

clipFaces(faces: Entity[], plane: { point: Point$1; normal: Vector; }): Entity[]

sectionCut

function

sectionCut(faces: Entity[], plane: { point: Point$1; normal: Vector; }): Point$1[][]

sectionCutWithPatterns

function

sectionCut + optional cutPattern stamp. Without materials/cutPattern the returned hatches is empty and loops match bare sectionCut (regression).

sectionCutWithPatterns(faces: Entity[], plane: { point: Point$1; normal: Vector; }, materials?: Material[]): { loops: Point$1[][]; hatches: HatchEntity[]; }

sectionPlane

function

sectionPlane(point: Point$1, normal: Vector, size?: number): SectionEntity[]

stampCutPatternHatches

function

stampCutPatternHatches(loops: Point$1[][], material: Material | undefined | null): HatchEntity[]
Last updated: 📖 1 min readEdit on GitHub