face

face —

Synopsis




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

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