import jnius_config
jnius_config.set_classpath('.', '../../../jars/X3DJSAIL.3.3.full.jar')
from jnius import autoclass
from X3Dautoclass import *
X3D0 =  X3D()
X3D0.setProfile("Interchange")
X3D0.setVersion("3.0")

head1 = head()

meta2 = meta()
meta2.setContent("material.x3d")
meta2.setName("title")

head1.addMeta(meta2)
meta3 = meta()
meta3.setContent("material-front.jpg")
meta3.setName("Image")

head1.addMeta(meta3)
meta4 = meta()
meta4.setContent("http://www.nist.gov/vrml.html")
meta4.setName("reference")

head1.addMeta(meta4)
meta5 = meta()
meta5.setContent("http://www.itl.nist.gov/div897/ctg/vrml/vrml.html")
meta5.setName("reference")

head1.addMeta(meta5)
meta6 = meta()
meta6.setContent("http://www.itl.nist.gov/div897/ctg/vrml/members.html")
meta6.setName("creator")

head1.addMeta(meta6)
meta7 = meta()
meta7.setContent("This file was provided by the National Institute of Standards and Technology, and is part of the X3D Conformance Test Suite, available at http://www.nist.gov/vrml.html The information contained within this file is provided for use in establishing conformance to the ISO VRML97 Specification. Conformance to this test does not imply recommendation or endorsement by the National Institute of Standards and Technology. This software can be redistributed and/or modified freely provided that any derivative works bear some notice that they are derived from it, and any modified versions bear some notice that they have been modified.")
meta7.setName("disclaimer")

head1.addMeta(meta7)
meta8 = meta()
meta8.setContent("Correct definition and compliance of this conformance scene is maintained by the X3D Working Group, http://www.web3d.org/working-groups/x3d")
meta8.setName("info")

head1.addMeta(meta8)
meta9 = meta()
meta9.setContent("Michael Kass NIST, Don Brutzman NPS")
meta9.setName("translator")

head1.addMeta(meta9)
meta10 = meta()
meta10.setContent("21 January 2001")
meta10.setName("translated")

head1.addMeta(meta10)
meta11 = meta()
meta11.setContent("14 January 2014")
meta11.setName("modified")

head1.addMeta(meta11)
meta12 = meta()
meta12.setContent("Test of Appearance node ability to accept a Material node as an argument for the material field. Browser should generate thee Sphere geometry, with the top Sphere receiving a red diffuseColor, the bottom-right Sphere receiving a yellow emissiveColor, and the bottom-left sphere having a 0.57 transparency value.")
meta12.setName("description")

head1.addMeta(meta12)
meta13 = meta()
meta13.setContent("http://www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/Appearance/material.x3d")
meta13.setName("identifier")

head1.addMeta(meta13)
meta14 = meta()
meta14.setContent("Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html")
meta14.setName("generator")

head1.addMeta(meta14)
meta15 = meta()
meta15.setContent("X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit")
meta15.setName("generator")

head1.addMeta(meta15)
meta16 = meta()
meta16.setContent("../../license.html")
meta16.setName("license")

head1.addMeta(meta16)
X3D0.setHead(head1)
Scene17 = Scene()

Group18 = Group()

Viewpoint19 = Viewpoint()
Viewpoint19.setDescription("Front View")
Viewpoint19.setPosition([0,0,15])

Group18.addChild(Viewpoint19)
Viewpoint20 = Viewpoint()
Viewpoint20.setDescription("Rear View")
Viewpoint20.setOrientation([0,1,0,3.14])
Viewpoint20.setPosition([0,0,-15])

Group18.addChild(Viewpoint20)
Viewpoint21 = Viewpoint()
Viewpoint21.setDescription("Top View")
Viewpoint21.setOrientation([1,0,0,-1.57])
Viewpoint21.setPosition([0,15,0])

Group18.addChild(Viewpoint21)
Viewpoint22 = Viewpoint()
Viewpoint22.setDescription("Bottom View")
Viewpoint22.setOrientation([1,0,0,1.57])
Viewpoint22.setPosition([0,-15,0])

Group18.addChild(Viewpoint22)
Viewpoint23 = Viewpoint()
Viewpoint23.setDescription("Right View")
Viewpoint23.setOrientation([0,1,0,1.57])
Viewpoint23.setPosition([15,0,0])

Group18.addChild(Viewpoint23)
Viewpoint24 = Viewpoint()
Viewpoint24.setDescription("Left View")
Viewpoint24.setOrientation([0,1,0,-1.57])
Viewpoint24.setPosition([-15,0,0])

Group18.addChild(Viewpoint24)
Scene17.addChild(Group18)
Transform25 = Transform()
Transform25.setTranslation([0,2,0])

Shape26 = Shape()

Appearance27 = Appearance()

Material28 = Material()
Material28.setAmbientIntensity(0.25)
Material28.setDiffuseColor([0.748016,0,0.0400871])
Material28.setShininess(0)

Appearance27.setMaterial(Material28)
Shape26.setAppearance(Appearance27)
Sphere29 = Sphere()

Shape26.setGeometry(Sphere29)
Transform25.addChild(Shape26)
Scene17.addChild(Transform25)
Transform30 = Transform()
Transform30.setTranslation([-2,0,0])

Shape31 = Shape()

Appearance32 = Appearance()

Material33 = Material()
Material33.setAmbientIntensity(0.25)
Material33.setDiffuseColor([0.748016,0.748016,0.748016])
Material33.setShininess(1)
Material33.setSpecularColor([0.89697,0.89697,0.89697])
Material33.setTransparency(0.574468)

Appearance32.setMaterial(Material33)
Shape31.setAppearance(Appearance32)
Sphere34 = Sphere()

Shape31.setGeometry(Sphere34)
Transform30.addChild(Shape31)
Scene17.addChild(Transform30)
Transform35 = Transform()
Transform35.setTranslation([2,0,0])

Shape36 = Shape()

Appearance37 = Appearance()

Material38 = Material()
Material38.setAmbientIntensity(0)
Material38.setDiffuseColor([0,0,0])
Material38.setEmissiveColor([0.957447,0.916761,0.102624])
Material38.setShininess(0)

Appearance37.setMaterial(Material38)
Shape36.setAppearance(Appearance37)
Sphere39 = Sphere()

Shape36.setGeometry(Sphere39)
Transform35.addChild(Shape36)
Scene17.addChild(Transform35)
X3D0.setScene(Scene17)

X3D0.toFileX3D("/x3d-code/www.web3d.org/x3d/content/examples/ConformanceNist/Appearance/Appearance/material.new.x3d")
