3D CAD 到 OpenGL [英] 3D CAD to OpenGL

查看:23
本文介绍了3D CAD 到 OpenGL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道可以对对象进行 3D 绘图,然后将其转换为所需的 OpenGL 点和法线的程序.

I was wondering if anyone knew of a program that can take a 3D drawing of an object and then convert it into the required OpenGL points and normals.

基本上我有一张 AutoCAD 绘图,我希望能够在我为 iPhone 创建的程序中显示它.有什么建议吗?

Basically I have an AutoCAD drawing of that I want to be able to display in a program I am creating for iPhone. Any suggestions?

推荐答案

如果您有 AutoCAD 本身,您可以将对象导出为网格格式,如 STL.读取 STL 文件很简单.

If you have AutoCAD itself, you could export the object into a mesh format, like STL. Reading STL files is straightforward.

如果您没有 AutoCAD,您也可以尝试 FreeCAD,它基于 OpenCascade,它可以导出非常好的网格(也可以导出为 STL 格式).但是AutoCAD的文件格式是不断变化的,所以读取原始文件时YMMV.

If you don't have AutoCAD you may also try FreeCAD, which is based on OpenCascade, which exports quite nice meshes (also into STL format). However the AutoCAD file format is in constant flux, so YMMV when reading the original file.

这篇关于3D CAD 到 OpenGL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆