UNPKG

@polygonjs/polygonjs

Version:

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

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