UNPKG

@polygonjs/polygonjs

Version:

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

24 lines (23 loc) 646 B
"use strict"; import { CsgPrimitive } from "./CsgPrimitive"; export class CsgPrimitiveGeom3 extends CsgPrimitive { constructor(object, index) { super(object, index); } static primitiveName() { return "polygon"; } static entitiesCount(object) { const csgOobject = object; const geometry = csgOobject.geometry; return geometry.polygons.length; } // position(target: Vector3): Vector3 { // console.warn('CsgPrimitiveGeom3.position not implemented'); // return target; // } // normal(target: Vector3): Vector3 { // console.warn('CsgPrimitiveGeom3.normal not implemented'); // return target; // } }