Implementar figura CYLINDER (cilindro 3D) - Tecla Y
- Nueva clase CylinderShape con ecuaciones paramétricas - Distribución uniforme en anillos y circunferencia - Rotación simple en eje Y - Dimensiones: radius=0.25, height=0.5 (proporción altura) - Compatible con física spring-damper y z-sorting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "shapes/helix_shape.h" // for HelixShape
|
||||
#include "shapes/wave_grid_shape.h" // for WaveGridShape
|
||||
#include "shapes/torus_shape.h" // for TorusShape
|
||||
#include "shapes/cylinder_shape.h" // for CylinderShape
|
||||
|
||||
// Función auxiliar para obtener la ruta del directorio del ejecutable
|
||||
std::string getExecutableDirectory() {
|
||||
@@ -1080,6 +1081,9 @@ void Engine::activateShape(ShapeType type) {
|
||||
case ShapeType::WAVE_GRID:
|
||||
active_shape_ = std::make_unique<WaveGridShape>();
|
||||
break;
|
||||
case ShapeType::CYLINDER:
|
||||
active_shape_ = std::make_unique<CylinderShape>();
|
||||
break;
|
||||
// Futuras figuras se añadirán aquí
|
||||
default:
|
||||
active_shape_ = std::make_unique<SphereShape>(); // Fallback
|
||||
|
||||
Reference in New Issue
Block a user