在我的程序中,我将点添加到粒子系统中,然后计算它的边界框如下:
var object = new THREE.Mesh(geometry, new THREE.MeshBasicMaterial(0xff0000));
var box = new THREE.BoxHelper( object, 0xffff00 );
scene.add(box);
几何是BufferGeometry的一个实例,它包含构成粒子系统的所有点。
我看到的是包围盒是错对齐的。其方向垂直于预期方向。
所以我希望线框结构能包住点云。
我需要在这里做些额外的事情吗?
编辑:
我正在处理的代码在github:中
我正在尝试将我的数据库导入到google云中。我遵循了给出的指令
1. Go to the Google Developers Console and select a project by clicking on the project name.
2. In the sidebar on the left, click Storage > Cloud SQL to show a list of Cloud SQL instances for the project.
3. Select the instance into which to import data.
4. Click