Logo ROOT  
Reference Guide
normal.c File Reference
#include "gluos.h"
#include "mesh.h"
#include "tess.h"
#include "normal.h"
#include <math.h>
#include <assert.h>
Include dependency graph for normal.c:

Macros

#define ABS(x)   ((x) < 0 ? -(x) : (x))
 
#define Dot(u, v)   (u[0]*v[0] + u[1]*v[1] + u[2]*v[2])
 
#define FALSE   0
 
#define S_UNIT_X   1.0
 
#define S_UNIT_Y   0.0
 
#define TRUE   1
 

Functions

void __gl_projectPolygon (GLUtesselator *tess)
 
static void CheckOrientation (GLUtesselator *tess)
 
static void ComputeNormal (GLUtesselator *tess, GLdouble norm[3])
 
static int LongAxis (GLdouble v[3])
 

Macro Definition Documentation

◆ ABS

#define ABS (   x)    ((x) < 0 ? -(x) : (x))

Definition at line 65 of file normal.c.

◆ Dot

#define Dot (   u,
  v 
)    (u[0]*v[0] + u[1]*v[1] + u[2]*v[2])

Definition at line 49 of file normal.c.

◆ FALSE

#define FALSE   0

Definition at line 46 of file normal.c.

◆ S_UNIT_X

#define S_UNIT_X   1.0

Definition at line 190 of file normal.c.

◆ S_UNIT_Y

#define S_UNIT_Y   0.0

Definition at line 191 of file normal.c.

◆ TRUE

#define TRUE   1

Definition at line 43 of file normal.c.

Function Documentation

◆ __gl_projectPolygon()

void __gl_projectPolygon ( GLUtesselator tess)

Definition at line 198 of file normal.c.

◆ CheckOrientation()

static void CheckOrientation ( GLUtesselator tess)
static

Definition at line 141 of file normal.c.

◆ ComputeNormal()

static void ComputeNormal ( GLUtesselator tess,
GLdouble  norm[3] 
)
static

Definition at line 76 of file normal.c.

◆ LongAxis()

static int LongAxis ( GLdouble  v[3])
static

Definition at line 67 of file normal.c.