Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Moléculas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
patbazd
Moléculas
Commits
e2526bee
Commit
e2526bee
authored
Mar 17, 2023
by
patbazd
Browse files
Options
Downloads
Patches
Plain Diff
ejercicio3
parent
cdf57bdf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ejercicio3.html
+131
-0
131 additions, 0 deletions
ejercicio3.html
with
131 additions
and
0 deletions
ejercicio3.html
0 → 100644
+
131
−
0
View file @
e2526bee
<html>
<head>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<title>
Molécula de metano en X3D
</title>
<script
type=
'text/javascript'
src=
'https://www.x3dom.org/download/x3dom.js'
>
</script>
<link
rel=
'stylesheet'
type=
'text/css'
href=
'https://www.x3dom.org/download/x3dom.css'
>
</link>
</head>
<body>
<h1>
Molécula de metano en X3D
</h1>
<p>
Este es un ejemplo de grafo de escena de la molécula de metano (CH4) en X3D.
</p>
<x3d
width=
'1500px'
height=
'800px'
>
<!-- Configuración de la escena -->
<scene>
<!-- Átomos de la molécula -->
<!-- Átomo de C -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'0, 0, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0.5 0.5 0.5'
></material>
</appearance>
<!-- Geometría (esfera de radio 1.2) -->
<sphere
radius=
'1.2'
></sphere>
</shape>
</transform>
<!-- Átomo de H (1) -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'2, 0, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 1 0'
></material>
</appearance>
<!-- Geometría (esfera de radio 0.6) -->
<sphere
radius=
'0.6'
></sphere>
</shape>
</transform>
<!-- Átomo de H (2) -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'-2, 0, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 1 0'
></material>
</appearance>
<!-- Geometría (esfera de radio 0.6) -->
<sphere
radius=
'0.6'
></sphere>
</shape>
</transform>
<!-- Átomo de H (3) -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'0, 2, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 1 0'
></material>
</appearance>
<!-- Geometría (esfera de radio 0.6) -->
<sphere
radius=
'0.6'
></sphere>
</shape>
</transform>
<!-- Átomo de H (4) -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'0, -2, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 1 0'
></material>
</appearance>
<!-- Geometría (esfera de radio 0.6) -->
<sphere
radius=
'0.6'
></sphere>
</shape>
</transform>
<!-- Enlaces -->
<!-- Enlace entre átomos C y H (1) -->
<!-- Posición del átomo en (x,y,z) y rotación del átomo en el eje z 190º -->
<transform
translation=
'1, 0, 0'
rotation=
"0 0 1 190"
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 0 1'
></material>
</appearance>
<!-- Geometría (cilindro de radio 0.2 y de altura 1.2) -->
<cylinder
radius=
'0.2'
height=
'1.2'
></cylinder>
</shape>
</transform>
<!-- Enlace entre átomos C y H (2) -->
<!-- Posición del átomo en (x,y,z) y rotación del átomo en el eje z 190º -->
<transform
translation=
'-1, 0, 0'
rotation=
"0 0 1 190"
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 0 1'
></material>
</appearance>
<!-- Geometría (cilindro de radio 0.2 y de altura 1.2) -->
<cylinder
radius=
'0.2'
height=
'1.2'
></cylinder>
</shape>
</transform>
<!-- Enlace entre átomos C y H (3) -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'0, 1, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 0 1'
></material>
</appearance>
<!-- Geometría (cilindro de radio 0.2 y de altura 1.2) -->
<cylinder
radius=
'0.2'
height=
'1.2'
></cylinder>
</shape>
</transform>
<!-- Enlace entre átomos C y H (4) -->
<!-- Posición del átomo en (x,y,z) -->
<transform
translation=
'0, -1, 0'
>
<shape>
<!-- Apariencia (color) -->
<appearance>
<material
diffuseColor=
'0 0 1'
></material>
</appearance>
<!-- Geometría (cilindro de radio 0.2 y de altura 1.2) -->
<cylinder
radius=
'0.2'
height=
'1.2'
></cylinder>
</shape>
</transform>
</scene>
</x3d>
</body>
</html>
\ No newline at end of file
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