lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
41 lines • 1.04 kB
JavaScript
import { curveDefaults, curveSchema } from "../interface/ICurve";
import MeshAppendable from "./core/MeshAppendable";
import { configCurveSystem } from "../systems/configSystems/configCurveSystem";
class Curve extends MeshAppendable {
static componentName = "curve";
static defaults = curveDefaults;
static schema = curveSchema;
$geometry;
$material;
$mesh;
_helper = false;
get helper() {
return this._helper;
}
set helper(val) {
this._helper = val;
configCurveSystem.add(this);
}
_subdivide = 3;
get subdivide() {
return this._subdivide;
}
set subdivide(val) {
this._subdivide = val;
configCurveSystem.add(this);
}
_points = [];
get points() {
return this._points;
}
set points(val) {
this._points = val;
configCurveSystem.add(this);
}
addPoint(pt) {
this._points.push(pt);
configCurveSystem.add(this);
}
}
export default Curve;
//# sourceMappingURL=Curve.js.map