Implementar figura ATOM (núcleo + órbitas) - Tecla I - TODAS LAS FIGURAS COMPLETADAS
- Nueva clase AtomShape con núcleo central + 3 órbitas - Núcleo: esfera pequeña con distribución Fibonacci - Órbitas: planos inclinados con electrones animados - Rotación global + rotación orbital independiente - Modelo atómico clásico de Bohr - Compatible con física spring-damper y z-sorting ✅ TODAS LAS 8 FIGURAS 3D IMPLEMENTADAS: Q-Sphere, W-WaveGrid, E-Helix, R-Torus, T-Cube, Y-Cylinder, U-Icosahedron, I-Atom 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "shapes/torus_shape.h" // for TorusShape
|
||||
#include "shapes/cylinder_shape.h" // for CylinderShape
|
||||
#include "shapes/icosahedron_shape.h" // for IcosahedronShape
|
||||
#include "shapes/atom_shape.h" // for AtomShape
|
||||
|
||||
// Función auxiliar para obtener la ruta del directorio del ejecutable
|
||||
std::string getExecutableDirectory() {
|
||||
@@ -1088,7 +1089,9 @@ void Engine::activateShape(ShapeType type) {
|
||||
case ShapeType::ICOSAHEDRON:
|
||||
active_shape_ = std::make_unique<IcosahedronShape>();
|
||||
break;
|
||||
// Futuras figuras se añadirán aquí
|
||||
case ShapeType::ATOM:
|
||||
active_shape_ = std::make_unique<AtomShape>();
|
||||
break;
|
||||
default:
|
||||
active_shape_ = std::make_unique<SphereShape>(); // Fallback
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user