gui/star_field_gui.cpp
void StarFieldGUI::sl_make_tetrahedron() {
    cout << "tetra" << '\n';
    c_stars.clear();
    auto c = xRange * defaultStarArrangementFactor;

    c_stars.push_back(Star{defaultStarMass, {-c, -c, -c}});
    c_stars.push_back(Star{defaultStarMass, {c, -c, c}});
    c_stars.push_back(Star{defaultStarMass, {-c, c, c}});
    c_stars.push_back(Star{defaultStarMass, {c, c, -c}});

    sig_set_number_of_stars(c_stars.size());
    updateFieldState();
  }
// The tetrahedron can be easily derived from a cube.
The tetrahedron can be easily derived from a cube.
The tetrahedron can be easily derived from a cube .
void StarFieldGUI::sl_make_tetrahedron() {
    cout << "tetra" << '\n';
    c_stars.clear();
    auto c = xRange * defaultStarArrangementFactor;
    c_stars.push_back(Star{defaultStarMass, {-c, -c, -c}});
    c_stars.push_back(Star{defaultStarMass, {c, -c, c}});
    c_stars.push_back(Star{defaultStarMass, {-c, c, c}});
    c_stars.push_back(Star{defaultStarMass, {c, c, -c}});
    sig_set_number_of_stars(c_stars.size());
    updateFieldState();
  }
void StarFieldGUI :: sl_make_tetrahedron ( ) { cout << " " << ' \n ' ; c_stars . clear ( ) ; auto c = xRange * defaultStarArrangementFactor ; c_stars . push_back ( Star { defaultStarMass , { - c , - c , - c } } ) ; c_stars . push_back ( Star { defaultStarMass , { c , - c , c } } ) ; c_stars . push_back ( Star { defaultStarMass , { - c , c , c } } ) ; c_stars . push_back ( Star { defaultStarMass , { c , c , - c } } ) ; sig_set_number_of_stars ( c_stars . size ( ) ) ; updateFieldState ( ) ; }
The tetrahedron can be easily derived from a cube.
The tetrahedron can be easily derived from a cube .