@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
62 lines (61 loc) • 1.11 kB
JavaScript
;
import { CorePoint } from "../../entities/point/CorePoint";
export class CadPoint extends CorePoint {
constructor(object, index) {
super(object, index);
this._object = object;
this._updateGeometry();
}
object() {
return this._object;
}
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 addAttribute(object, attribName, attribute) {
}
static attributes(object) {
return void 0;
}
static entitiesCount(object) {
return 0;
}
position(target) {
return target;
}
normal(target) {
return target;
}
//
//
//
//
//
static userDataAttribs(object) {
return {};
}
static setIndexedAttribute(object, attribName, values, indices) {
}
static attribValueIndex(object, index, attribName) {
return -1;
}
//
//
//
//
//
}