将 2D 转换为 3D(带尺寸)
在 C# 中,如何将一张 2D 图像转换为具有尺寸的 3D 图像?像这样 http://thorrdynamics.com/images/cam_print.jpg 在 3D 模型的左侧在右侧。 有可能吗?感谢您的帮助
in c# how to convert one 2D image to 3D image with dimension? Like this http://thorrdynamics.com/images/cam_print.jpg in left side to 3D model in right side.
Its possible? Thx for any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,没有。您无法拍摄 2D 图像、“添加尺寸”并显示结果对象的投影。仅凭图像,您没有足够的信息来说明该对象的实际外观。为了显示 3D 对象的投影,您需要知道组成该对象的所有顶点(例如,长方体角的
[x,y,z]
坐标)和信息这说明了这些顶点如何相互连接(边)。有了这些信息,您就可以从任何角度创建对象的投影,尽管这样做并不简单。查看线框模型和3D 建模 了解更多信息。
In general, no. You can't take a 2D image, "add a dimension," and display a projection of the resulting object. With just an image, you don't have enough information to say what the object actually looks like. In order to display a projection of a 3D object, you need to know all the vertices that make up the object (the
[x,y,z]
coordinates of a box's corners, for example) and information that says how those vertices are connected to each other (the edges). With that information, you can create a projection of the object from any angle, although doing so is non-trivial.Look into Wireframe models and 3D modeling for more information.