Implementar figura TORUS (toroide/donut 3D) - Tecla R
- Nueva clase TorusShape con ecuaciones paramétricas - Distribución uniforme en anillos y puntos por anillo - Rotación triple simultánea (X, Y, Z) - Radios: major=0.25, minor=0.12 (proporción altura) - Compatible con física spring-damper y z-sorting - Escalable con Numpad +/- 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "shapes/cube_shape.h" // for CubeShape
|
||||
#include "shapes/helix_shape.h" // for HelixShape
|
||||
#include "shapes/wave_grid_shape.h" // for WaveGridShape
|
||||
#include "shapes/torus_shape.h" // for TorusShape
|
||||
|
||||
// Función auxiliar para obtener la ruta del directorio del ejecutable
|
||||
std::string getExecutableDirectory() {
|
||||
@@ -1073,6 +1074,9 @@ void Engine::activateShape(ShapeType type) {
|
||||
case ShapeType::HELIX:
|
||||
active_shape_ = std::make_unique<HelixShape>();
|
||||
break;
|
||||
case ShapeType::TORUS:
|
||||
active_shape_ = std::make_unique<TorusShape>();
|
||||
break;
|
||||
case ShapeType::WAVE_GRID:
|
||||
active_shape_ = std::make_unique<WaveGridShape>();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user