diff --git a/examples/BoundingBox_example.x3d b/examples/BoundingBox_example.x3d new file mode 100644 index 0000000000000000000000000000000000000000..38f9995b9e34646b797e2dada755224cd3909e55 --- /dev/null +++ b/examples/BoundingBox_example.x3d @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" + "http://www.web3d.org/specifications/x3d-3.1.dtd"> +<X3D profile="Immersive" version="3.0" + xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.0.xsd"> + <head> + <meta content="BoundingBox example.x3d" name="title"/> + <meta + content="Illustrating bounding box notation and visualization. Based on helloworld.x3d example." name="description"/> + <meta content="13 September 2007" name="created"/> + <meta content="Mathias Haage" name="creator"/> + </head> + <Scene><!--Example scene to illustrate bounding box.--><Group> + <Viewpoint description="Bounding Box" position="0 -1 7"/> + <Transform rotation="0 1 0 3"> + <Shape bboxCenter="0 0 0" bboxSize="2 2 2"> + <Sphere/> + <Appearance> + <ImageTexture url=""earth-topo.png" "earth-topo.jpg" "earth-topo.gif" "earth-topo-small.gif" "../earth-topo.png" "../earth-topo.jpg" "../earth-topo.gif" "../earth-topo-small.gif" "/www.web3d.org/x3d/content/examples/earth-topo.png" "/www.web3d.org/x3d/content/examples/earth-topo.jpg" "/www.web3d.org/x3d/content/examples/earth-topo.gif" "/www.web3d.org/x3d/content/examples/earth-topo-small.gif" "http://www.web3d.org/x3d/content/examples/earth-topo.png" "http://www.web3d.org/x3d/content/examples/earth-topo.jpg" "http://www.web3d.org/x3d/content/examples/earth-topo.gif" "http://www.web3d.org/x3d/content/examples/earth-topo-small.gif""/> + </Appearance> + </Shape> + <Shape> + <IndexedLineSet colorPerVertex="false" coordIndex="0 1 1 3 3 2 2 0 0 4 4 5 5 1 1 5 5 7 7 3 3 7 7 6 6 2 2 6 6 4 "> + <Coordinate point="-1 -1 -1 -1 -1 1 -1 1 -1 -1 1 1 1 -1 -1 1 -1 1 1 1 -1 1 1 1 "/> + </IndexedLineSet> + </Shape> + </Transform> + <Transform translation="0 -2 0"> + <Shape> + <Text string=""Bounding" "Box!""> + <FontStyle justify=""MIDDLE" "MIDDLE""/> + </Text> + <Appearance> + <Material diffuseColor="0.1 0.5 1"/> + </Appearance> + </Shape> + </Transform> + </Group> + </Scene> +</X3D>