Produces the VRML files for visualization and handling of the geometry. Uses VRML 2.0 format (http://www.web3d.org)
30 int in1,in2,in3,in4,i;
36 if (0 !=
rank)
return;
40 fprintf(f,
"#VRML V2.0 utf8 \n");
41 fprintf(f,
"Transform { \n translation 0.0 0.0 0.0 \n children[ \n Shape { \n");
42 fprintf(f,
"appearance Appearance{ \n material Material{ \n diffuseColor 1.0 0.0 0.0 \n");
43 fprintf(f,
"emissiveColor 1.0 0.0 0.0 \n shininess 0.8 }} \n");
44 fprintf(f,
"geometry IndexedFaceSet { \n coord Coordinate { point [ \n");
48 fprintf(f,
"] } coordIndex [ \n");
54 fprintf(f,
"%d %d %d %d %d -1\n",in1,in2,in3,in4,in1);
56 fprintf(f,
" ] } } ] }\n");
61 fprintf(f,
"#VRML V2.0 utf8 \n");
62 fprintf(f,
"Transform { \n translation 0.0 0.0 0.0 \n children[ \n Shape { \n");
63 fprintf(f,
"appearance Appearance{ \n material Material{ \n diffuseColor 1.0 1.0 0.0 \n");
64 fprintf(f,
"emissiveColor 1.0 1.0 0.0 \n shininess 0.8 }} \n");
65 fprintf(f,
"geometry PointSet { \n coord Coordinate { point [ \n");
74 fprintf(f,
"} } ] }\n");
80 fprintf(f,
"#VRML V2.0 utf8 \n");
81 fprintf(f,
"Transform { \n translation 0.0 0.0 0.0 \n children[ \n Shape { \n");
82 fprintf(f,
"appearance Appearance{ \n material Material{ \n diffuseColor 0.7 0.7 0.7 \n");
83 fprintf(f,
"emissiveColor 0.7 0.7 0.7 \n shininess 0.8 }} \n");
84 fprintf(f,
"geometry PointSet { \n coord Coordinate { point [ \n");
89 fprintf(f,
"} } ] }\n");
95 fprintf(f,
"#VRML V2.0 utf8 \n");
96 fprintf(f,
"Transform { \n translation 0.0 0.0 0.0 \n children[ \n Shape { \n");
97 fprintf(f,
"appearance Appearance{ \n material Material{ \n diffuseColor 0.0 0.1 0.1 \n");
98 fprintf(f,
"emissiveColor 0.0 0.1 0.1 \n shininess 0.8 }} \n");
99 fprintf(f,
"geometry PointSet { \n coord Coordinate { point [ \n");
104 fprintf(f,
"} } ] }\n");
const char * title
Definition: structs.h:135
int ncntr
Definition: structs.h:299
void get_filename(char *filename, const char *format,...)
Definition: utils.c:59
int nchief
Definition: structs.h:301
int nelmb
Definition: structs.h:295
int nnodb
Definition: structs.h:293
int nmics
Definition: structs.h:304
#define LOG_DEBUG
Definition: logger.h:27
int rank
Definition: globals.h:79
struct run_details * rundetails
Definition: globals.h:36
Geometry info structure.
Definition: structs.h:161
#define MAX_PATH
Definition: constants.h:29
void logger(int level, char *msg,...)
Definition: logger.c:56
struct modgeom_info * modgeominfo
Definition: globals.h:38