You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/sample/Getbox.ts

17 lines
427 B

import { RenderType } from '../src/GraphicsSystem/Enum';
import { Solid3d } from '../src/DatabaseServices/Entity';
import * as THREE from 'three';
import { GeUtils } from "../src/Geometry/GeUtils";
let box = new Solid3d(10, 10, 10);
let obj = box.Draw(RenderType.Wireframe);
let move = new THREE.Matrix4();
move.makeTranslation(100, 0, 0);
box.applyMatrix4(move);
let b = GeUtils.GetBox(obj, true);
console.log('b: ', b);