2018-04-09 09:35:04 +02:00
|
|
|
/**
|
|
|
|
* R3.D3.API.Geometry.Normal.Polyhedron
|
2019-07-24 14:45:42 +02:00
|
|
|
* @param apiGeometryNormal
|
2018-04-09 09:35:04 +02:00
|
|
|
* @param vertices
|
|
|
|
* @param indices
|
|
|
|
* @param radius
|
|
|
|
* @param detail
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
R3.D3.API.Geometry.Normal.Polyhedron = function(
|
2019-07-24 14:45:42 +02:00
|
|
|
apiGeometryNormal,
|
2018-04-09 09:35:04 +02:00
|
|
|
vertices,
|
|
|
|
indices,
|
|
|
|
radius,
|
|
|
|
detail
|
|
|
|
) {
|
|
|
|
|
2019-07-24 14:45:42 +02:00
|
|
|
__API_GEOMETRY_NORMAL_MACRO__
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(vertices)) {
|
|
|
|
vertices = [];
|
|
|
|
}
|
|
|
|
this.vertices = vertices;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(indices)) {
|
|
|
|
indices = 1;
|
|
|
|
}
|
|
|
|
this.indices = indices;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(radius)) {
|
|
|
|
radius = 5;
|
|
|
|
}
|
|
|
|
this.radius = radius;
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(detail)) {
|
|
|
|
detail = 0;
|
|
|
|
}
|
|
|
|
this.detail = detail;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.API.Geometry.Normal.Polyhedron.prototype = Object.create(R3.D3.API.Geometry.Normal.prototype);
|
|
|
|
R3.D3.API.Geometry.Normal.Polyhedron.prototype.constructor = R3.D3.API.Geometry.Normal.Polyhedron;
|