Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mandic
Visualization
Commits
25257593
Commit
25257593
authored
3 years ago
by
Mandic
Browse files
Options
Download
Email Patches
Plain Diff
Update ifsandmaterial.html
parent
44d6f406
Pipeline
#6370
passed with stages
in 14 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/X3DOMTutorial/ifsandmaterial.html
+116
-104
public/X3DOMTutorial/ifsandmaterial.html
with
116 additions
and
104 deletions
+116
-104
public/X3DOMTutorial/ifsandmaterial.html
+
116
-
104
View file @
25257593
<html>
<html>
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
indexed face set and material
</title>
<title>
indexed face set and material
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"x3dom.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"x3dom.css"
>
</link>
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/vs.min.css"
>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"
></script>
<script>
hljs
.
highlightAll
();
</script>
</head>
</head>
<body>
<body>
...
@@ -47,15 +49,24 @@
...
@@ -47,15 +49,24 @@
</Shape>
</Shape>
</Scene>
</Scene>
</X3D>
</X3D>
</p>
</td>
</td>
<td
width=
"50%"
align=
"left"
valign=
"top"
scope=
"col"
>
<td
width=
"50%"
align=
"left"
valign=
"top"
scope=
"col"
>
One shape has only ony appearance. If different colors for the building elements roof, wall and ground surfaces
One shape has only ony appearance. If different colors for the building elements roof, wall and ground surfaces
shall be used,
shall be used,
we need to have different shape for these elements. However, they can share the same point set. The following
we need to have different shape for these elements. However, they can share the same point set. The following
example uses different
example uses different
Material for roo, wall, and ground surfaces.
Material for roo
f
, wall, and ground surfaces.
<br>
<br>
<pre
class=
"prettyprint"
>
<pre>
<code
class=
"language-html"
>
<
html
>
<
head
>
<
title
>
indexed face set and material
<
/title
>
<
script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'
>
<
/script
>
<
link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'
><
/link
>
<
/head
>
<
body
>
<
X3D id="shapedata" width="600px" height="600px" style="float:left"
>
<
X3D id="shapedata" width="600px" height="600px" style="float:left"
>
<
Scene
>
<
Scene
>
<
Shape
>
<
Shape
>
...
@@ -94,10 +105,11 @@
...
@@ -94,10 +105,11 @@
<
/Shape
>
<
/Shape
>
<
/Scene
>
<
/Scene
>
<
/X3D
>
<
/X3D
>
</pre>
<
/body
>
<
/html
>
</code>
</pre>
</td>
</td>
</tr>
</table>
<script
type=
"text/javascript"
src=
"x3dom.js"
></script>
<script
type=
"text/javascript"
src=
"x3dom.js"
></script>
</body>
</body>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment