如何从线条渲染器绘图构建网格?
我希望用户能够使用带有光标的线条渲染器绘制形状(假设是非完美的圆形)。关闭循环以创建圆圈后,我想立即从绘图中构建一个网格。我怎样才能做到这一点?查看我附加的图片以供参考。
如果这些是线渲染器中包含的点,我该如何连接顶点和三角形来构建网格?任何帮助表示赞赏。
I want a user to be able to draw a shape (let's say a non-perfect circle) using the line renderer with a cursor. Upon closing the loop to create the circle, I want to instantly build a mesh from the drawing. How can I accomplish this? View the image I attached for reference.
If these are the points included with a line renderer, how do I go about connecting the vertices and triangles to build the mesh? Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论