|
SOLUTIONS
|
MATHEMATICA IMPORT/EXPORT 格式
3DS (.3ds)
MIME 类型:应用程序/x-3ds,图像/x-3ds
Autodesk 3DS 文件格式.
场景描述和三维模型格式.
用于三维模型和动画.
Autodesk 3D Studio 的原格式.
二进制文件格式.
储存三维对象及其明暗分布和观察点信息.
Autodesk 3DS 文件格式.
场景描述和三维模型格式.
用于三维模型和动画.
Autodesk 3D Studio 的原格式.
二进制文件格式.
储存三维对象及其明暗分布和观察点信息.
Import 与 ExportImport 与 Export
- Import["file.3ds"]把一个 3DS 文件导入为 Graphics3D 对象.
- Export["file.3ds", expr] 把一个 Graphics3D 表达式导出到一个 3DS 文件.
- Import["file.3ds"] 返回一个 Graphics3D[GraphicsComplex[vertices, primitives, opts]]形式的表达式.
- Import["file.3ds", elem] 从一个 3DS 文件导入指定的参数.
- Import["file.3ds", {elem, suba, subb, ...}] 导入一个子参数.
- Import["file.3ds", {{elem1, elem2, ...}}] 导入多个参数.
- 可以用 Import["file", "3DS"] 或 Import["file", {"3DS", elem, ...}] 指定导入格式.
- Export["file.3ds", expr, elem] 通过把 expr 作为指定参数 elem 创建一个 3DS 文件.
- Export["file.3ds", {expr1, expr2, ...}, {{elem1, elem2, ...}}] 把每个
指定为相应的
. - Export["file.3ds", expr, opt1->val1, ...] 导出具有指定值的指定选项参数的 expr.
- Export["file.3ds", {elem1->expr1, elem2->expr2, ...}, "Rules"] 使用规则指定要导出的参数.
- 导出的格式可以用 Export["file", expr, "3DS"] 或 Export["file", expr, {"3DS", elems}] 形式明确指定.
- Import 与 Export 的完整信息,请参阅参考页.
- ImportString 与 ExportString 支持 3DS 格式.
参数参数
- Import 的通用参数:
-
"Elements" 该文件可用的参数和选项列表 "Rules" 每个参数和选项的完整规则列表 "Options" 选项、属性和设置的规则列表 - 表示数据的参数:
-
"Graphics3D" 以 Graphics3D 对象表示的 3DS 文件 "GraphicsComplex" GraphicsComplex 对象的列表,每个代表储存在文件中的三维几何 "PolygonColors" 表面颜色信息,以每个多边形的颜色图元的列表形式给出 "PolygonData" 索引(index)形式的多边形数据 "PolygonObjects" 以绝对坐标形式给出的 Polygon 图元列表 "VertexData" 顶点坐标列表 - 默认情况下,对于 3DS 文件 Import 与 Export 使用
参数.
参数对应于 GraphicsComplex 的第一个自变量. - 当浓淡处理一个 3DS 彩色模型时,Import 自动使用设置 Lighting->"Neutral".
选项选项
- Import 的通用选项:
-
Background Automatic 使用何种背景 ImageSize Automatic 显示图形的总体大小 Lighting Automatic 着色三维表面时使用何种模拟光源 - 当从 3DS 导入时,可以使用 Graphics3D 的所有选项.
- 高级选项:
-
"VerticalAxis" {0,0,1} 用于文件中的坐标系统的假设方向 - 默认情况下,Mathematica 假设 3DS 使用的坐标系统中的垂直轴对应第三个坐标.
- 当设置为
,从 3DS 导入时,Mathematica 会对所有图形坐标应用变换
,当导出到 3DS,应用相反的变换.
版本 6 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




