GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SG_BALL(3) FreeBSD Library Functions Manual SG_BALL(3)

SG_BallAgar-SG polyhedral sphere approximation

#include <agar/core.h>
#include <agar/sg.h>

The SG_Ball node is a polyhedral approximation of a sphere.

AG_Object(3) -> SG_Node(3) -> SG_Object(3) -> SG_Ball.

SG_Ball *
(SG_Node *parent, const char *name, const M_Sphere *sph);


void
(SG_Ball *sphere, int subdiv);

The () function creates a new SG_Ball object under parent, with an initial subdivision count of 1.

The () function regenerates the polyhedral approximation for the specified subdivision count.

For the SG_Ball object:

int subdiv
Subdivision count (1 = Isocahedron)

SG(3), SG_Intro(3), SG_Node(3), SG_Object(3)

The SG_Ball node class first appeared in Agar 1.6.0.

December 21, 2022 Agar 1.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.