44#include <sys/resource.h>
56#include "h3dpublic_defs.h"
57#include "h3dpublic_export.h"
61#include "h3d_values.h"
72 char *comment,
int *s_comment)
74 char *cname,*cname1,*ccomment;
75 int cname_len,cname_len1,ccomment_len;
79 unsigned int elem_count = 1;
82 char * CH_INTER_ID =
new char [100];
85 cname_len = *size + 10;
86 cname=(
char*) malloc(
sizeof(
char)*cname_len);
87 for(i=0;i<*size;i++) cname[i] = name[i];
91 cname_len1 = *size1 + 1;
92 cname1=(
char*) malloc(
sizeof(
char)*cname_len1);
93 for(i=0;i<*size1;i++) cname1[i] = name1[i];
96 ccomment_len = *s_comment + 1;
97 ccomment=(
char*) malloc(
sizeof(
char)*ccomment_len);
98 for(i=0;i<*s_comment;i++) ccomment[i] = comment[i];
99 ccomment[*s_comment]=
'\0';
101 char * LAYERPOOL =
new char [*size1+11];
102 sprintf(LAYERPOOL,
"%s %d" ,cname1,*info);
103 H3D_ID layer_pool_id = H3D_NULL_ID;
123 sprintf(CH_INTER_ID,
" %d",*INTER_ID );
125 strcat_s(cname,cname_len,CH_INTER_ID);
127 cname = strcat(cname,CH_INTER_ID);
130 edata_type=(
char*)malloc(
sizeof(
char)*(strlen(cname)+1));
145 if (strlen(ccomment) != 0)
151 if(*info != 0 && *cpt_data != 0)
158 else if (*cpt_data != 0)
175 delete [] CH_INTER_ID;
186 char *comment,
int *s_comment)
190 char *comment,
int *s_comment)
194 char *comment,
int *s_comment)
void _FCALL C_H3D_CREATE_NODAL_SCALAR_DATATYPE(int *cpt_data, char *name, int *size, int *info, char *name1, int *size1, int *inter_id, char *comment, int *s_comment)
void c_h3d_create_nodal_scalar_datatype_(int *cpt_data, char *name, int *size, int *info, char *name1, int *size1, int *INTER_ID, char *comment, int *s_comment)
void c_create_nodal_scalar_datatype(int *cpt_data, char *name, int *size, int *info, char *name1, int *size1, int *inter_id, char *comment, int *s_comment)
void c_h3d_create_nodal_scalar_datatype__(int *cpt_data, char *name, int *size, int *info, char *name1, int *size1, int *inter_id, char *comment, int *s_comment)
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)