行进的立方体?
我有一个由点组成的对象,比如说它的点云,我想从这些点渲染对象,我希望对象看起来像那些点包裹在一张纸中。我想对其进行动画处理,所以我首先想到的是行进立方体,但我的对象不会是球或立方体,它会变形,有没有比行进立方体更简单的方法?
I have an object made of points, lets say its point cloud, i want to render object from those points, i want object to look like those points were wrapped in a sheet of paper. I want to animate it, so first thing that came on my mind was marching cubes, but my object will not be a ball or cube, it will morph, is there any simpler approach than marching cubes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据“包裹”的含义,3D 凸包可能会产生以下效果:想。
按照您想要的方式对顶点进行动画处理,并每次重新运行外壳算法。
Depending on what you mean by "wrapped" a 3D convex hull may produce the effect that you want.
Animate your vertices however you want and re-run the hull algorithm each time.
行进立方体算法似乎最适合您正在寻找的东西 - 并非所有点云都是凸的。由于查找表很大,该算法可能看起来很吓人,但实际上非常简单。我在以下位置发布了一个示例(使用 Three.js):
http://stemkoski。 github.com/Three.js/Marching-Cubes.html
The Marching Cubes algorithm seems like the best fit to what you're looking for -- not all point clouds are convex. The algorithm may seem intimidating because of the large lookup table, but it is actually pretty straightforward. I have posted an example (using Three.js) at:
http://stemkoski.github.com/Three.js/Marching-Cubes.html