polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
20 lines (19 loc) • 441 B
JavaScript
import {BaseCopyStamp} from "../../utils/CopyStamp";
export class CopyStamp extends BaseCopyStamp {
set_point(point) {
this._point = point;
this.setDirty();
this.removeDirtyState();
}
value(attrib_name) {
if (this._point) {
if (attrib_name) {
return this._point.attribValue(attrib_name);
} else {
return this._point.index();
}
} else {
return this._global_index;
}
}
}