![]() |
![]() |
![]() |
Libg3d Reference Manual | ![]() |
---|---|---|---|---|
gboolean g3d_face_get_normal (G3DFace *face, G3DObject *object, gfloat *nx, gfloat *ny, gfloat *nz); void g3d_face_free (G3DFace *face);
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 |
void g3d_face_free (G3DFace *face);
Frees all memory allocated for this face.
face : |
the face to free |