UNPKG

@polygonjs/polygonjs

Version:

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

40 lines (39 loc) 837 B
"use strict"; import { CoreVertex } from "../../entities/vertex/CoreVertex"; export class TetVertex extends CoreVertex { constructor(object, index) { super(object, index); this._updateGeometry(); } setIndex(index, object) { this._index = index; if (object) { this._object = object; this._updateGeometry(); } return this; } _updateGeometry() { const geometry = this._object.geometry; if (geometry) { this._geometry = geometry; } } geometry() { return this._geometry; } static attributes(object) { return; } static entitiesCount(object) { return 0; } position(target) { console.warn("TetVertex.position not implemented"); return target; } normal(target) { console.warn("TetVertex.normal not implemented"); return target; } }