Class: PlateCSG
Hierarchy
- PlateCSG
Index
Methods
Methods
Static Private _extrudePlatePolygon
▸ _extrudePlatePolygon(plate: Plate, polygon: ArrayPoint2[], holes: ArrayPoint2[][]): PlateRenderSurface[]
Defined in src/util/csg/PlateCSG.ts:152
Parameters:
| Name | Type |
|---|---|
plate |
Plate |
polygon |
ArrayPoint2[] |
holes |
ArrayPoint2[][] |
Returns: PlateRenderSurface[]
Static Private _getExtrudedOFF
▸ _getExtrudedOFF(polygon: MultiPolygon, holes: Array‹Polygon | MultiPolygon›, plate: any, targetPlate: any): string
Defined in src/util/csg/PlateCSG.ts:106
Parameters:
| Name | Type |
|---|---|
polygon |
MultiPolygon |
holes |
Array‹Polygon | MultiPolygon› |
plate |
any |
targetPlate |
any |
Returns: string
Static Private _sortPolygons
▸ _sortPolygons(basePlate: any, polygons3D: Vector3[][][]): object
Defined in src/util/csg/PlateCSG.ts:119
Parameters:
| Name | Type |
|---|---|
basePlate |
any |
polygons3D |
Vector3[][][] |
Returns: object
-
bottomPolygons: any
-
otherPolygons: any
-
topPolygons: any
Static Private _to2DPolygon
▸ _to2DPolygon(polygon3D: IPoint3[][]): MultiPolygon
Defined in src/util/csg/PlateCSG.ts:192
Parameters:
| Name | Type |
|---|---|
polygon3D |
IPoint3[][] |
Returns: MultiPolygon
Static Private _toOff
▸ _toOff(surfaces: PlateRenderSurface[], plate: Plate, targetPlate: Plate): string
Defined in src/util/csg/PlateCSG.ts:179
Parameters:
| Name | Type |
|---|---|
surfaces |
PlateRenderSurface[] |
plate |
Plate |
targetPlate |
Plate |
Returns: string
Static difference
▸ difference(basePlate: Plate, basePolygon: MultiPolygon, baseHoles: Array‹Polygon | MultiPolygon›, candidatePlates: IPlateWithPolygon[]): Promise‹MultiPolygon›
Defined in src/util/csg/PlateCSG.ts:27
Parameters:
| Name | Type |
|---|---|
basePlate |
Plate |
basePolygon |
MultiPolygon |
baseHoles |
Array‹Polygon | MultiPolygon› |
candidatePlates |
IPlateWithPolygon[] |
Returns: Promise‹MultiPolygon›