gCAD3D 2.35
vr2_r.c File Reference

read VRML-2 file More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_msh.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_os.h"
#include "../ut/ut_obj.h"
#include "../ut/ut_txfil.h"
#include "../ut/ut_memTab.h"
#include "../xa/xa_mem.h"

Macros

#define siz_useTab   12
 
#define siz_levPrt   32
 
#define inc_pTab   10000
 
#define inc_fTab   10000
 
#define wMax   24
 

Functions

 typedef_MemTab (int)
 
 typedef_MemTab (Point)
 
 typedef_MemTab (Fac3)
 
 typedef_MemTab (EdgeLine)
 
static MemTab (Point)
 
long VR2_loadwrl (char *fnam)
 
int UTX_pos_skipBrackX (char **ps, char *pe, char ce)
 
char * VR2_r_ck_primaryBlock (int *iStat, char *ps, char *pe)
 
char * VR2_r_skip_word (int inr, char *p1)
 
char * VR2_r_dec_points (char *ps)
 
char * VR2_r_dec_index (char *ps)
 
char * VR2_r_dec_cold (char *ps)
 
char * VR2_r_dec_floats (double *da, char *ps, int vNr)
 
char * VR2_r_dec_DEF (char *ps)
 
char * VR2_r_dec_USE (char *ps, char *pe)
 
char * VR2_r_dec_PROTO (char *ps, char *pe)
 
char * VR2_r_dec_EPROT (char *ps, char *pe)
 
char * VR2_r_skip_expr (char *ps, char ce)
 
char * VR2_r_skip_proto1 (char *ps, char *pe)
 
int VR2_r_wri_att_col (long dbi, char cTyp)
 
int VR2_r_wri_att_hide (long dbi, char cTyp)
 
int VR2_r__ (char *fnam)
 
int VR2_r_dec_blk (char *blkTyp, char **ps, char *pe, int iTra)
 
int VR2_dump_wa (int wNr, char *wa[])
 
int VR2_dump_use (int iUse)
 
int VR2_r_dump_prTab ()
 
int VR2_r_ck_PROTO (char *ps)
 
int VR2_r_add_USE (char *ps)
 
int VR2_r_wri_shape (int iTra)
 
int VR2_r_wri_Plg (int is, int in)
 
int VR2_r_upd_tra (int iTra)
 
int VR2_r_sav_indFac ()
 
int VR2_wrsur_ck ()
 

Variables

static char mdlNam [80]
 
static char * memSpc
 
static int level
 
static int levPrt [siz_levPrt]
 
static char ** defTab
 
static int defTabSiz
 
static int defNr
 
static int useLevTab [siz_useTab]
 
static int iUse
 
static char * useTab [siz_useTab]
 
static ColRGB newCol
 
static ColRGB actCol
 
 protoRec
 
static protoRecprTab
 
static int siz_prTab
 
static int prNr
 
static int iPro
 
static int prAct
 
static int mdlAct
 
static long iLin
 
static long iCrv
 
static long iSur
 
static long iSol
 
static long iMdl
 
static int newTyp
 
static double newGeo [3]
 
static double newTra [3]
 
static double newpTra [3]
 
static double newScl [3]
 
static double newRot [4]
 
static double newpRot [4]
 

Detailed Description

read VRML-2 file

=====================================================
List_functions_start:
VR2_r__ mainentry.
List_functions_end:
=====================================================

Macro Definition Documentation

#define siz_useTab   12
#define siz_levPrt   32
#define inc_pTab   10000
#define inc_fTab   10000
#define wMax   24

Function Documentation

typedef_MemTab ( int  )
typedef_MemTab ( Point  )
typedef_MemTab ( Fac3  )
typedef_MemTab ( EdgeLine  )
static MemTab ( Point  )
static
long VR2_loadwrl ( char *  fnam)
int UTX_pos_skipBrackX ( char **  ps,
char *  pe,
char  ce 
)
char * VR2_r_ck_primaryBlock ( int *  iStat,
char *  ps,
char *  pe 
)
char * VR2_r_skip_word ( int  inr,
char *  p1 
)
char * VR2_r_dec_points ( char *  ps)
char * VR2_r_dec_index ( char *  ps)
char * VR2_r_dec_cold ( char *  ps)
char * VR2_r_dec_floats ( double *  da,
char *  ps,
int  vNr 
)
char * VR2_r_dec_DEF ( char *  ps)
char * VR2_r_dec_USE ( char *  ps,
char *  pe 
)
char * VR2_r_dec_PROTO ( char *  ps,
char *  pe 
)
char * VR2_r_dec_EPROT ( char *  ps,
char *  pe 
)
char * VR2_r_skip_expr ( char *  ps,
char  ce 
)
char * VR2_r_skip_proto1 ( char *  ps,
char *  pe 
)
int VR2_r_wri_att_col ( long  dbi,
char  cTyp 
)
int VR2_r_wri_att_hide ( long  dbi,
char  cTyp 
)
int VR2_r__ ( char *  fnam)
int VR2_r_dec_blk ( char *  blkTyp,
char **  ps,
char *  pe,
int  iTra 
)
int VR2_dump_wa ( int  wNr,
char *  wa[] 
)
int VR2_dump_use ( int  iUse)
int VR2_r_dump_prTab ( )
int VR2_r_ck_PROTO ( char *  ps)
int VR2_r_add_USE ( char *  ps)
int VR2_r_wri_shape ( int  iTra)
int VR2_r_wri_Plg ( int  is,
int  in 
)
int VR2_r_upd_tra ( int  iTra)
int VR2_r_sav_indFac ( )
int VR2_wrsur_ck ( )

Variable Documentation

char mdlNam[80]
static
char* memSpc
static
int level
static
int levPrt[siz_levPrt]
static
char** defTab
static
int defTabSiz
static
int defNr
static
int useLevTab[siz_useTab]
static
int iUse
static
char* useTab[siz_useTab]
static
static ColRGB newCol
static
static ColRGB actCol
static
protoRec
protoRec* prTab
static
int siz_prTab
static
int prNr
static
int iPro
static
int prAct
static
int mdlAct
static
long iLin
static
long iCrv
static
long iSur
static
long iSol
static
long iMdl
static
int newTyp
static
double newGeo[3]
static
double newTra[3]
static
double newpTra[3]
static
double newScl[3]
static
double newRot[4]
static
double newpRot[4]
static