Documentation for CityGML

Complex Type: X3DMaterialType

[Table of contents]

Super-types: gml:AbstractFeatureType < AbstractSurfaceDataType (by extension) < X3DMaterialType (by extension)
Sub-types: None
Name X3DMaterialType
Used by (from the same schema document) Element X3DMaterial
Abstract no
Documentation Class for defining constant surface properties. It is based on X3D's material definition. In addition, "isSmooth" provides a hint for value interpolation. The link to surface geometry is established via the "target"-property. Only decendants of gml:AbstractSurfaceType ar valid targets.
XML Instance Representation
<...
gml:id="[0..1]">
<gml:description> ... </gml:description> [0..1]
<gml:name> ... </gml:name> [0..*]

'Multiple names may be provided. These will often be distinguished by being assigned by different authorities, as indicated by the value of the codeSpace attribute. In an instance document there will usually only be one name per authority.'

<gml:boundedBy> ... </gml:boundedBy> [0..1]
<gml:location> ... </gml:location> [0..1]

'deprecated in GML version 3.1'

<isFront> xs:boolean </isFront> [0..1]
<ambientIntensity> doubleBetween0and1 </ambientIntensity> [0..1]
<diffuseColor> Color </diffuseColor> [0..1]
<emissiveColor> Color </emissiveColor> [0..1]
<specularColor> Color </specularColor> [0..1]
<shininess> doubleBetween0and1 </shininess> [0..1]
<transparency> doubleBetween0and1 </transparency> [0..1]
<isSmooth> xs:boolean </isSmooth> [0..1]
<target> xs:anyURI </target> [0..*]
</...>
Diagram
Schema Component Representation
<xs:complexType name="X3DMaterialType">
<xs:complexContent>
<xs:extension base=" AbstractSurfaceDataType ">
<xs:sequence>
<xs:element name="ambientIntensity" type=" doubleBetween0and1 " default="0.2" minOccurs="0"/>
<xs:element name="diffuseColor" type=" Color " default="0.8 0.8 0.8" minOccurs="0"/>
<xs:element name="emissiveColor" type=" Color " default="0.0 0.0 0.0" minOccurs="0"/>
<xs:element name="specularColor" type=" Color " default="1.0 1.0 1.0" minOccurs="0"/>
<xs:element name="shininess" type=" doubleBetween0and1 " default="0.2" minOccurs="0"/>
<xs:element name="transparency" type=" doubleBetween0and1 " default="0.0" minOccurs="0"/>
<xs:element name="isSmooth" type=" xs:boolean " default="false" minOccurs="0"/>
<xs:element name="target" type=" xs:anyURI " minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref=" _GenericApplicationPropertyOfX3DMaterial " minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>