|
@@ -445,7 +445,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Ribbon.prototype._regenerateVertexData = function () {
|
|
Ribbon.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateRibbon(this.pathArray, this.closeArray, this.closePath, this.offset, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateRibbon({ pathArray: this.pathArray, closeArray: this.closeArray, closePath: this.closePath, offset: this.offset, sideOrientation: this.side });
|
|
};
|
|
};
|
|
Ribbon.prototype.copy = function (id) {
|
|
Ribbon.prototype.copy = function (id) {
|
|
return new Ribbon(id, this.getScene(), this.pathArray, this.closeArray, this.closePath, this.offset, this.canBeRegenerated(), null, this.side);
|
|
return new Ribbon(id, this.getScene(), this.pathArray, this.closeArray, this.closePath, this.offset, this.canBeRegenerated(), null, this.side);
|
|
@@ -462,7 +462,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Box.prototype._regenerateVertexData = function () {
|
|
Box.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateBox(this.size, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateBox({ size: this.size, sideOrientation: this.side });
|
|
};
|
|
};
|
|
Box.prototype.copy = function (id) {
|
|
Box.prototype.copy = function (id) {
|
|
return new Box(id, this.getScene(), this.size, this.canBeRegenerated(), null, this.side);
|
|
return new Box(id, this.getScene(), this.size, this.canBeRegenerated(), null, this.side);
|
|
@@ -480,7 +480,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Sphere.prototype._regenerateVertexData = function () {
|
|
Sphere.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateSphere(this.segments, this.diameter, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateSphere({ segments: this.segments, diameter: this.diameter, sideOrientation: this.side });
|
|
};
|
|
};
|
|
Sphere.prototype.copy = function (id) {
|
|
Sphere.prototype.copy = function (id) {
|
|
return new Sphere(id, this.getScene(), this.segments, this.diameter, this.canBeRegenerated(), null, this.side);
|
|
return new Sphere(id, this.getScene(), this.segments, this.diameter, this.canBeRegenerated(), null, this.side);
|
|
@@ -502,7 +502,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Cylinder.prototype._regenerateVertexData = function () {
|
|
Cylinder.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateCylinder(this.height, this.diameterTop, this.diameterBottom, this.tessellation, this.subdivisions, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateCylinder({ height: this.height, diameterTop: this.diameterTop, diameterBottom: this.diameterBottom, tessellation: this.tessellation, subdivisions: this.subdivisions, sideOrientation: this.side });
|
|
};
|
|
};
|
|
Cylinder.prototype.copy = function (id) {
|
|
Cylinder.prototype.copy = function (id) {
|
|
return new Cylinder(id, this.getScene(), this.height, this.diameterTop, this.diameterBottom, this.tessellation, this.subdivisions, this.canBeRegenerated(), null, this.side);
|
|
return new Cylinder(id, this.getScene(), this.height, this.diameterTop, this.diameterBottom, this.tessellation, this.subdivisions, this.canBeRegenerated(), null, this.side);
|
|
@@ -521,7 +521,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Torus.prototype._regenerateVertexData = function () {
|
|
Torus.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateTorus(this.diameter, this.thickness, this.tessellation, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateTorus({ diameter: this.diameter, thickness: this.thickness, tessellation: this.tessellation, sideOrientation: this.side });
|
|
};
|
|
};
|
|
Torus.prototype.copy = function (id) {
|
|
Torus.prototype.copy = function (id) {
|
|
return new Torus(id, this.getScene(), this.diameter, this.thickness, this.tessellation, this.canBeRegenerated(), null, this.side);
|
|
return new Torus(id, this.getScene(), this.diameter, this.thickness, this.tessellation, this.canBeRegenerated(), null, this.side);
|
|
@@ -538,7 +538,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Ground.prototype._regenerateVertexData = function () {
|
|
Ground.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateGround(this.width, this.height, this.subdivisions);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateGround({ width: this.width, height: this.height, subdivisions: this.subdivisions });
|
|
};
|
|
};
|
|
Ground.prototype.copy = function (id) {
|
|
Ground.prototype.copy = function (id) {
|
|
return new Ground(id, this.getScene(), this.width, this.height, this.subdivisions, this.canBeRegenerated(), null);
|
|
return new Ground(id, this.getScene(), this.width, this.height, this.subdivisions, this.canBeRegenerated(), null);
|
|
@@ -575,7 +575,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
Plane.prototype._regenerateVertexData = function () {
|
|
Plane.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreatePlane(this.size, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreatePlane({ size: this.size, sideOrientation: this.side });
|
|
};
|
|
};
|
|
Plane.prototype.copy = function (id) {
|
|
Plane.prototype.copy = function (id) {
|
|
return new Plane(id, this.getScene(), this.size, this.canBeRegenerated(), null, this.side);
|
|
return new Plane(id, this.getScene(), this.size, this.canBeRegenerated(), null, this.side);
|
|
@@ -597,7 +597,7 @@ var BABYLON;
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
_super.call(this, id, scene, this._regenerateVertexData(), canBeRegenerated, mesh);
|
|
}
|
|
}
|
|
TorusKnot.prototype._regenerateVertexData = function () {
|
|
TorusKnot.prototype._regenerateVertexData = function () {
|
|
- return BABYLON.VertexData.CreateTorusKnot(this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q, this.side);
|
|
|
|
|
|
+ return BABYLON.VertexData.CreateTorusKnot({ radius: this.radius, tube: this.tube, radialSegments: this.radialSegments, tubularSegments: this.tubularSegments, p: this.p, q: this.q, sideOrientation: this.side });
|
|
};
|
|
};
|
|
TorusKnot.prototype.copy = function (id) {
|
|
TorusKnot.prototype.copy = function (id) {
|
|
return new TorusKnot(id, this.getScene(), this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q, this.canBeRegenerated(), null, this.side);
|
|
return new TorusKnot(id, this.getScene(), this.radius, this.tube, this.radialSegments, this.tubularSegments, this.p, this.q, this.canBeRegenerated(), null, this.side);
|
|
@@ -608,4 +608,3 @@ var BABYLON;
|
|
})(Primitives = Geometry.Primitives || (Geometry.Primitives = {}));
|
|
})(Primitives = Geometry.Primitives || (Geometry.Primitives = {}));
|
|
})(Geometry = BABYLON.Geometry || (BABYLON.Geometry = {}));
|
|
})(Geometry = BABYLON.Geometry || (BABYLON.Geometry = {}));
|
|
})(BABYLON || (BABYLON = {}));
|
|
})(BABYLON || (BABYLON = {}));
|
|
-//# sourceMappingURL=babylon.geometry.js.map
|
|
|