next up previous contents index
Next: Obstacles Up: Environmentspolyhedrons and obstacles Previous: Environments

Polyhedrons

The function int p3d_poly_get_nb(void)   returns the number of polyhedrons of a scene.

The function p3d_poly *p3d_poly_get_poly(int i)   returns the i-th polyhedron of the scene. The function p3d_poly *p3d_poly_get_poly_by_name(char *name)   returns the polyhedron of the scene of name name. The function p3d_poly *p3d_poly_get_first (void)   initializes a pointer on the begining of the polyhedrons list and returns the first polyhedron of this list. The function p3d_poly *p3d_poly_get_next(void)   returns the next polyhedron of this list.

The function void p3d_get_info_pos_poly(p3d_poly *p)   prints the position matrix of the polyhedron p.

The function void p3d_BB_get_BB_poly1(p3d_poly *p, double *x1, double *x2, double *y1, double *y2, double *z1, double *z2)   returns the bounding box of the polyhedron p.



Nicola Simeon
Fri Oct 27 09:07:38 MET DST 2000