xtorcga
Version:
Xtor Compute Geometry Algorithm Libary 计算几何算法库
38 lines (37 loc) • 1.84 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.BreathLight = void 0;
var _three_0_125_2_three_1 = require("_three@0.125.2@three");
var BreathLight = /** @class */ (function (_super) {
__extends(BreathLight, _super);
function BreathLight() {
var _this = _super.call(this) || this;
var geometry = new _three_0_125_2_three_1.CircleBufferGeometry(1, 32);
geometry.rotateX(-Math.PI / 2);
var mat1 = new _three_0_125_2_three_1.MeshBasicMaterial({ color: 0x1f9ccf });
var mat2 = new _three_0_125_2_three_1.MeshBasicMaterial({ color: 0x1f9ccf, transparent: true, opacity: 0.7 });
var mat3 = new _three_0_125_2_three_1.MeshBasicMaterial({ color: 0x1f9ccf, transparent: true, opacity: 0.1 });
var mesh1 = new _three_0_125_2_three_1.Mesh(geometry, mat1);
var mesh2 = new _three_0_125_2_three_1.Mesh(geometry, mat2);
var mesh3 = new _three_0_125_2_three_1.Mesh(geometry, mat3);
mesh2.scale.set(2, 2, 2);
mesh3.scale.set(4, 4, 4);
_this.add(mesh1, mesh2, mesh3);
return _this;
}
return BreathLight;
}(_three_0_125_2_three_1.Object3D));
exports.BreathLight = BreathLight;