Creo Illustrate 安装和配置指南 > 光照设置 XML 文档模式
光照设置 XML 文档模式
本章列出了在 Creo Illustrate 中使用的光照设置 XML 文档的 XML 模式。
有关 XML 模式
下面列出的 XML 模式定义了光照场景 XML 文档的以下特征:
元素和属性与其数据类型和数据值一起显示在文档中
哪些元素为子元素,以及子元素的顺序和数量
元素为空还是可包含文本
用于 Creo Illustrate 的自定义光照场景 XML 文件必须遵循此模式。
* 
有关光照场景 XML 文档的详细信息,请参阅自定义光照设置
XML 模式列表
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="lightscenes">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="unbounded" name="lightscene">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name">
<xsd:complexType>
<xsd:attribute name="locid" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="light">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="color">
<xsd:complexType>
<xsd:attribute name="ambient" type="xsd:string" />
<xsd:attribute name="diffuse" type="xsd:string" />
<xsd:attribute name="specular" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="direction">
<xsd:complexType>
<xsd:attribute name="x" type="xsd:decimal" />
<xsd:attribute name="y" type="xsd:decimal" />
<xsd:attribute name="z" type="xsd:decimal" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="relative" type="xsd:string" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

这对您有帮助吗?