155{
156 char *cname,*cname1;
157 int cname_len,cname_len1;
158 int i;
159 float node[3];
160 H3D_ID node_id;
161 unsigned int elem_count = 1;
162
163 cname_len = *size + 1;
164 cname=(char*) malloc(sizeof(char)*cname_len);
165 for(i=0;i<*size;i++) cname[i] = name[i];
166 cname[*size]='\0';
167
168 cname_len1 = *size1 + 1;
169 cname1=(char*) malloc(sizeof(char)*cname_len1);
170 for(i=0;i<*size1;i++) cname1[i] = name1[i];
171 cname1[*size1]='\0';
172
173 char * LAYERPOOL = new char [*size1+11];
174 sprintf(LAYERPOOL, "%s %d" ,cname1,*info);
175 H3D_ID layer_pool_id = H3D_NULL_ID;
177
179
180
181
182
183
184 try {
185
187
190
192
194
199
201
205
208
209 }
210
211 catch(...) {
213 }
214 delete [] LAYERPOOL;
215 free(cname);
216 free(cname1);
217
218}
H3D_ID sphcell_poolname_id
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)