atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
d_rings.c File Reference

Functions to prepare the OpenGL rendering of rings polyhedra. More...

#include "global.h"
#include "glview.h"
#include "color_box.h"
+ Include dependency graph for d_rings.c:

Go to the source code of this file.

Functions

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
 

Variables

ColRGBA pcol
 
int nbs
 
int nbl
 
int nba
 

Detailed Description

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.

Function Documentation

◆ check_triangles()

void check_triangles ( int s,
GLfloat ** xyz )
extern

check triangle intersection

Parameters
snumber of summits for the polygon
xyzthe 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
xyzthe OpenGL buffer data to fill
idthe 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
verticesthe ring atomic positions buffer to fill, if any
setype of ring
gethe coord id for this size of ring
tathe size of the ring
idthe ring id number
gorender 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
verticesthe OpenGL buffer data to fill
xyzthe summits coordinates
sthe 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
verticesthe OpenGL buffer data to fill
xyzthe summits coordinates

Definition at line 227 of file d_poly.c.

Variable Documentation

◆ nba

int nba

Definition at line 44 of file d_rings.c.

◆ nbl

int nbl

Definition at line 44 of file d_rings.c.

◆ nbs

int nbs
extern

Definition at line 176 of file d_atoms.c.

◆ pcol

ColRGBA pcol
extern

Definition at line 60 of file d_poly.c.