30 lines
665 B
JavaScript
30 lines
665 B
JavaScript
/**
|
|
* R3.D3.API.Geometry.Buffer.Tetrahedron
|
|
* @param apiGeometryBuffer
|
|
* @param radius
|
|
* @param detail
|
|
* @constructor
|
|
*/
|
|
R3.D3.API.Geometry.Buffer.Tetrahedron = function(
|
|
apiGeometryBuffer,
|
|
radius,
|
|
detail
|
|
) {
|
|
|
|
__API_GEOMETRY_BUFFER_MACRO__;
|
|
|
|
if (R3.Utils.UndefinedOrNull(radius)) {
|
|
radius = 1;
|
|
}
|
|
this.radius = radius;
|
|
|
|
if (R3.Utils.UndefinedOrNull(detail)) {
|
|
detail = 0;
|
|
}
|
|
this.detail = detail;
|
|
|
|
};
|
|
|
|
R3.D3.API.Geometry.Buffer.Tetrahedron.prototype = Object.create(R3.D3.API.Geometry.Buffer.prototype);
|
|
R3.D3.API.Geometry.Buffer.Tetrahedron.prototype.constructor = R3.D3.API.Geometry.Buffer.Tetrahedron;
|