30 lines
712 B
JavaScript
30 lines
712 B
JavaScript
/**
|
|
* R3.D3.API.Geometry.Normal.Octahedron
|
|
* @param apiComponent
|
|
*
|
|
* @property radius
|
|
* @property detail
|
|
*
|
|
* @constructor
|
|
*/
|
|
R3.D3.API.Geometry.Normal.Octahedron = function(
|
|
apiComponent
|
|
) {
|
|
|
|
__API_GEOMETRY_NORMAL__;
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.radius)) {
|
|
apiComponent.radius = 1;
|
|
}
|
|
this.radius = apiComponent.radius;
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.detail)) {
|
|
apiComponent.detail = 0;
|
|
}
|
|
this.detail = apiComponent.detail;
|
|
|
|
};
|
|
|
|
R3.D3.API.Geometry.Normal.Octahedron.prototype = Object.create(R3.D3.API.Geometry.Normal.prototype);
|
|
R3.D3.API.Geometry.Normal.Octahedron.prototype.constructor = R3.D3.API.Geometry.Normal.Octahedron;
|