Functions to prepare the OpenGL rendering of rings polyhedra.
More...
#include "global.h"
#include "glview.h"
#include "color_box.h"
Go to the source code of this file.
|
void | setup_tetrahedron (float *vertices, GLfloat **xyz) |
| fill the OpenGL data buffer for a tetrahedra to render
|
|
void | setup_polyhedron (float *vertices, GLfloat **xyz, int s) |
| fill the OpenGL data buffer for a polyhedron to render
|
|
void | get_centroid (GLfloat **xyz, int id) |
| find the barycenter of a polyhedron
|
|
void | check_triangles (int s, GLfloat **xyz) |
| check triangle intersection
|
|
int | prepare_rings_gl (float *vertices, int se, int ge, int ta, int id, gboolean go) |
| prepare a ring polyhedra OpenGL rendering
|
|
void | create_ring_lists () |
| prepare ring(s) polyhedra OpenGL rendering
|
|
Functions to prepare the OpenGL rendering of rings polyhedra.
- Author
- Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r
Definition in file d_rings.c.
◆ check_triangles()
void check_triangles |
( |
int | s, |
|
|
GLfloat ** | xyz ) |
|
extern |
check triangle intersection
- Parameters
-
s | number of summits for the polygon |
xyz | the coordinates of the summits |
Definition at line 360 of file d_poly.c.
◆ create_ring_lists()
void create_ring_lists |
( |
| ) |
|
prepare ring(s) polyhedra OpenGL rendering
Definition at line 169 of file d_rings.c.
◆ get_centroid()
void get_centroid |
( |
GLfloat ** | xyz, |
|
|
int | id ) |
|
extern |
find the barycenter of a polyhedron
- Parameters
-
xyz | the OpenGL buffer data to fill |
id | the number of summits |
Definition at line 267 of file d_poly.c.
◆ prepare_rings_gl()
int prepare_rings_gl |
( |
float * | vertices, |
|
|
int | se, |
|
|
int | ge, |
|
|
int | ta, |
|
|
int | id, |
|
|
gboolean | go ) |
prepare a ring polyhedra OpenGL rendering
- Parameters
-
vertices | the ring atomic positions buffer to fill, if any |
se | type of ring |
ge | the coord id for this size of ring |
ta | the size of the ring |
id | the ring id number |
go | render the ring or not (1/0) |
Definition at line 62 of file d_rings.c.
◆ setup_polyhedron()
void setup_polyhedron |
( |
float * | vertices, |
|
|
GLfloat ** | xyz, |
|
|
int | s ) |
|
extern |
fill the OpenGL data buffer for a polyhedron to render
- Parameters
-
vertices | the OpenGL buffer data to fill |
xyz | the summits coordinates |
s | the number of summits |
Definition at line 152 of file d_poly.c.
◆ setup_tetrahedron()
void setup_tetrahedron |
( |
float * | vertices, |
|
|
GLfloat ** | xyz ) |
|
extern |
fill the OpenGL data buffer for a tetrahedra to render
- Parameters
-
vertices | the OpenGL buffer data to fill |
xyz | the summits coordinates |
Definition at line 227 of file d_poly.c.
◆ nba
◆ nbl
◆ nbs
◆ pcol