UNPKG

@polygonjs/polygonjs

Version:

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

30 lines (28 loc) 987 B
import {Vector3} from 'three'; import {CoreVertex} from '../../entities/vertex/CoreVertex'; import {CoreObjectType, ObjectContent} from '../../ObjectContent'; import {VertexAttributesDict} from '../../entities/vertex/Common'; import {CsgObject} from './CsgObject'; import {CsgGeometryType} from './CsgCommon'; export class CsgVertex<T extends CsgGeometryType> extends CoreVertex<CoreObjectType.CSG> { constructor(object: CsgObject<T>, index: number) { super(object, index); } geometry() { return undefined; } static override attributes<T extends CoreObjectType>(object: ObjectContent<T>): VertexAttributesDict | undefined { return; } static override entitiesCount<T extends CoreObjectType>(object: ObjectContent<T>) { return 0; } override position(target: Vector3): Vector3 { console.warn('CsgVertex.position not implemented'); return target; } override normal(target: Vector3): Vector3 { console.warn('CsgVertex.normal not implemented'); return target; } }