SG_Ball
— Agar-SG
polyhedral sphere approximation
#include <agar/core.h>
#include <agar/sg.h>
The SG_Ball
node is a polyhedral
approximation of a sphere.
SG_Ball *
SG_BallNew
(SG_Node
*parent, const char
*name, const M_Sphere
*sph);
void
SG_BallSetSubdiv
(SG_Ball
*sphere, int
subdiv);
The
SG_BallNew
()
function creates a new SG_Ball
object under
parent, with an initial subdivision count of 1.
The
SG_BallSetSubdiv
()
function regenerates the polyhedral approximation for the specified
subdivision count.
For the SG_Ball
object:
- int subdiv
- Subdivision count (1 = Isocahedron)
The SG_Ball
node class first appeared in
Agar 1.6.0.