simpmesh.h File Reference

Definition of basic mesh data structures and inline vector operations. More...

#include <stdio.h>
#include <math.h>
#include "mcx_utils.h"
#include "posix_randr.c"
Include dependency graph for simpmesh.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MMC_mesh
 Basic FEM mesh data structrure. More...
struct  MMC_raytracer
 Ray-tracer data structrure for pre-computed data. More...

Defines

#define MMC_UNDEFINED   (3.40282347e+38F)
#define R_RAND_MAX   (1.f/RAND_MAX)
#define TWO_PI   (M_PI*2.0)
#define EPS   1e-9f
#define LOG_MT_MAX   22.1807097779182f
#define R_MIN_MUS   1e9f
#define R_C0   3.335640951981520e-12f

Typedefs

typedef struct MMC_mesh tetmesh
typedef struct MMC_raytracer raytracer

Functions

void mesh_init (tetmesh *mesh)
void mesh_init_from_cfg (tetmesh *mesh, Config *cfg)
void mesh_loadnode (tetmesh *mesh, Config *cfg)
void mesh_loadelem (tetmesh *mesh, Config *cfg)
void mesh_loadfaceneighbor (tetmesh *mesh, Config *cfg)
void mesh_loadmedia (tetmesh *mesh, Config *cfg)
void mesh_loadelemvol (tetmesh *mesh, Config *cfg)
void mesh_clear (tetmesh *mesh)
float mesh_normalize (tetmesh *mesh, Config *cfg, float Eabsorb, float Etotal)
void mesh_build (tetmesh *mesh)
void mesh_error (char *msg)
void mesh_filenames (char *format, char *foutput, Config *cfg)
void mesh_saveweight (tetmesh *mesh, Config *cfg)
void tracer_init (raytracer *tracer, tetmesh *mesh)
void tracer_build (raytracer *tracer)
void tracer_clear (raytracer *tracer)
float mc_next_scatter (float g, float3 *dir, RandType *ran, RandType *ran0, Config *cfg)

Detailed Description

Definition of basic mesh data structures and inline vector operations.


Function Documentation

float mesh_normalize ( tetmesh mesh,
Config cfg,
float  Eabsorb,
float  Etotal 
)

mesh->med[mesh->type[i]-1].n;

 All Classes Files Functions Variables
Generated on Wed Dec 15 18:02:15 2010 by  doxygen 1.6.3