Macros | Functions | Variables
ivcon.c File Reference
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for ivcon.c:

Go to the source code of this file.

Macros

#define COLOR_MAX   1000
 
#define COR3_MAX   200000
 
#define DEG_TO_RAD   ( PI / 180.0 )
 
#define ERROR   1
 
#define FACE_MAX   200000
 
#define FALSE   0
 
#define G1_SECTION_MODEL_QUADS   18
 
#define G1_SECTION_MODEL_TEXTURE_NAMES   19
 
#define G1_SECTION_MODEL_VERT_ANIMATION   20
 
#define GMOD_MAX_SECTIONS   32
 
#define GMOD_UNUSED_VERTEX   65535
 
#define LEVEL_MAX   10
 
#define LINE_MAX_LEN   256
 
#define LINES_MAX   100000
 
#define MATERIAL_MAX   100
 
#define ORDER_MAX   10
 
#define PI   3.141592653589793238462643
 
#define RAD_TO_DEG   ( 180.0 / PI )
 
#define SUCCESS   0
 
#define TEXTURE_MAX   100
 
#define TRUE   1
 

Functions

int ase_read (FILE *filein)
 
int ase_write (FILE *fileout)
 
int byu_read (FILE *filein)
 
int byu_write (FILE *fileout)
 
int char_index_last (char *string, char c)
 
int char_pad (int *char_index, int *null_index, char *string, int STRING_MAX)
 
char char_read (FILE *filein)
 
int char_write (FILE *fileout, char c)
 
int command_line (char **argv)
 
void cor3_normal_set (void)
 
void cor3_range (void)
 
void data_check (void)
 
void data_init (void)
 
int data_read (void)
 
void data_report (void)
 
int data_write (void)
 
int dxf_read (FILE *filein)
 
int dxf_write (FILE *fileout)
 
void edge_null_delete (void)
 
void face_area_set (void)
 
void face_normal_ave (void)
 
void face_null_delete (void)
 
int face_print (int iface)
 
void face_reverse_order (void)
 
int face_subset (void)
 
void face_to_line (void)
 
void face_to_vertex_material (void)
 
char * file_ext (char *file_name)
 
float float_read (FILE *filein)
 
float float_reverse_bytes (float x)
 
int float_write (FILE *fileout, float float_val)
 
int gmod_arch_check (void)
 
int gmod_read (FILE *filein)
 
float gmod_read_float (FILE *filein)
 
unsigned short gmod_read_w16 (FILE *filein)
 
unsigned long gmod_read_w32 (FILE *filein)
 
int gmod_write (FILE *fileout)
 
void gmod_write_float (float Val, FILE *fileout)
 
void gmod_write_w16 (unsigned short Val, FILE *fileout)
 
void gmod_write_w32 (unsigned long Val, FILE *fileout)
 
void hello (void)
 
void help (void)
 
int hrc_read (FILE *filein)
 
int hrc_write (FILE *fileout)
 
void init_program_data (void)
 
int interact (void)
 
int iv_read (FILE *filein)
 
int iv_write (FILE *fileout)
 
int ivec_max (int n, int *a)
 
int leqi (char *string1, char *string2)
 
long int long_int_read (FILE *filein)
 
int long_int_write (FILE *fileout, long int int_val)
 
int main (int argc, char **argv)
 
void news (void)
 
void node_to_vertex_material (void)
 
int obj_read (FILE *filein)
 
int obj_write (FILE *fileout)
 
int pov_write (FILE *fileout)
 
int rcol_find (float a[][COR3_MAX], int m, int n, float r[])
 
float rgb_to_hue (float r, float g, float b)
 
short int short_int_read (FILE *filein)
 
int short_int_write (FILE *fileout, short int int_val)
 
int smf_read (FILE *filein)
 
int smf_write (FILE *fileout)
 
int stla_read (FILE *filein)
 
int stla_write (FILE *fileout)
 
int stlb_read (FILE *filein)
 
int stlb_write (FILE *fileout)
 
void tds_pre_process (void)
 
int tds_read (FILE *filein)
 
unsigned long int tds_read_ambient_section (FILE *filein)
 
unsigned long int tds_read_background_section (FILE *filein)
 
unsigned long int tds_read_boolean (unsigned char *boolean, FILE *filein)
 
unsigned long int tds_read_camera_section (FILE *filein)
 
unsigned long int tds_read_edit_section (FILE *filein, int *views_read)
 
unsigned long int tds_read_keyframe_objdes_section (FILE *filein)
 
unsigned long int tds_read_keyframe_section (FILE *filein, int *views_read)
 
unsigned long int tds_read_light_section (FILE *filein)
 
int tds_read_long_name (FILE *filein)
 
unsigned long int tds_read_matdef_section (FILE *filein)
 
unsigned long int tds_read_material_section (FILE *filein)
 
int tds_read_name (FILE *filein)
 
unsigned long int tds_read_obj_section (FILE *filein)
 
unsigned long int tds_read_object_section (FILE *filein)
 
unsigned long int tds_read_spot_section (FILE *filein)
 
unsigned long int tds_read_tex_verts_section (FILE *filein)
 
unsigned long int tds_read_texmap_section (FILE *filein)
 
unsigned long int tds_read_u_long_int (FILE *filein)
 
unsigned short int tds_read_u_short_int (FILE *filein)
 
unsigned long int tds_read_unknown_section (FILE *filein)
 
unsigned long int tds_read_view_section (FILE *filein, int *views_read)
 
unsigned long int tds_read_vp_section (FILE *filein, int *views_read)
 
int tds_write (FILE *fileout)
 
int tds_write_string (FILE *fileout, char *string)
 
int tds_write_u_short_int (FILE *fileout, unsigned short int int_val)
 
int tec_write (FILE *fileout)
 
void tmat_init (float a[4][4])
 
void tmat_mxm (float a[4][4], float b[4][4], float c[4][4])
 
void tmat_mxp (float a[4][4], float x[4], float y[4])
 
void tmat_mxp2 (float a[4][4], float x[][3], float y[][3], int n)
 
void tmat_mxv (float a[4][4], float x[4], float y[4])
 
void tmat_rot_axis (float a[4][4], float b[4][4], float angle, char axis)
 
void tmat_rot_vector (float a[4][4], float b[4][4], float angle, float v1, float v2, float v3)
 
void tmat_scale (float a[4][4], float b[4][4], float sx, float sy, float sz)
 
void tmat_shear (float a[4][4], float b[4][4], char *axis, float s)
 
void tmat_trans (float a[4][4], float b[4][4], float x, float y, float z)
 
int tria_read (FILE *filein)
 
int tria_write (FILE *fileout)
 
int trib_read (FILE *filein)
 
int trib_write (FILE *fileout)
 
int txt_write (FILE *fileout)
 
int ucd_write (FILE *fileout)
 
void vertex_normal_set (void)
 
void vertex_to_face_material (void)
 
void vertex_to_node_material (void)
 
int vla_read (FILE *filein)
 
int vla_write (FILE *fileout)
 
int wrl_write (FILE *filout)
 
int xgl_write (FILE *fileout)
 

Variables

char anim_name [LINE_MAX_LEN]
 
float background_rgb [3]
 
int bad_num
 
int byte_swap
 
int bytes_num
 
int color_num
 
int comment_num
 
float cor3 [3][COR3_MAX]
 
int cor3_material [COR3_MAX]
 
float cor3_normal [3][COR3_MAX]
 
int cor3_num
 
float cor3_tex_uv [3][COR3_MAX]
 
int debug
 
int dup_num
 
int face [ORDER_MAX][FACE_MAX]
 
float face_area [FACE_MAX]
 
int face_flags [FACE_MAX]
 
int face_material [FACE_MAX]
 
float face_normal [3][FACE_MAX]
 
int face_num
 
int face_object [FACE_MAX]
 
int face_order [FACE_MAX]
 
int face_smooth [FACE_MAX]
 
float face_tex_uv [2][FACE_MAX]
 
char filein_name [1024]
 
char fileout_name [1024]
 
int group_num
 
int i
 
char input [LINE_MAX_LEN]
 
int k
 
char level_name [LEVEL_MAX][LINE_MAX_LEN]
 
int line_dex [LINES_MAX]
 
int line_material [LINES_MAX]
 
int line_num
 
int line_prune
 
int list [COR3_MAX]
 
char mat_name [81]
 
char material_binding [80]
 
char material_name [MATERIAL_MAX][LINE_MAX_LEN]
 
int material_num
 
float material_rgba [4][MATERIAL_MAX]
 
int max_order2
 
char normal_binding [80]
 
float normal_temp [3][ORDER_MAX *FACE_MAX]
 
char object_name [81]
 
int object_num
 
float origin [3]
 
float pivot [3]
 
float rgbcolor [3][COLOR_MAX]
 
char temp_name [81]
 
int text_num
 
char texture_binding [80]
 
char texture_name [TEXTURE_MAX][LINE_MAX_LEN]
 
int texture_num
 
float texture_temp [2][ORDER_MAX *FACE_MAX]
 
float transform_matrix [4][4]
 
int vertex_material [ORDER_MAX][FACE_MAX]
 
float vertex_normal [3][ORDER_MAX][FACE_MAX]
 
float vertex_rgb [3][ORDER_MAX][FACE_MAX]
 
float vertex_tex_uv [2][ORDER_MAX][FACE_MAX]
 

Macro Definition Documentation

◆ COLOR_MAX

#define COLOR_MAX   1000

Definition at line 125 of file ivcon.c.

◆ COR3_MAX

#define COR3_MAX   200000

Definition at line 126 of file ivcon.c.

◆ DEG_TO_RAD

#define DEG_TO_RAD   ( PI / 180.0 )

Definition at line 48 of file ivcon.c.

◆ ERROR

#define ERROR   1

Definition at line 39 of file ivcon.c.

◆ FACE_MAX

#define FACE_MAX   200000

Definition at line 127 of file ivcon.c.

◆ FALSE

#define FALSE   0

Definition at line 36 of file ivcon.c.

◆ G1_SECTION_MODEL_QUADS

#define G1_SECTION_MODEL_QUADS   18

Definition at line 40 of file ivcon.c.

◆ G1_SECTION_MODEL_TEXTURE_NAMES

#define G1_SECTION_MODEL_TEXTURE_NAMES   19

Definition at line 41 of file ivcon.c.

◆ G1_SECTION_MODEL_VERT_ANIMATION

#define G1_SECTION_MODEL_VERT_ANIMATION   20

Definition at line 42 of file ivcon.c.

◆ GMOD_MAX_SECTIONS

#define GMOD_MAX_SECTIONS   32

Definition at line 43 of file ivcon.c.

◆ GMOD_UNUSED_VERTEX

#define GMOD_UNUSED_VERTEX   65535

Definition at line 44 of file ivcon.c.

◆ LEVEL_MAX

#define LEVEL_MAX   10

Definition at line 129 of file ivcon.c.

◆ LINE_MAX_LEN

#define LINE_MAX_LEN   256

Definition at line 128 of file ivcon.c.

◆ LINES_MAX

#define LINES_MAX   100000

Definition at line 130 of file ivcon.c.

◆ MATERIAL_MAX

#define MATERIAL_MAX   100

Definition at line 131 of file ivcon.c.

◆ ORDER_MAX

#define ORDER_MAX   10

Definition at line 132 of file ivcon.c.

◆ PI

#define PI   3.141592653589793238462643

Definition at line 45 of file ivcon.c.

◆ RAD_TO_DEG

#define RAD_TO_DEG   ( 180.0 / PI )

Definition at line 49 of file ivcon.c.

◆ SUCCESS

#define SUCCESS   0

Definition at line 46 of file ivcon.c.

◆ TEXTURE_MAX

#define TEXTURE_MAX   100

Definition at line 133 of file ivcon.c.

◆ TRUE

#define TRUE   1

Definition at line 37 of file ivcon.c.

Function Documentation

◆ ase_read()

int ase_read ( FILE *  filein)

Definition at line 387 of file ivcon.c.

◆ ase_write()

int ase_write ( FILE *  fileout)

Definition at line 1085 of file ivcon.c.

◆ byu_read()

int byu_read ( FILE *  filein)

Definition at line 1275 of file ivcon.c.

◆ byu_write()

int byu_write ( FILE *  fileout)

Definition at line 1447 of file ivcon.c.

◆ char_index_last()

int char_index_last ( char *  string,
char  c 
)

Definition at line 1571 of file ivcon.c.

◆ char_pad()

int char_pad ( int *  char_index,
int *  null_index,
char *  string,
int  STRING_MAX 
)

Definition at line 1604 of file ivcon.c.

◆ char_read()

char char_read ( FILE *  filein)

Definition at line 1664 of file ivcon.c.

◆ char_write()

int char_write ( FILE *  fileout,
char  c 
)

Definition at line 1690 of file ivcon.c.

◆ command_line()

int command_line ( char **  argv)

Definition at line 1714 of file ivcon.c.

◆ cor3_normal_set()

void cor3_normal_set ( void  )

Definition at line 1858 of file ivcon.c.

◆ cor3_range()

void cor3_range ( void  )

Definition at line 1932 of file ivcon.c.

◆ data_check()

void data_check ( void  )

Definition at line 2016 of file ivcon.c.

◆ data_init()

void data_init ( void  )

Definition at line 2106 of file ivcon.c.

◆ data_read()

bool data_read ( void  )

Definition at line 2289 of file ivcon.c.

◆ data_report()

void data_report ( void  )

Definition at line 2596 of file ivcon.c.

◆ data_write()

int data_write ( void  )

Definition at line 2634 of file ivcon.c.

◆ dxf_read()

int dxf_read ( FILE *  filein)

Definition at line 2841 of file ivcon.c.

◆ dxf_write()

int dxf_write ( FILE *  fileout)

Definition at line 3068 of file ivcon.c.

◆ edge_null_delete()

void edge_null_delete ( void  )

Definition at line 3289 of file ivcon.c.

◆ face_area_set()

void face_area_set ( void  )

Definition at line 3385 of file ivcon.c.

◆ face_normal_ave()

void face_normal_ave ( void  )

Definition at line 3539 of file ivcon.c.

◆ face_null_delete()

void face_null_delete ( void  )

Definition at line 3624 of file ivcon.c.

◆ face_print()

int face_print ( int  iface)

Definition at line 3704 of file ivcon.c.

◆ face_reverse_order()

void face_reverse_order ( void  )

Definition at line 3769 of file ivcon.c.

◆ face_subset()

int face_subset ( void  )

Definition at line 3854 of file ivcon.c.

◆ face_to_line()

void face_to_line ( void  )

Definition at line 3990 of file ivcon.c.

◆ face_to_vertex_material()

void face_to_vertex_material ( void  )

Definition at line 4104 of file ivcon.c.

◆ file_ext()

char * file_ext ( char *  file_name)

Definition at line 4140 of file ivcon.c.

◆ float_read()

float float_read ( FILE *  filein)

Definition at line 4171 of file ivcon.c.

◆ float_reverse_bytes()

float float_reverse_bytes ( float  x)

Definition at line 4201 of file ivcon.c.

◆ float_write()

int float_write ( FILE *  fileout,
float  float_val 
)

Definition at line 4245 of file ivcon.c.

◆ gmod_arch_check()

bool gmod_arch_check ( void  )

Definition at line 4275 of file ivcon.c.

◆ gmod_read()

int gmod_read ( FILE *  filein)

Definition at line 4317 of file ivcon.c.

◆ gmod_read_float()

float gmod_read_float ( FILE *  filein)

Definition at line 4630 of file ivcon.c.

◆ gmod_read_w16()

unsigned short gmod_read_w16 ( FILE *  filein)

Definition at line 4669 of file ivcon.c.

◆ gmod_read_w32()

unsigned long gmod_read_w32 ( FILE *  filein)

Definition at line 4697 of file ivcon.c.

◆ gmod_write()

int gmod_write ( FILE *  fileout)

Definition at line 4730 of file ivcon.c.

◆ gmod_write_float()

void gmod_write_float ( float  Val,
FILE *  fileout 
)

Definition at line 5015 of file ivcon.c.

◆ gmod_write_w16()

void gmod_write_w16 ( unsigned short  Val,
FILE *  fileout 
)

Definition at line 5051 of file ivcon.c.

◆ gmod_write_w32()

void gmod_write_w32 ( unsigned long  Val,
FILE *  fileout 
)

Definition at line 5078 of file ivcon.c.

◆ hello()

void hello ( void  )

Definition at line 5108 of file ivcon.c.

◆ help()

void help ( void  )

Definition at line 5168 of file ivcon.c.

◆ hrc_read()

int hrc_read ( FILE *  filein)

Definition at line 5210 of file ivcon.c.

◆ hrc_write()

int hrc_write ( FILE *  fileout)

Definition at line 6081 of file ivcon.c.

◆ init_program_data()

void init_program_data ( void  )

Definition at line 6471 of file ivcon.c.

◆ interact()

int interact ( void  )

Definition at line 6507 of file ivcon.c.

◆ iv_read()

int iv_read ( FILE *  filein)

Definition at line 6895 of file ivcon.c.

◆ iv_write()

int iv_write ( FILE *  fileout)

Definition at line 8396 of file ivcon.c.

◆ ivec_max()

int ivec_max ( int  n,
int *  a 
)

Definition at line 8766 of file ivcon.c.

◆ leqi()

int leqi ( char *  string1,
char *  string2 
)

Definition at line 8805 of file ivcon.c.

◆ long_int_read()

long int long_int_read ( FILE *  filein)

Definition at line 8868 of file ivcon.c.

◆ long_int_write()

int long_int_write ( FILE *  fileout,
long int  int_val 
)

Definition at line 8908 of file ivcon.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 349 of file ivcon.c.

◆ news()

void news ( void  )

Definition at line 8950 of file ivcon.c.

◆ node_to_vertex_material()

void node_to_vertex_material ( void  )

Definition at line 9099 of file ivcon.c.

◆ obj_read()

int obj_read ( FILE *  filein)

Definition at line 9138 of file ivcon.c.

◆ obj_write()

int obj_write ( FILE *  fileout)

Definition at line 9600 of file ivcon.c.

◆ pov_write()

int pov_write ( FILE *  fileout)

Definition at line 9745 of file ivcon.c.

◆ rcol_find()

int rcol_find ( float  a[][COR3_MAX],
int  m,
int  n,
float  r[] 
)

Definition at line 9931 of file ivcon.c.

◆ rgb_to_hue()

float rgb_to_hue ( float  r,
float  g,
float  b 
)

Definition at line 9979 of file ivcon.c.

◆ short_int_read()

short int short_int_read ( FILE *  filein)

Definition at line 10112 of file ivcon.c.

◆ short_int_write()

int short_int_write ( FILE *  fileout,
short int  int_val 
)

Definition at line 10142 of file ivcon.c.

◆ smf_read()

int smf_read ( FILE *  filein)

Definition at line 10180 of file ivcon.c.

◆ smf_write()

int smf_write ( FILE *  fileout)

Definition at line 10799 of file ivcon.c.

◆ stla_read()

int stla_read ( FILE *  filein)

Definition at line 11004 of file ivcon.c.

◆ stla_write()

int stla_write ( FILE *  fileout)

Definition at line 11190 of file ivcon.c.

◆ stlb_read()

int stlb_read ( FILE *  filein)

Definition at line 11298 of file ivcon.c.

◆ stlb_write()

int stlb_write ( FILE *  fileout)

Definition at line 11409 of file ivcon.c.

◆ tds_pre_process()

void tds_pre_process ( void  )

Definition at line 11521 of file ivcon.c.

◆ tds_read()

int tds_read ( FILE *  filein)

Definition at line 11552 of file ivcon.c.

◆ tds_read_ambient_section()

unsigned long tds_read_ambient_section ( FILE *  filein)

Definition at line 11684 of file ivcon.c.

◆ tds_read_background_section()

unsigned long tds_read_background_section ( FILE *  filein)

Definition at line 11754 of file ivcon.c.

◆ tds_read_boolean()

unsigned long tds_read_boolean ( unsigned char *  boolean,
FILE *  filein 
)

Definition at line 11824 of file ivcon.c.

◆ tds_read_camera_section()

unsigned long tds_read_camera_section ( FILE *  filein)

Definition at line 11845 of file ivcon.c.

◆ tds_read_edit_section()

unsigned long tds_read_edit_section ( FILE *  filein,
int *  views_read 
)

Definition at line 11914 of file ivcon.c.

◆ tds_read_keyframe_objdes_section()

unsigned long tds_read_keyframe_objdes_section ( FILE *  filein)

Definition at line 12145 of file ivcon.c.

◆ tds_read_keyframe_section()

unsigned long tds_read_keyframe_section ( FILE *  filein,
int *  views_read 
)

Definition at line 12075 of file ivcon.c.

◆ tds_read_light_section()

unsigned long tds_read_light_section ( FILE *  filein)

Definition at line 12270 of file ivcon.c.

◆ tds_read_long_name()

int tds_read_long_name ( FILE *  filein)

Definition at line 12415 of file ivcon.c.

◆ tds_read_matdef_section()

unsigned long tds_read_matdef_section ( FILE *  filein)

Definition at line 12451 of file ivcon.c.

◆ tds_read_material_section()

unsigned long tds_read_material_section ( FILE *  filein)

Definition at line 12484 of file ivcon.c.

◆ tds_read_name()

int tds_read_name ( FILE *  filein)

Definition at line 12733 of file ivcon.c.

◆ tds_read_obj_section()

unsigned long tds_read_obj_section ( FILE *  filein)

Definition at line 12770 of file ivcon.c.

◆ tds_read_object_section()

unsigned long tds_read_object_section ( FILE *  filein)

Definition at line 12999 of file ivcon.c.

◆ tds_read_spot_section()

unsigned long tds_read_spot_section ( FILE *  filein)

Definition at line 13214 of file ivcon.c.

◆ tds_read_tex_verts_section()

unsigned long int tds_read_tex_verts_section ( FILE *  filein)

Definition at line 13082 of file ivcon.c.

◆ tds_read_texmap_section()

unsigned long tds_read_texmap_section ( FILE *  filein)

Definition at line 13130 of file ivcon.c.

◆ tds_read_u_long_int()

unsigned long int tds_read_u_long_int ( FILE *  filein)

Definition at line 12379 of file ivcon.c.

◆ tds_read_u_short_int()

unsigned short int tds_read_u_short_int ( FILE *  filein)

Definition at line 13197 of file ivcon.c.

◆ tds_read_unknown_section()

unsigned long int tds_read_unknown_section ( FILE *  filein)

Definition at line 13249 of file ivcon.c.

◆ tds_read_view_section()

unsigned long tds_read_view_section ( FILE *  filein,
int *  views_read 
)

Definition at line 13268 of file ivcon.c.

◆ tds_read_vp_section()

unsigned long tds_read_vp_section ( FILE *  filein,
int *  views_read 
)

Definition at line 13328 of file ivcon.c.

◆ tds_write()

int tds_write ( FILE *  fileout)

Definition at line 13411 of file ivcon.c.

◆ tds_write_string()

int tds_write_string ( FILE *  fileout,
char *  string 
)

Definition at line 13812 of file ivcon.c.

◆ tds_write_u_short_int()

int tds_write_u_short_int ( FILE *  fileout,
unsigned short int  int_val 
)

Definition at line 13846 of file ivcon.c.

◆ tec_write()

int tec_write ( FILE *  fileout)

Definition at line 13880 of file ivcon.c.

◆ tmat_init()

void tmat_init ( float  a[4][4])

Definition at line 14000 of file ivcon.c.

◆ tmat_mxm()

void tmat_mxm ( float  a[4][4],
float  b[4][4],
float  c[4][4] 
)

Definition at line 14070 of file ivcon.c.

◆ tmat_mxp()

void tmat_mxp ( float  a[4][4],
float  x[4],
float  y[4] 
)

Definition at line 14131 of file ivcon.c.

◆ tmat_mxp2()

void tmat_mxp2 ( float  a[4][4],
float  x[][3],
float  y[][3],
int  n 
)

Definition at line 14184 of file ivcon.c.

◆ tmat_mxv()

void tmat_mxv ( float  a[4][4],
float  x[4],
float  y[4] 
)

Definition at line 14242 of file ivcon.c.

◆ tmat_rot_axis()

void tmat_rot_axis ( float  a[4][4],
float  b[4][4],
float  angle,
char  axis 
)

Definition at line 14296 of file ivcon.c.

◆ tmat_rot_vector()

void tmat_rot_vector ( float  a[4][4],
float  b[4][4],
float  angle,
float  v1,
float  v2,
float  v3 
)

Definition at line 14380 of file ivcon.c.

◆ tmat_scale()

void tmat_scale ( float  a[4][4],
float  b[4][4],
float  sx,
float  sy,
float  sz 
)

Definition at line 14460 of file ivcon.c.

◆ tmat_shear()

void tmat_shear ( float  a[4][4],
float  b[4][4],
char *  axis,
float  s 
)

Definition at line 14517 of file ivcon.c.

◆ tmat_trans()

void tmat_trans ( float  a[4][4],
float  b[4][4],
float  x,
float  y,
float  z 
)

Definition at line 14604 of file ivcon.c.

◆ tria_read()

int tria_read ( FILE *  filein)

Definition at line 14655 of file ivcon.c.

◆ tria_write()

int tria_write ( FILE *  fileout)

Definition at line 14767 of file ivcon.c.

◆ trib_read()

int trib_read ( FILE *  filein)

Definition at line 14873 of file ivcon.c.

◆ trib_write()

int trib_write ( FILE *  fileout)

Definition at line 14979 of file ivcon.c.

◆ txt_write()

int txt_write ( FILE *  fileout)

Definition at line 15092 of file ivcon.c.

◆ ucd_write()

int ucd_write ( FILE *  fileout)

Definition at line 15404 of file ivcon.c.

◆ vertex_normal_set()

void vertex_normal_set ( void  )

Definition at line 15565 of file ivcon.c.

◆ vertex_to_face_material()

void vertex_to_face_material ( void  )

Definition at line 15687 of file ivcon.c.

◆ vertex_to_node_material()

void vertex_to_node_material ( void  )

Definition at line 15723 of file ivcon.c.

◆ vla_read()

int vla_read ( FILE *  filein)

Definition at line 15767 of file ivcon.c.

◆ vla_write()

int vla_write ( FILE *  fileout)

Definition at line 15928 of file ivcon.c.

◆ wrl_write()

int wrl_write ( FILE *  filout)

Definition at line 16035 of file ivcon.c.

◆ xgl_write()

int xgl_write ( FILE *  fileout)

Definition at line 16348 of file ivcon.c.

Variable Documentation

◆ anim_name

char anim_name[LINE_MAX_LEN]

Definition at line 135 of file ivcon.c.

◆ background_rgb

float background_rgb[3]

Definition at line 136 of file ivcon.c.

◆ bad_num

int bad_num

Definition at line 137 of file ivcon.c.

◆ byte_swap

int byte_swap

Definition at line 138 of file ivcon.c.

◆ bytes_num

int bytes_num

Definition at line 139 of file ivcon.c.

◆ color_num

int color_num

Definition at line 140 of file ivcon.c.

◆ comment_num

int comment_num

Definition at line 141 of file ivcon.c.

◆ cor3

float cor3[3][COR3_MAX]

Definition at line 143 of file ivcon.c.

◆ cor3_material

int cor3_material[COR3_MAX]

Definition at line 144 of file ivcon.c.

◆ cor3_normal

float cor3_normal[3][COR3_MAX]

Definition at line 145 of file ivcon.c.

◆ cor3_num

int cor3_num

Definition at line 146 of file ivcon.c.

◆ cor3_tex_uv

float cor3_tex_uv[3][COR3_MAX]

Definition at line 147 of file ivcon.c.

◆ debug

int debug

Definition at line 149 of file ivcon.c.

◆ dup_num

int dup_num

Definition at line 151 of file ivcon.c.

◆ face

int face[ORDER_MAX][FACE_MAX]

Definition at line 153 of file ivcon.c.

◆ face_area

float face_area[FACE_MAX]

Definition at line 154 of file ivcon.c.

◆ face_flags

int face_flags[FACE_MAX]

Definition at line 155 of file ivcon.c.

◆ face_material

int face_material[FACE_MAX]

Definition at line 156 of file ivcon.c.

◆ face_normal

float face_normal[3][FACE_MAX]

Definition at line 157 of file ivcon.c.

◆ face_num

int face_num

Definition at line 158 of file ivcon.c.

◆ face_object

int face_object[FACE_MAX]

Definition at line 159 of file ivcon.c.

◆ face_order

int face_order[FACE_MAX]

Definition at line 160 of file ivcon.c.

◆ face_smooth

int face_smooth[FACE_MAX]

Definition at line 161 of file ivcon.c.

◆ face_tex_uv

float face_tex_uv[2][FACE_MAX]

Definition at line 162 of file ivcon.c.

◆ filein_name

char filein_name[1024]

Definition at line 164 of file ivcon.c.

◆ fileout_name

char fileout_name[1024]

Definition at line 165 of file ivcon.c.

◆ group_num

int group_num

Definition at line 167 of file ivcon.c.

◆ i

int i

Definition at line 169 of file ivcon.c.

◆ input

char input[LINE_MAX_LEN]

Definition at line 170 of file ivcon.c.

◆ k

int k

Definition at line 171 of file ivcon.c.

◆ level_name

char level_name[LEVEL_MAX][LINE_MAX_LEN]

Definition at line 172 of file ivcon.c.

◆ line_dex

int line_dex[LINES_MAX]

Definition at line 174 of file ivcon.c.

◆ line_material

int line_material[LINES_MAX]

Definition at line 175 of file ivcon.c.

◆ line_num

int line_num

Definition at line 176 of file ivcon.c.

◆ line_prune

int line_prune

Definition at line 177 of file ivcon.c.

◆ list

int list[COR3_MAX]

Definition at line 179 of file ivcon.c.

◆ mat_name

char mat_name[81]

Definition at line 186 of file ivcon.c.

◆ material_binding

char material_binding[80]

Definition at line 181 of file ivcon.c.

◆ material_name

char material_name[MATERIAL_MAX][LINE_MAX_LEN]

Definition at line 182 of file ivcon.c.

◆ material_num

int material_num

Definition at line 183 of file ivcon.c.

◆ material_rgba

float material_rgba[4][MATERIAL_MAX]

Definition at line 184 of file ivcon.c.

◆ max_order2

int max_order2

Definition at line 187 of file ivcon.c.

◆ normal_binding

char normal_binding[80]

Definition at line 189 of file ivcon.c.

◆ normal_temp

float normal_temp[3][ORDER_MAX *FACE_MAX]

Definition at line 190 of file ivcon.c.

◆ object_name

char object_name[81]

Definition at line 192 of file ivcon.c.

◆ object_num

int object_num

Definition at line 193 of file ivcon.c.

◆ origin

float origin[3]

Definition at line 195 of file ivcon.c.

◆ pivot

float pivot[3]

Definition at line 196 of file ivcon.c.

◆ rgbcolor

float rgbcolor[3][COLOR_MAX]

Definition at line 197 of file ivcon.c.

◆ temp_name

char temp_name[81]

Definition at line 198 of file ivcon.c.

◆ text_num

int text_num

Definition at line 200 of file ivcon.c.

◆ texture_binding

char texture_binding[80]

Definition at line 202 of file ivcon.c.

◆ texture_name

char texture_name[TEXTURE_MAX][LINE_MAX_LEN]

Definition at line 203 of file ivcon.c.

◆ texture_num

int texture_num

Definition at line 204 of file ivcon.c.

◆ texture_temp

float texture_temp[2][ORDER_MAX *FACE_MAX]

Definition at line 205 of file ivcon.c.

◆ transform_matrix

float transform_matrix[4][4]

Definition at line 207 of file ivcon.c.

◆ vertex_material

int vertex_material[ORDER_MAX][FACE_MAX]

Definition at line 209 of file ivcon.c.

◆ vertex_normal

float vertex_normal[3][ORDER_MAX][FACE_MAX]

Definition at line 210 of file ivcon.c.

◆ vertex_rgb

float vertex_rgb[3][ORDER_MAX][FACE_MAX]

Definition at line 211 of file ivcon.c.

◆ vertex_tex_uv

float vertex_tex_uv[2][ORDER_MAX][FACE_MAX]

Definition at line 212 of file ivcon.c.



ivcon
Author(s): John Burkardt
autogenerated on Mon Feb 28 2022 22:31:01