Skip to content
Snippets Groups Projects
Select Git revision
8 results Searching

labcomm2006

Blame
  • Forked from Anders Blomdell / LabComm
    Source project has a limited visibility.
    BoundingBox_example.x3d 2.39 KiB
    <?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi: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="&quot;earth-topo.png&quot; &quot;earth-topo.jpg&quot; &quot;earth-topo.gif&quot; &quot;earth-topo-small.gif&quot; &quot;../earth-topo.png&quot; &quot;../earth-topo.jpg&quot; &quot;../earth-topo.gif&quot; &quot;../earth-topo-small.gif&quot; &quot;/www.web3d.org/x3d/content/examples/earth-topo.png&quot; &quot;/www.web3d.org/x3d/content/examples/earth-topo.jpg&quot; &quot;/www.web3d.org/x3d/content/examples/earth-topo.gif&quot; &quot;/www.web3d.org/x3d/content/examples/earth-topo-small.gif&quot; &quot;http://www.web3d.org/x3d/content/examples/earth-topo.png&quot; &quot;http://www.web3d.org/x3d/content/examples/earth-topo.jpg&quot; &quot;http://www.web3d.org/x3d/content/examples/earth-topo.gif&quot; &quot;http://www.web3d.org/x3d/content/examples/earth-topo-small.gif&quot;"/>
              </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="&quot;Bounding&quot; &quot;Box!&quot;">
                <FontStyle justify="&quot;MIDDLE&quot; &quot;MIDDLE&quot;"/>
              </Text>
              <Appearance>
                <Material diffuseColor="0.1 0.5 1"/>
              </Appearance>
            </Shape>
          </Transform>
        </Group>
      </Scene>
    </X3D>