ThreeJS CSG 与 Object3d
我对 Threejs 有一些问题。我有一个 3d 硬物体,其中包含球体、圆柱体、圆。这些几何形状形成了一个复杂的物体。我将此对象添加到场景中,接下来我将相同但较小的对象添加到场景中。 我可以旋转第一个对象,但是当一个小对象超出大对象的边界时,我需要像溢出一样剪辑它:隐藏在html中:-)。 我找到了库“三-csg-ts “但是这个库只适用于几何体。我尝试使用它,这对我来说不正确。因为我需要在将它放在场景上之前旋转这个对象。
也许有人可以帮助我?
I have some issue with threejs. I have a hard object3d which contains sphere, cylinder, circles. These geometric shapes form a complex object. I add this object to scene and and next i add the same but smaller object to the scene.
I can rotate first object, but when a small object goes beyond the borders of a large one, I need to clip it like overflow: hidden in html :-).
I found library "three-csg-ts
" but this library works only with geometry. I tryed use it, It's not correct for me. Because i need rotate this object before i put it on scene.
Maybe somebody can help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论