73{
74
75 char *cname,*cname1,*ccomment;
76 int cname_len,cname_len1,ccomment_len;
77 int i;
78 float node[3];
79 H3D_ID node_id;
80 unsigned int elem_count = 1;
81
82 cname_len = *size + 1;
83 cname=(char*) malloc(sizeof(char)*cname_len);
84 for(i=0;i<*size;i++) cname[i] = name[i];
85 cname[*size]='\0';
86
87 cname_len1 = *size1 + 1;
88 cname1=(char*) malloc(sizeof(char)*cname_len1);
89 for(i=0;i<*size1;i++) cname1[i] = name1[i];
90 cname1[*size1]='\0';
91
92 ccomment_len = *s_comment + 1;
93 ccomment=(char*) malloc(sizeof(char)*ccomment_len);
94 for(i=0;i<*s_comment;i++) ccomment[i] = comment[i];
95 ccomment[*s_comment]='\0';
96
97 char * LAYERPOOL = new char [100];
98 LAYERPOOL[0] ='\0';
99 char * IPT_STRING = new char [100];
100 IPT_STRING[0] ='\0';
101
102 H3D_ID layer_pool_id = H3D_NULL_ID;
103 if(*ipt > 0)
104 {
105 sprintf(IPT_STRING, "IPT %d" ,*ipt);
106 }
107 else
108 {
109 sprintf(IPT_STRING, "Mid" );
110 }
111
112#ifdef _WIN64
113 strcat_s(LAYERPOOL,100,IPT_STRING);
114#else
115 LAYERPOOL = strcat(LAYERPOOL,IPT_STRING);
116#endif
117
119
120
122
123 try {
124
125 char TRUSSPOOL[] = "TRUSS";
128
129 char BEAMPOOL[] = "BEAM";
132
133 char SPRINGPOOL[] = "SPRING";
136
137
139
142
144
147
151
152 if (strlen(ccomment) != 0)
153 {
156 }
157
158
159 if (*cpt_data != 0)
160 {
164
168
171 }
172
175
176 }
177
178 catch(...) {
180 }
181 delete [] LAYERPOOL;
182 free(cname);
183 free(cname1);
184 free(ccomment);
185
186}
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)