如何镜像半 3D 网格对象?
假设我们有一个半 3D 网格对象并希望在 C# 2008 Express 中对其进行镜像。 也就是说,我们想要根据物体的中心线得到它的对称部分。
你能帮我做到这一点吗?
提前致谢。
Let assume that we have a half 3D mesh object and want to mirror it, in C# 2008 Express.
That is, we want to have its simetrical part according to the center line of the object.
Could you help me to do that.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试在一个轴上负向缩放它,这实际上应该翻转它。
因此,如果其比例为 (1, 1, 1),请将其更改为 (-1, 1, 1)。
You can try scaling it negatively in one axis, that should essentially flip it.
So if its scale is (1, 1, 1), change it to (-1, 1, 1).
嗯...这是我将使用的算法:
这将为您提供围绕您希望旋转的线的对象的反射。
hmmmm... here is the algorithm I would use:
This should give you a reflection of the object about the line you wish to rotate around.