![]() |
![]() |
![]() |
Libg3d Reference Manual | ![]() |
---|---|---|---|---|
void g3d_object_free (G3DObject *object); gdouble g3d_object_radius (G3DObject *object); gboolean g3d_object_scale (G3DObject *object, gfloat scale); gboolean g3d_object_transform (G3DObject *object, gfloat *matrix); G3DObject* g3d_object_duplicate (G3DObject *object); gboolean g3d_object_optimize (G3DObject *object); gboolean g3d_object_smooth (G3DObject *object); gboolean g3d_object_merge (G3DObject *o1, G3DObject *o2);
void g3d_object_free (G3DObject *object);
Frees all memory allocated for that object.
object : |
the object to free |
gdouble g3d_object_radius (G3DObject *object);
Calculates the radius of the object. This is the maximum from the center to a vertex.
object : |
the object to measure |
Returns : | the radius of the given object |
gboolean g3d_object_scale (G3DObject *object, gfloat scale);
Resizes the object by the factor scale
.
object : |
the object to scale |
scale : |
scale factor |
Returns : | TRUE on success, FALSE else |
gboolean g3d_object_transform (G3DObject *object, gfloat *matrix);
Multiplies all vertices of the object with the transformation matrix.
object : |
the object to transform |
matrix : |
the transformation matrix |
Returns : | TRUE on success, FALSE else |
G3DObject* g3d_object_duplicate (G3DObject *object);
Duplicates an object with all vertices, faces and materials.
object : |
the object to duplicate |
Returns : | the new clone object |
gboolean g3d_object_optimize (G3DObject *object);
Puts all vertex and face information into special arrays for faster rendering.
object : |
the object to optimize |
Returns : | TRUE on success, FALSE else |
gboolean g3d_object_smooth (G3DObject *object);
FIXME: unimplemented.
object : |
the object to smooth |
Returns : | TRUE on success, FALSE else |