face

face — Face manipulation

Synopsis




gboolean    g3d_face_get_normal             (G3DFace *face,
                                             G3DObject *object,
                                             gfloat *nx,
                                             gfloat *ny,
                                             gfloat *nz);
void        g3d_face_free                   (G3DFace *face);

Description

Details

g3d_face_get_normal ()

gboolean    g3d_face_get_normal             (G3DFace *face,
                                             G3DObject *object,
                                             gfloat *nx,
                                             gfloat *ny,
                                             gfloat *nz);

calculates the normal of a face.

face : face to calculate normal of
object : object containing vertices of face
nx : x component of resulting normal
ny : y component of resulting normal
nz : z component of resulting normal
Returns : TRUE on success, FALSE else

g3d_face_free ()

void        g3d_face_free                   (G3DFace *face);

Frees all memory allocated for this face.

face : the face to free