73{
74 char *cname,*cname1,*ccomment;
75 int cname_len,cname_len1,ccomment_len;
76 int i;
77 float node[3];
78 H3D_ID node_id;
79 unsigned int elem_count = 1;
80
81 cname_len = *size + 1;
82 cname=(char*) malloc(sizeof(char)*cname_len);
83 for(i=0;i<*size;i++) cname[i] = name[i];
84 cname[*size]='\0';
85
86 if (strncmp(cname,
"Grid Point Stress",17)==0)
tensor_type = H3D_DS_STRESS;
87 if (strncmp(cname,
"Grid Point Strain",17)==0)
tensor_type = H3D_DS_STRAIN;
88
89 cname_len1 = *size1 + 1;
90 cname1=(char*) malloc(sizeof(char)*cname_len1);
91 for(i=0;i<*size1;i++) cname1[i] = name1[i];
92 cname1[*size1]='\0';
93
94 ccomment_len = *s_comment + 1;
95 ccomment=(char*) malloc(sizeof(char)*ccomment_len);
96 for(i=0;i<*s_comment;i++) ccomment[i] = comment[i];
97 ccomment[*s_comment]='\0';
98
99 char * LAYERPOOL = new char [*size1+11];
100 H3D_ID layer_pool_id = H3D_NULL_ID;
101 if(*info2 != 0)
102 {
103 sprintf(LAYERPOOL, "%s %d %d" ,cname1,*info1,*info2);
105 }
106 else
107 {
108 sprintf(LAYERPOOL, "%s %d" ,cname1,*info1);
110 }
111
112
114
115 try {
116
118
121
123
129
132
133 if(*info1 != 0 && *cpt_data != 0)
134 {
138
139 }
140 else if (*cpt_data != 0)
141 {
145
146 }
147
150
151 }
152
153 catch(...) {
155 }
156 delete [] LAYERPOOL;
157 free(cname);
158 free(cname1);
159 free(ccomment);
160
161}
H3D_TENSOR_TYPE tensor_type
bool Hyper3DDatatypePools(H3DFileInfo *h3d_file, H3D_ID dt_id, H3D_ID poolname_id, unsigned int num_layers, H3D_ID *layername_ids, bool corners, H3D_TENSOR_TYPE tensor_type, float poisson)
bool Hyper3DAddString(H3DFileInfo *h3d_file, const char *const string, H3D_ID *const str_id)
bool Hyper3DDatatypeEnd(H3DFileInfo *h3d_file)
bool Hyper3DExportClearError(H3DFileInfo *h3d_file)
bool Hyper3DDatatypeDescriptionWrite(H3DFileInfo *h3d_file, H3D_ID dt_id, const char *description)
bool Hyper3DDatatypeWrite(H3DFileInfo *h3d_file, const char *label, H3D_ID dt_id, H3D_DS_FORMAT format, H3D_DS_TYPE type, unsigned int num_pools)
bool Hyper3DDatatypeBegin(H3DFileInfo *h3d_file, unsigned int count)