ClippedPolyfaceBuilders Class
A pair of PolyfaceBuilder objects, for use by clippers that emit inside and outside parts.
- There are nominally 4 builders:
- builderA collects simple "inside" clip.
- builderB collects simple "outside" clip.
- builderA1 collects "side" clip for inside.
- builderB1 collets "side" clip for outside.
static ClippedPolyfaceBuilders.create(keepInside, keepOutside)
initializesbuilderA
andbuilderB
(each optionally to undefined), with undefinedbuilderA1
andbuilderB1
builders.enableSideBuilders()
makesbuilderA1
andbuilderB1
matchbuilderA
andbuilderB
.- construction methods aim their facets at appropriate builders if defined.
- @public
Methods
Name | Description | |
---|---|---|
claimPolyface(selector: | "1", fixup: boolean): undefined | IndexedPolyface | ||
create(keepInside: boolean = true, keepOutside: boolean = false, buildSideFaces: boolean = false): ClippedPolyfaceBuilders Static | Simple create with default options on builder. |
Properties
Name | Type | Description | |
---|---|---|---|
buildClosureFaces | undefined | boolean | request to construct cut faces | |
builderA | undefined | PolyfaceBuilder | An available builder. | |
builderB | undefined | PolyfaceBuilder | An available builder. |
Defined in
- polyface/PolyfaceClip.ts Line 60
Last Updated: 20 June, 2023