Skip to content
Shapemetry

@huukhanhnguyen/types / objects/section

objects/section

Section

Section = { section: { normal: Vector; point: Point; }; size?: number; }

A cutting plane (point + normal). Discriminant: presence of section.

section

section: { normal: Vector; point: Point; }

Discriminant — presence of this field makes a payload a section plane.

normal

normal: Vector

point

point: Point

size?

optional size?: number

Display half-size of the plane gizmo (mm); cutting is unbounded.


SectionData

SectionData = { sections: SectionEntity[]; }

Object-tier section datablock — the bag of cutting planes.

sections

sections: SectionEntity[]


SectionEntity

SectionEntity = Section & { attributes?: Record<string, unknown> | null; }

One cutting plane of a section object.


SectionInstance

SectionInstance = BaseInstance & { }

A section has no surfaces; material is rejected on this kind.


SectionObject

SectionObject = BaseObject & { data: SectionData; instances: SectionInstance[]; type: "section"; }

An object whose data is section planes and nothing else.

A section is a cutting plane, not a body. The cut is an operation ON other content; this kind holds the plane that does the cutting.

Last updated: 📖 1 min readEdit on GitHub