将3D CAD转换为OpenGL [英] 3D CAD to OpenGL

查看:90
本文介绍了将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天全站免登陆