You decided to implement a new custom object? Fine, here is what to do first:
"csphere.c"
and "csphere.tcl"
to "yourname.c"
and "yourname.tcl"
respectively.Here is the corresponding code snippet from the csphere example:
#include "ayam.h" /* csphere.c - csphere custom object */ static char *csphere_name = "CSphere"; static unsigned int csphere_id; typedef struct csphere_object_s { char closed; char is_simple; double radius; double zmin, zmax; double thetamax; } csphere_object;
Now you are ready to adapt the implementation of some functions as they are described in the next sections of the manual.