如何从线条渲染器绘图构建网格?

发布于 2025-01-18 08:24:44 字数 283 浏览 4 评论 0原文

我希望用户能够使用带有光标的线条渲染器绘制形状(假设是非完美的圆形)。关闭循环以创建圆圈后,我想立即从绘图中构建一个网格。我怎样才能做到这一点?查看我附加的图片以供参考。line render Circle

如果这些是线渲染器中包含的点,我该如何连接顶点和三角形来构建网格?任何帮助表示赞赏。

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.line render circle

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文