|
SOLUTIONS
|
MATHEMATICA IMPORT/EXPORT 格式
RIB (.rib)
RenderMan RIB 用户实体文件.
三维几何格式.
用于逼真的建模和渲染.
存储三维对象定义和场景描述.
RenderMan 应用程序的原格式.
RIB 是 RenderMan Interface Bytestream(RenderMan 接口字节流)的缩写.
Developed by Pixar in 1990.
三维几何格式.
用于逼真的建模和渲染.
存储三维对象定义和场景描述.
RenderMan 应用程序的原格式.
RIB 是 RenderMan Interface Bytestream(RenderMan 接口字节流)的缩写.
Developed by Pixar in 1990.
Import 与 ExportImport 与 Export
- Import["file.rib"] 导入一个 RIB 文件为 Graphics3D 对象.
- Export["file.rib", expr] 把一个 Graphics3D 表达式导出至一个 RIB 文件.
- Import["file.rib"] 返回形式为 Graphics3D[ GraphicsComplex[vertices, primitives, opts]] 的一个表达式.
- Import["file.rib", elem] 从 RIB 实体文件导入指定的参数.
- Import["file.rib", {elem, suba, subb, ...}] 导入一个子参数.
- Import["file.rib", {{elem1, elem2, ...}}] 导入多个参数.
- 导入格式可以用 Import["file", "RIB"] 或 Import["file", {"RIB", elem, ...}] 指定.
- Export["file.rib", expr, elem] 通过把 expr 作为指定参数 elem 创建一个 RIB 实体文件.
- Export["file.rib", {expr1, expr2, ...}, {{elem1, elem2, ...}}] 把每一个
指定为相应的
. - Export["file.rib", expr, opt1->val1, ...] 导出具有指定值的指定选项参数的 expr.
- Export["file.rib", {elem1->expr1, elem2->expr2, ...}, "Rules"] 使用规则指定要导出的参数
- Import 与 Export 的完整信息请见参考页.
- ImportString 与 ExportString 支持 RIB 格式.
参数参数
- Import 的通用参数:
-
"Elements" 该文件可用的参数和选项列表 "Rules" 每个参数和选项的完整规则列表 "Options" 选项、属性和设置的规则列表 - 表示数据的参数:
-
"Graphics3D" RIB 用户实体文件被表示为一个 Graphics3D 对象 "GraphicsComplex" GraphicsComplex 对象列表,每个表示存储在文件中的三维几何 "PolygonData" 索引形式的多边形数据 "PolygonObjects" 以绝对坐标表示的 Polygon 图元 "VertexColors" 与每个顶点相关的颜色,以颜色图元的列表形式给出 "VertexData" 顶点坐标的列表 "VertexNormals" 对应于由
给定顶点的法向矢量 - 默认情况下,对于 RIB 文件,Import 与 Export 使用
参数.
参数对应于 GraphicsComplex 的第一个自变量.- 当渲染一个 RIB 彩色模型,Import 自动使用设置 Lighting->"Neutral".
版本 6 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



