UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

60 lines (56 loc) 1.51 kB
import {Color} from 'three'; export enum QUADObjectType { DEFAULT = 'Quad', } const QUAD_OBJECT_TYPES: QUADObjectType[] = [QUADObjectType.DEFAULT]; export const QUAD_OBJECT_TYPES_SET: Set<QUADObjectType> = new Set(QUAD_OBJECT_TYPES); export interface QUADTesselationParams { triangles: boolean; // wireframe: boolean; unsharedEdges: boolean; wireframeColor: Color; // connections: boolean; connectionsBetweenQuadsSharingEdge: boolean; connectionsBetweenQuadsSharingPointOnly: boolean; connectionsColor: Color; // center: boolean; innerRadius: boolean; outerRadius: boolean; edgeCenterVectors: boolean; edgeNearestPointVectors: boolean; // splitQuads: boolean; pointAttributes: string; primitiveAttributes: string; } export interface QUADOBJTesselationParams { QUADTriangles: boolean; // QUADWireframe: boolean; QUADUnsharedEdges: boolean; QUADWireframeColor: Color; // QUADConnections: boolean; QUADConnectionsBetweenQuadsSharingEdge: boolean; QUADConnectionsBetweenQuadsSharingPointOnly: boolean; QUADConnectionsColor: Color; // QUADCenter: boolean; QUADInnerRadius: boolean; QUADOuterRadius: boolean; QUADEdgeCenterVectors: boolean; QUADEdgeNearestPointVectors: boolean; // QUADSplitQuads: boolean; QUADPointAttributes: string; QUADPrimitiveAttributes: string; } export enum QuadTriangulationAttribute { INNER_RADIUS = 'innerRadius', OUTER_RADIUS = 'outerRadius', EDGE_CENTER_VECTOR = 'edgeCenterVector', EDGE_NEAREST_POINT_VECTOR = 'edgeNearestPointVector', }