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,
int*ipt)
74 char *cname,*cname1,*ccomment;
75 int cname_len,cname_len1,ccomment_len;
79 unsigned int elem_count = 1;
81 cname_len = *size + 1;
82 cname=(
char*) malloc(
sizeof(
char)*cname_len);
83 for(i=0;i<*size;i++) cname[i] = name[i];
86 cname_len1 = *size1 + 1;
87 cname1=(
char*) malloc(
sizeof(
char)*cname_len1);
88 for(i=0;i<*size1;i++) cname1[i] = name1[i];
94 if(name[i] !=
' ') cpt_size = i;
96 cname[cpt_size+1]=
'\0';
98 ccomment_len = *s_comment + 1;
99 ccomment=(
char*) malloc(
sizeof(
char)*ccomment_len);
100 for(i=0;i<*s_comment;i++) ccomment[i] = comment[i];
101 ccomment[*s_comment]=
'\0';
104 char * LAYERPOOL =
new char [100];
106 char * IPT_STRING =
new char [100];
111 H3D_ID layer_pool_id = H3D_NULL_ID;
118 sprintf(IPT_STRING,
"IPT %d" ,*ipt);
120 strcat_s(LAYERPOOL,100,IPT_STRING);
122 LAYERPOOL = strcat(LAYERPOOL,IPT_STRING);
128 sprintf(LAYERPOOL,
"%s %d" ,cname1,*info1);
130 strcat_s(LAYERPOOL,100,IPT_STRING);
132 LAYERPOOL = strcat(LAYERPOOL,IPT_STRING);
147 char TRUSSPOOL[] =
"TRUSS";
151 char BEAMPOOL[] =
"BEAM";
155 char SPRINGPOOL[] =
"SPRING";
175 if (strlen(ccomment) != 0)
219 delete [] IPT_STRING;
231 char *comment,
int *s_comment,
int *ipt)
235 char *comment,
int *s_comment,
int *ipt)
239 char *comment,
int *s_comment,
int *ipt)
void c_create_1d_scalar_datatype(int *cpt_data, char *name, int *size, int *info1, char *name1, int *size1, char *comment, int *s_comment, int *ipt)
void c_h3d_create_1d_scalar_datatype_(int *cpt_data, char *name, int *size, int *info1, char *name1, int *size1, char *comment, int *s_comment, int *ipt)
void c_h3d_create_1d_scalar_datatype__(int *cpt_data, char *name, int *size, int *info1, char *name1, int *size1, char *comment, int *s_comment, int *ipt)
void _FCALL C_H3D_CREATE_1D_SCALAR_DATATYPE(int *cpt_data, char *name, int *size, int *info1, char *name1, int *size1, char *comment, int *s_comment, int *ipt)
H3D_ID spring_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)