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>

這是否有幫助?