ConstConverts CAD geometry AcGeBox2d to Three.js Box2
Converts CAD geometry AcGeBox2d to Three.js Box3 (Z=0)
Converts CAD geometry AcGeBox3d to Three.js Box3
Converts CAD geometry AcGeBox3d to CAD geometry AcGeBox2d
Converts Three.js Box2 to CAD geometry AcGeBox2d
Converts Three.js Box3 to CAD geometry Box2d (ignores Z)
Converts Three.js Box3 to CAD geometry AcGeBox3d
// Convert Three.js box to CAD geometry
const threeBox = new THREE.Box3();
const cadBox = AcTrGeometryUtil.threeBox3dToGeBox3d(threeBox);
// Convert CAD geometry box to Three.js
const cadBox2d = new AcGeBox2d();
const threeBox2d = AcTrGeometryUtil.goBox2dToThreeBox2d(cadBox2d);
// Cross-dimensional conversion
const threeBox3d = new THREE.Box3();
const cadBox2d = AcTrGeometryUtil.threeBox3dToGeBox2d(threeBox3d);
Utility object containing geometry conversion functions between Three.js and CAD geometry types.
This utility provides bidirectional conversion functions for bounding boxes: