@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
27 lines (26 loc) • 840 B
TypeScript
import { Color } from 'three';
import type { geometries } from '@jscad/modeling';
export type CsgGeometry = geometries.path2.Path2 | geometries.geom2.Geom2 | geometries.geom3.Geom3;
export declare enum CsgGeometryType {
PATH2 = "CSGPath2",
GEOM2 = "CSGGeom2",
GEOM3 = "CSGGeom3"
}
export declare const CSG_GEOMETRY_TYPES_SET: Set<CsgGeometryType>;
export interface CsgTypeMap {
[CsgGeometryType.PATH2]: geometries.path2.Path2;
[CsgGeometryType.GEOM2]: geometries.geom2.Geom2;
[CsgGeometryType.GEOM3]: geometries.geom3.Geom3;
}
export interface CSGTesselationParams {
facetAngle: number;
wireframe: boolean;
meshesColor: Color;
linesColor: Color;
}
export interface CSGOBJTesselationParams {
CSGFacetAngle: number;
CSGWireframe: boolean;
CSGMeshesColor: Color;
CSGLinesColor: Color;
}