GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gvl_calc2.c File Reference

OGSF library - loading and manipulating volumes, MarchingCubes 33 Algorithm (lower level functions) More...

#include <float.h>
#include <grass/gis.h>
#include <grass/gstypes.h>
#include "mc33_table.h"
Include dependency graph for gvl_calc2.c:

Go to the source code of this file.

Functions

int mc33_test_face (char face, float *v)
 ADD. More...
 
int mc33_test_interior (char s, float *v)
 ADD. More...
 
int mc33_process_cube (int c_ndx, float *v)
 ADD. More...
 

Variables

unsigned char m_case
 
unsigned char m_config
 
unsigned char m_subconfig
 

Detailed Description

OGSF library - loading and manipulating volumes, MarchingCubes 33 Algorithm (lower level functions)

GRASS OpenGL gsurf OGSF Library

Based on implementation of MarchingCubes 33 Algorithm by Thomas Lewiner, thoma.nosp@m.s.le.nosp@m.winer.nosp@m.@pol.nosp@m.ytech.nosp@m.niqu.nosp@m.e.org, Math Dept, PUC-Rio

(C) 1999-2008 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Tomas Paudits, 2004
Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)

Definition in file gvl_calc2.c.

Function Documentation

int mc33_test_face ( char  face,
float *  v 
)

ADD.

Parameters
face
v
Returns

Definition at line 39 of file gvl_calc2.c.

References C, and D.

Referenced by mc33_process_cube().

int mc33_test_interior ( char  s,
float *  v 
)

ADD.

Parameters
s
v
Returns

Definition at line 108 of file gvl_calc2.c.

References b, cell_table, m_case, m_config, m_subconfig, OFFSET_T12_2_S1, OFFSET_T13_5_1, OFFSET_T6_1_1, OFFSET_T7_4_1, and CELL_ENTRY::polys.

Referenced by mc33_process_cube().

Variable Documentation

unsigned char m_case

Definition at line 29 of file gvl_calc2.c.

Referenced by mc33_process_cube(), and mc33_test_interior().

unsigned char m_config

Definition at line 29 of file gvl_calc2.c.

Referenced by mc33_process_cube(), and mc33_test_interior().

unsigned char m_subconfig

Definition at line 29 of file gvl_calc2.c.

Referenced by mc33_process_cube(), and mc33_test_interior().