-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (55 loc) · 2.53 KB
/
index.html
File metadata and controls
62 lines (55 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cubo 3D - Exportar a STEP</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
<div id="controls">
<h3>Controles del Cubo</h3>
<div class="control-group">
<label>Dimensiones (mm):</label>
<div class="dimension-inputs">
<div class="dimension-input">
<span class="dimension-label">Ancho (X)</span>
<input type="number" id="widthInput" min="0.1" max="100" step="0.1" value="20">
</div>
<div class="dimension-input">
<span class="dimension-label">Altura (Y)</span>
<input type="number" id="heightInput" min="0.1" max="100" step="0.1" value="20">
</div>
<div class="dimension-input">
<span class="dimension-label">Profund. (Z)</span>
<input type="number" id="depthInput" min="0.1" max="100" step="0.1" value="20">
</div>
</div>
<div class="preset-buttons">
<button class="preset-btn" onclick="setDimensions(10,10,10)">10×10×10</button>
<button class="preset-btn" onclick="setDimensions(20,20,20)">20×20×20</button>
<button class="preset-btn" onclick="setDimensions(50,25,15)">50×25×15</button>
<button class="preset-btn" onclick="setDimensions(30,30,5)">30×30×5</button>
</div>
<div class="dimensions-display" id="dimensionsDisplay">
20.0 × 20.0 × 20.0 mm
</div>
</div>
<div class="control-group">
<label for="colorPicker">Color:</label>
<input type="color" id="colorPicker" value="#4CAF50">
</div>
<button id="exportBtn">📦 Exportar a STEP</button>
</div>
<div id="info">
<strong>Controles:</strong><br>
• Ratón: Rotar vista<br>
• Rueda: Zoom<br>
• Arrastra: Mover cámara
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="code.js"></script>
</body>
</html>