gCAD3D 2.35
wrl_ut.c File Reference

read VRML-1 file More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_cast.h"
#include "../ut/func_types.h"
#include "../xa/xa_mem.h"

Data Structures

struct  maRec
 

Macros

#define GL_TRIANGLE_FAN   0x0006
 
#define MAXLEV   64
 
#define outSpc_FRE   200000
 
#define iTab_INC   50000
 
#define wMax   24
 

Functions

int gCad_main (void *fdat)
 
char * wrl1_r_skip_words (int inr, char *p1)
 
int wrl1_dump_wa (int wNr, char *wa[])
 
int wrl_reloc__ (long addSiz)
 
int wrl1_r_out_end ()
 
int wrl1_r_skipBlock (char **ps, char *pe)
 
int wrl1_r_skipLev (char **ps, char *pe)
 
int wrl1_r_dec_iTab ()
 
int wrl1_r_dec_vTab ()
 
int wrl1_r_dec_Col1 (char *wa[])
 
int wrl1_r_dec_Col2 (char *p1)
 
int wrl1_r_dec_Col_ (double d1, double d2, double d3)
 
int wrl1_r_dec_DEF (char *wa[])
 
int wrl1_r_dec_USE (char *wa[], char *pe)
 
int wrl1_r_dec_trl (char *wa[])
 
int wrl1_r_dec_scf (char *wa[])
 
int wrl1_r_dec_MatTra ()
 
int wrl1_r_dec_matrix (char *wa[])
 
int wrl1_r_dec_Trf ()
 
int wrl1_r_dec_Scale ()
 
int wrl1_r_trm_Trl ()
 
int wrl1_r_trm_upd ()
 
int wrl1_r_ck_col ()
 
int wrl1_r_dec_col (ObjGX **aox)
 
int wrl1_r_dec_sph (double radius)
 
int wrl1_r_dec_cyl (double radius, double height)
 
int wrl1_r_dec_ifs ()
 
int wrl1_r_dec1 (char **ps, char *pe)
 
int wrl_readTess__ (char *fnam)
 

Variables

PointGLT_pta
 
long GLT_pta_SIZ
 
static char * ppt
 
static char * pci
 
static PointvTab =NULL
 
static int * iTab =NULL
 
static int vTabSiz
 
static int iTabSiz
 
static int vTabNr
 
static int iTabNr
 
static Mat_4x3 trMat
 
static Vector trVc
 
static double trSc [3]
 
static int trMatStat
 
static int trVcStat
 
static int trScStat
 
static char ** defTab
 
static int defTabSiz
 
static int defTabNr
 
static int level
 
static int useLevTab [12]
 
static int useLevNr
 
static int lodLevel
 
static int iTest
 
static ColRGB newCol
 
static ColRGB actCol
 
static int err0Nr
 
static MemspcoutSpc
 
static long outSpc_INC
 
static maRecmaTab
 

Detailed Description

Macro Definition Documentation

#define GL_TRIANGLE_FAN   0x0006
#define MAXLEV   64
#define outSpc_FRE   200000
#define iTab_INC   50000
#define wMax   24

Function Documentation

int gCad_main ( void *  fdat)
char* wrl1_r_skip_words ( int  inr,
char *  p1 
)
int wrl1_dump_wa ( int  wNr,
char *  wa[] 
)
int wrl_reloc__ ( long  addSiz)
int wrl1_r_out_end ( )
int wrl1_r_skipBlock ( char **  ps,
char *  pe 
)
int wrl1_r_skipLev ( char **  ps,
char *  pe 
)
int wrl1_r_dec_iTab ( )
int wrl1_r_dec_vTab ( )
int wrl1_r_dec_Col1 ( char *  wa[])
int wrl1_r_dec_Col2 ( char *  p1)
int wrl1_r_dec_Col_ ( double  d1,
double  d2,
double  d3 
)
int wrl1_r_dec_DEF ( char *  wa[])
int wrl1_r_dec_USE ( char *  wa[],
char *  pe 
)
int wrl1_r_dec_trl ( char *  wa[])
int wrl1_r_dec_scf ( char *  wa[])
int wrl1_r_dec_MatTra ( )
int wrl1_r_dec_matrix ( char *  wa[])
int wrl1_r_dec_Trf ( )
int wrl1_r_dec_Scale ( )
int wrl1_r_trm_Trl ( )
int wrl1_r_trm_upd ( )
int wrl1_r_ck_col ( )
int wrl1_r_dec_col ( ObjGX **  aox)
int wrl1_r_dec_sph ( double  radius)
int wrl1_r_dec_cyl ( double  radius,
double  height 
)
int wrl1_r_dec_ifs ( )
int wrl1_r_dec1 ( char **  ps,
char *  pe 
)
int wrl_readTess__ ( char *  fnam)

Variable Documentation

Point* GLT_pta
long GLT_pta_SIZ
char* ppt
static
char* pci
static
Point* vTab =NULL
static
int* iTab =NULL
static
int vTabSiz
static
int iTabSiz
static
int vTabNr
static
int iTabNr
static
Mat_4x3 trMat
static
Vector trVc
static
double trSc[3]
static
int trMatStat
static
int trVcStat
static
int trScStat
static
char** defTab
static
int defTabSiz
static
int defTabNr
static
int level
static
int useLevTab[12]
static
int useLevNr
static
int lodLevel
static
int iTest
static
ColRGB newCol
static
ColRGB actCol
static
int err0Nr
static
Memspc* outSpc
static
long outSpc_INC
static
maRec* maTab
static