Skip to content
Snippets Groups Projects
Commit 420eabf3 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Added example from Mathias on how to visualize a bounding box as a wire box.

parent 639a42bb
No related branches found
No related tags found
No related merge requests found
<?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="&quot;earth-topo.png&quot; &quot;earth-topo.jpg&quot; &quot;earth-topo.gif&quot;&#10;&quot;earth-topo-small.gif&quot;&#10;&quot;../earth-topo.png&quot;&#10;&quot;../earth-topo.jpg&quot;&#10;&quot;../earth-topo.gif&quot; &quot;../earth-topo-small.gif&quot;&#10;&quot;/www.web3d.org/x3d/content/examples/earth-topo.png&quot;&#10;&quot;/www.web3d.org/x3d/content/examples/earth-topo.jpg&quot;&#10;&quot;/www.web3d.org/x3d/content/examples/earth-topo.gif&quot;&#10;&quot;/www.web3d.org/x3d/content/examples/earth-topo-small.gif&quot;&#10;&quot;http://www.web3d.org/x3d/content/examples/earth-topo.png&quot;&#10;&quot;http://www.web3d.org/x3d/content/examples/earth-topo.jpg&quot;&#10;&quot;http://www.web3d.org/x3d/content/examples/earth-topo.gif&quot;&#10;&quot;http://www.web3d.org/x3d/content/examples/earth-topo-small.gif&quot;"/>
</Appearance>
</Shape>
<Shape>
<IndexedLineSet colorPerVertex="false" coordIndex="0 1&#10;1 3&#10;3 2&#10;2 0&#10;0 4&#10;4 5&#10;5 1&#10;1 5&#10;5 7&#10;7 3&#10;3 7&#10;7 6&#10;6 2&#10;2 6&#10;6 4&#10;">
<Coordinate point="-1 -1 -1&#10;-1 -1 1&#10;-1 1 -1&#10;-1 1 1&#10;1 -1 -1&#10;1 -1 1&#10;1 1 -1&#10;1 1 1&#10;"/>
</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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment