Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
XMLSchemaCompiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Nilsson
XMLSchemaCompiler
Commits
420eabf3
Commit
420eabf3
authored
17 years ago
by
Anders Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
Added example from Mathias on how to visualize a bounding box as a wire box.
parent
639a42bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/BoundingBox_example.x3d
+40
-0
40 additions, 0 deletions
examples/BoundingBox_example.x3d
with
40 additions
and
0 deletions
examples/BoundingBox_example.x3d
0 → 100644
+
40
−
0
View file @
420eabf3
<?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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment