Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请找到管几何的 URL:以 JSON 格式传递 200 个数据点的 3d 管。
由于点的数量随管的长度而变化,我如何动态地围绕管几何创建一个透明的立方体以覆盖立方体内的整个管结构,并且整个场景看起来像表面内的管道?
geometry.computeboundingbox() 调整盒子的比例和盒子应该放置的位置
scaleX = (max.x -min.x); scaleY = (max.y -min.y); scaleZ = (max.z -min.z); positionX = min.x + scaleX/2; positionY = min.y + scaleY/2; positionZ = min.z + scaleZ/2;