/** * R3.D3.API.Geometry.Buffer.Dodecahedron * @param apiGeometry * @param radius * @param detail * @constructor */ R3.D3.API.Geometry.Buffer.Dodecahedron = function( apiGeometry, radius, detail ) { if (R3.Utils.UndefinedOrNull(apiGeometry)) { apiGeometry = { geometryType: R3.D3.API.Geometry.GEOMETRY_TYPE_BUFFER_DODECAHEDRON }; } if (R3.Utils.UndefinedOrNull(apiGeometry.geometryType)) { apiGeometry.geometryType = R3.D3.API.Geometry.GEOMETRY_TYPE_BUFFER_DODECAHEDRON; } 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.call( this, apiGeometry, apiGeometry.attributes, apiGeometry.drawRange, apiGeometry.groups, apiGeometry.index, apiGeometry.morphAttributes ); }; R3.D3.API.Geometry.Buffer.Dodecahedron.prototype = Object.create(R3.D3.API.Geometry.Buffer.prototype); R3.D3.API.Geometry.Buffer.Dodecahedron.prototype.constructor = R3.D3.API.Geometry.Buffer.Dodecahedron;