Skip to content
Shapemetry

@huukhanhnguyen/model / nodeMethods/section

nodeMethods/section

clipFaces()

clipFaces(faces, plane): ObjectData[]

Parameters

faces

ObjectData[]

plane

normal

Vector

point

Point

Returns

ObjectData[]


sectionCut()

sectionCut(faces, plane): Point[][]

Parameters

faces

ObjectData[]

plane

normal

Vector

point

Point

Returns

Point[][]


sectionCutWithPatterns()

sectionCutWithPatterns(faces, plane, materials?): { hatches: HatchData[]; loops: Point[][]; }

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

Parameters

faces

ObjectData[]

plane

normal

Vector

point

Point

materials?

Material[]

Returns

{ hatches: HatchData[]; loops: Point[][]; }

hatches

hatches: HatchData[]

loops

loops: Point[][]


sectionPlane()

sectionPlane(point, normal, size?): SectionData

Parameters

point

Point

normal

Vector

size?

number = 50

Returns

SectionData


stampCutPatternHatches()

stampCutPatternHatches(loops, material): HatchData[]

Parameters

loops

Point[][]

material

Material | null | undefined

Returns

HatchData[]

Last updated: 📖 1 min readEdit on GitHub