Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfC_io.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of Tissue Forge.
3 * Copyright (c) 2022-2024 T.J. Sego
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
25#ifndef _WRAPS_C_TFC_IO_H_
26#define _WRAPS_C_TFC_IO_H_
27
28#include "tf_port_c.h"
29
30typedef HRESULT (*tfIoFIOModuleToFileFcn)(struct tfIoMetaDataHandle, struct tfIoIOElementHandle*);
31typedef HRESULT (*tfIoFIOModuleFromFileFcn)(struct tfIoMetaDataHandle, struct tfIoIOElementHandle);
32
33// Handles
34
35struct CAPI_EXPORT tfIoMetaDataHandle {
36 unsigned int versionMajor;
37 unsigned int versionMinor;
38 unsigned int versionPatch;
39};
40
41struct CAPI_EXPORT tfIoFIOStorageKeysHandle {
42 char *KEY_TYPE;
43 char *KEY_VALUE;
44 char *KEY_METADATA;
45 char *KEY_SIMULATOR;
46 char *KEY_UNIVERSE;
47 char *KEY_MODULES;
48};
49
54struct CAPI_EXPORT tfIoIOElementHandle {
55 void *tfObj;
56};
57
62struct CAPI_EXPORT tfIoThreeDFRenderDataHandle {
63 void *tfObj;
64};
65
70struct CAPI_EXPORT tfIoThreeDFVertexDataHandle {
71 void *tfObj;
72};
73
78struct CAPI_EXPORT tfIoThreeDFEdgeDataHandle {
79 void *tfObj;
80};
81
86struct CAPI_EXPORT tfIoThreeDFFaceDataHandle {
87 void *tfObj;
88};
89
94struct CAPI_EXPORT tfIoThreeDFMeshDataHandle {
95 void *tfObj;
96};
97
102struct CAPI_EXPORT tfIoThreeDFStructureHandle {
103 void *tfObj;
104};
105
110struct CAPI_EXPORT tfIoFIOModuleHandle {
111 void *tfObj;
112};
113
114
115
117// io::MetaData //
119
120
127CAPI_FUNC(HRESULT) tfIoMetaData_init(struct tfIoMetaDataHandle *handle);
128
129
131// io::FIOStorageKeys //
133
134
141CAPI_FUNC(HRESULT) tfIoFIOStorageKeys_init(struct tfIoFIOStorageKeysHandle *handle);
142
149CAPI_FUNC(HRESULT) tfIoFIOStorageKeys_destroy(struct tfIoFIOStorageKeysHandle *handle);
150
151
153// io::IOElement //
155
156
163CAPI_FUNC(HRESULT) tfIoIOElement_init(struct tfIoIOElementHandle *handle);
164
171CAPI_FUNC(HRESULT) tfIoIOElement_destroy(struct tfIoIOElementHandle *handle);
172
181CAPI_FUNC(HRESULT) tfIoIOElement_getType(struct tfIoIOElementHandle *handle, char **type, unsigned int *numChars);
182
190CAPI_FUNC(HRESULT) tfIoIOElement_setType(struct tfIoIOElementHandle *handle, const char *type);
191
200CAPI_FUNC(HRESULT) tfIoIOElement_getValue(struct tfIoIOElementHandle *handle, char **value, unsigned int *numChars);
201
209CAPI_FUNC(HRESULT) tfIoIOElement_setValue(struct tfIoIOElementHandle *handle, const char *value);
210
218CAPI_FUNC(HRESULT) tfIoIOElement_hasParent(struct tfIoIOElementHandle *handle, bool *hasParent);
219
227CAPI_FUNC(HRESULT) tfIoIOElement_getParent(struct tfIoIOElementHandle *handle, struct tfIoIOElementHandle *parent);
228
236CAPI_FUNC(HRESULT) tfIoIOElement_setParent(struct tfIoIOElementHandle *handle, struct tfIoIOElementHandle *parent);
237
245CAPI_FUNC(HRESULT) tfIoIOElement_getNumChildren(struct tfIoIOElementHandle *handle, unsigned int *numChildren);
246
254CAPI_FUNC(HRESULT) tfIoIOElement_getKeys(struct tfIoIOElementHandle *handle, char ***keys);
255
264CAPI_FUNC(HRESULT) tfIoIOElement_getChild(struct tfIoIOElementHandle *handle, const char *key, struct tfIoIOElementHandle *child);
265
274CAPI_FUNC(HRESULT) tfIoIOElement_setChild(struct tfIoIOElementHandle *handle, const char *key, struct tfIoIOElementHandle *child);
275
276
278// io::ThreeDFRenderData //
280
281
289
297
305CAPI_FUNC(HRESULT) tfIoThreeDFRenderData_getColor(struct tfIoThreeDFRenderDataHandle *handle, tfFloatP_t **color);
306
314CAPI_FUNC(HRESULT) tfIoThreeDFRenderData_setColor(struct tfIoThreeDFRenderDataHandle *handle, tfFloatP_t *color);
315
316
318// io::ThreeDFVertexData //
320
321
329CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_init(struct tfIoThreeDFVertexDataHandle *handle, tfFloatP_t *position);
330
338
346CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_hasStructure(struct tfIoThreeDFVertexDataHandle *handle, bool *hasStructure);
347
356
365
373CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getPosition(struct tfIoThreeDFVertexDataHandle *handle, tfFloatP_t **position);
374
382CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_setPosition(struct tfIoThreeDFVertexDataHandle *handle, tfFloatP_t *position);
383
391CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getId(struct tfIoThreeDFVertexDataHandle *handle, int *value);
392
400CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_setId(struct tfIoThreeDFVertexDataHandle *handle, unsigned int value);
401
410CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getEdges(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges);
411
420CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_setEdges(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edges, unsigned int numEdges);
421
430CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getFaces(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces);
431
440CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getMeshes(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes);
441
449CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getNumEdges(struct tfIoThreeDFVertexDataHandle *handle, unsigned int *value);
450
458CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getNumFaces(struct tfIoThreeDFVertexDataHandle *handle, unsigned int *value);
459
467CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_getNumMeshes(struct tfIoThreeDFVertexDataHandle *handle, unsigned int *value);
468
477CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_inEdge(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn);
478
487CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_inFace(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn);
488
497CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_inMesh(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn);
498
507CAPI_FUNC(HRESULT) tfIoThreeDFVertexData_inStructure(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn);
508
509
511// io::ThreeDFEdgeData //
513
514
524
532
540CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_hasStructure(struct tfIoThreeDFEdgeDataHandle *handle, bool *hasStructure);
541
550
559
567CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_getId(struct tfIoThreeDFEdgeDataHandle *handle, int *value);
568
576CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_setId(struct tfIoThreeDFEdgeDataHandle *handle, unsigned int value);
577
587
597
606CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_getFaces(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces);
607
616CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_setFaces(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFFaceDataHandle *faces, unsigned int numFaces);
617
626CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_getMeshes(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes);
627
635CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_getNumFaces(struct tfIoThreeDFEdgeDataHandle *handle, unsigned int *value);
636
644CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_getNumMeshes(struct tfIoThreeDFEdgeDataHandle *handle, unsigned int *value);
645
654CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_hasVertex(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn);
655
664CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_inFace(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn);
665
674CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_inMesh(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn);
675
684CAPI_FUNC(HRESULT) tfIoThreeDFEdgeData_inStructure(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn);
685
686
688// io::ThreeDFFaceData //
690
691
698CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_init(struct tfIoThreeDFFaceDataHandle *handle);
699
707
715CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_hasStructure(struct tfIoThreeDFFaceDataHandle *handle, bool *hasStructure);
716
725
734
742CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getId(struct tfIoThreeDFFaceDataHandle *handle, int *value);
743
751CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_setId(struct tfIoThreeDFFaceDataHandle *handle, unsigned int value);
752
761CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getVertices(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFVertexDataHandle **vertices, unsigned int *numVertices);
762
770CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getNumVertices(struct tfIoThreeDFFaceDataHandle *handle, unsigned int *value);
771
780CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getEdges(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges);
781
790CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_setEdges(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edges, unsigned int numEdges);
791
799CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getNumEdges(struct tfIoThreeDFFaceDataHandle *handle, unsigned int *value);
800
809CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getMeshes(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes);
810
819CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_setMeshes(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFMeshDataHandle *meshes, unsigned int numMeshes);
820
828CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getNumMeshes(struct tfIoThreeDFFaceDataHandle *handle, unsigned int *value);
829
838CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_hasVertex(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn);
839
848CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_hasEdge(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn);
849
858CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_inMesh(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn);
859
868CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_inStructure(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn);
869
877CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_getNormal(struct tfIoThreeDFFaceDataHandle *handle, tfFloatP_t **normal);
878
886CAPI_FUNC(HRESULT) tfIoThreeDFFaceData_setNormal(struct tfIoThreeDFFaceDataHandle *handle, tfFloatP_t *normal);
887
888
890// io::ThreeDFMeshData //
892
893
900CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_init(struct tfIoThreeDFMeshDataHandle *handle);
901
909
917CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_hasStructure(struct tfIoThreeDFMeshDataHandle *handle, bool *hasStructure);
918
927
936
944CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getId(struct tfIoThreeDFMeshDataHandle *handle, int *value);
945
953CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_setId(struct tfIoThreeDFMeshDataHandle *handle, unsigned int value);
954
963CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getVertices(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFVertexDataHandle **vertices, unsigned int *numVertices);
964
972CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getNumVertices(struct tfIoThreeDFMeshDataHandle *handle, unsigned int *value);
973
982CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getEdges(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges);
983
991CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getNumEdges(struct tfIoThreeDFMeshDataHandle *handle, unsigned int *value);
992
1001CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getFaces(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces);
1002
1011CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_setFaces(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFFaceDataHandle *faces, unsigned int numFaces);
1012
1020CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getNumFaces(struct tfIoThreeDFMeshDataHandle *handle, unsigned int *value);
1021
1030CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_hasVertex(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn);
1031
1040CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_hasEdge(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn);
1041
1050CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_hasFace(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn);
1051
1060CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_inStructure(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn);
1061
1070CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getName(struct tfIoThreeDFMeshDataHandle *handle, char **name, unsigned int *numChars);
1071
1079CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_setName(struct tfIoThreeDFMeshDataHandle *handle, const char *name);
1080
1088CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_hasRenderData(struct tfIoThreeDFMeshDataHandle *handle, bool *hasData);
1089
1098
1107
1115CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_getCentroid(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t **centroid);
1116
1124CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_translate(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *displacement);
1125
1133CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_translateTo(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *position);
1134
1143CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_rotateAt(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *rotMat, tfFloatP_t *rotPt);
1144
1152CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_rotate(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *rotMat);
1153
1162CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_scaleFrom(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *scales, tfFloatP_t *scalePt);
1163
1172CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_scaleFromS(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t scale, tfFloatP_t *scalePt);
1173
1181CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_scale(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *scales);
1182
1190CAPI_FUNC(HRESULT) tfIoThreeDFMeshData_scaleS(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t scale);
1191
1192
1194// io::ThreeDFStructure //
1196
1197
1205
1213
1221CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getRadiusDef(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *vRadiusDef);
1222
1230CAPI_FUNC(HRESULT) tfIoThreeDFStructure_setRadiusDef(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t vRadiusDef);
1231
1239CAPI_FUNC(HRESULT) tfIoThreeDFStructure_fromFile(struct tfIoThreeDFStructureHandle *handle, const char *filePath);
1240
1249CAPI_FUNC(HRESULT) tfIoThreeDFStructure_toFile(struct tfIoThreeDFStructureHandle *handle, const char *format, const char *filePath);
1250
1258
1267
1275
1284CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getVertices(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFVertexDataHandle **vertices, unsigned int *numVertices);
1285
1294CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getEdges(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges);
1295
1304CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getFaces(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces);
1305
1314CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getMeshes(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes);
1315
1323CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getNumVertices(struct tfIoThreeDFStructureHandle *handle, unsigned int *value);
1324
1332CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getNumEdges(struct tfIoThreeDFStructureHandle *handle, unsigned int *value);
1333
1341CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getNumFaces(struct tfIoThreeDFStructureHandle *handle, unsigned int *value);
1342
1349CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getNumMeshes(struct tfIoThreeDFStructureHandle *handle, unsigned int *value);
1350
1359CAPI_FUNC(HRESULT) tfIoThreeDFStructure_hasVertex(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn);
1360
1369CAPI_FUNC(HRESULT) tfIoThreeDFStructure_hasEdge(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn);
1370
1379CAPI_FUNC(HRESULT) tfIoThreeDFStructure_hasFace(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn);
1380
1389CAPI_FUNC(HRESULT) tfIoThreeDFStructure_hasMesh(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn);
1390
1399
1408
1417
1426
1435
1444
1453
1462
1470CAPI_FUNC(HRESULT) tfIoThreeDFStructure_getCentroid(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t **centroid);
1471
1479CAPI_FUNC(HRESULT) tfIoThreeDFStructure_translate(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *displacement);
1480
1488CAPI_FUNC(HRESULT) tfIoThreeDFStructure_translateTo(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *position);
1489
1498CAPI_FUNC(HRESULT) tfIoThreeDFStructure_rotateAt(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *rotMat, tfFloatP_t *rotPt);
1499
1507CAPI_FUNC(HRESULT) tfIoThreeDFStructure_rotate(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *rotMat);
1508
1517CAPI_FUNC(HRESULT) tfIoThreeDFStructure_scaleFrom(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *scales, tfFloatP_t *scalePt);
1518
1527CAPI_FUNC(HRESULT) tfIoThreeDFStructure_scaleFromS(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t scale, tfFloatP_t *scalePt);
1528
1536CAPI_FUNC(HRESULT) tfIoThreeDFStructure_scale(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *scales);
1537
1545CAPI_FUNC(HRESULT) tfIoThreeDFStructure_scaleS(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t scale);
1546
1547
1549// io::FIOModule //
1551
1552
1562CAPI_FUNC(HRESULT) tfIoFIOModule_init(struct tfIoFIOModuleHandle *handle, const char *moduleName, tfIoFIOModuleToFileFcn toFile, tfIoFIOModuleFromFileFcn fromFile);
1563
1570CAPI_FUNC(HRESULT) tfIoFIOModule_destroy(struct tfIoFIOModuleHandle *handle);
1571
1576CAPI_FUNC(HRESULT) tfIoFIOModule_registerIOModule(struct tfIoFIOModuleHandle *handle);
1577
1584CAPI_FUNC(HRESULT) tfIoFIOModule_load(struct tfIoFIOModuleHandle *handle);
1585
1586
1588// Module functions //
1590
1591
1598CAPI_FUNC(HRESULT) tfIoFIO_getIORootElement(struct tfIoIOElementHandle *handle);
1599
1605CAPI_FUNC(HRESULT) tfIoFIO_releaseIORootElement();
1606
1613CAPI_FUNC(HRESULT) tfIoFIO_hasImport(bool *value);
1614
1622CAPI_FUNC(HRESULT) tfIo_mapImportParticleId(unsigned int pid, unsigned int *mapId);
1623
1631CAPI_FUNC(HRESULT) tfIo_mapImportParticleTypeId(unsigned int ptid, unsigned int *mapId);
1632
1640CAPI_FUNC(HRESULT) tfIo_fromFile3DF(const char *filePath, struct tfIoThreeDFStructureHandle *strt);
1641
1650CAPI_FUNC(HRESULT) tfIo_toFile3DF(const char *format, const char *filePath, unsigned int pRefinements);
1651
1658CAPI_FUNC(HRESULT) tfIo_toFile(const char *saveFilePath);
1659
1667CAPI_FUNC(HRESULT) tfIo_toString(char **str, unsigned int *numChars);
1668
1669#endif // _WRAPS_C_TFC_IO_H_
Handle to a io::FIOModule instance.
Definition tfC_io.h:110
Definition tfC_io.h:41
Handle to a io::IOElement instance.
Definition tfC_io.h:54
Definition tfC_io.h:35
Handle to a io::ThreeDFEdgeData instance.
Definition tfC_io.h:78
Handle to a io::ThreeDFFaceData instance.
Definition tfC_io.h:86
Handle to a io::ThreeDFMeshData instance.
Definition tfC_io.h:94
Handle to a io::ThreeDFRenderData instance.
Definition tfC_io.h:62
Handle to a io::ThreeDFStructure instance.
Definition tfC_io.h:102
Handle to a io::ThreeDFVertexData instance.
Definition tfC_io.h:70
HRESULT tfIoThreeDFStructure_hasFace(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn)
Test whether a face is a constituent.
HRESULT tfIoThreeDFFaceData_setNormal(struct tfIoThreeDFFaceDataHandle *handle, tfFloatP_t *normal)
Set the face normal vector.
HRESULT tfIoThreeDFVertexData_init(struct tfIoThreeDFVertexDataHandle *handle, tfFloatP_t *position)
Initialize an instance.
HRESULT tfIoThreeDFStructure_addFace(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFFaceDataHandle *face)
Add a face and all constituent data.
HRESULT tfIoThreeDFStructure_destroy(struct tfIoThreeDFStructureHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFStructure_addVertex(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex)
Add a vertex.
HRESULT tfIoThreeDFStructure_removeFace(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFFaceDataHandle *face)
Remove a face and all constituent data.
HRESULT tfIoFIOModule_init(struct tfIoFIOModuleHandle *handle, const char *moduleName, tfIoFIOModuleToFileFcn toFile, tfIoFIOModuleFromFileFcn fromFile)
Initialize an instance.
HRESULT tfIoThreeDFMeshData_setRenderData(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFRenderDataHandle *renderData)
Set render data.
HRESULT tfIoIOElement_setChild(struct tfIoIOElementHandle *handle, const char *key, struct tfIoIOElementHandle *child)
Set a child.
HRESULT tfIoThreeDFEdgeData_inFace(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn)
Test whether in a face.
HRESULT tfIoThreeDFEdgeData_destroy(struct tfIoThreeDFEdgeDataHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFStructure_rotate(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *rotMat)
Rotate the structure about its centroid.
HRESULT tfIoThreeDFStructure_clear(struct tfIoThreeDFStructureHandle *handle)
Clear all data of the structure.
HRESULT tfIoThreeDFStructure_getVertices(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFVertexDataHandle **vertices, unsigned int *numVertices)
Get all constituent vertices.
HRESULT tfIoThreeDFStructure_init(struct tfIoThreeDFStructureHandle *handle)
Initialize an instance.
HRESULT tfIoMetaData_init(struct tfIoMetaDataHandle *handle)
Initialize an instance.
HRESULT tfIoThreeDFRenderData_setColor(struct tfIoThreeDFRenderDataHandle *handle, tfFloatP_t *color)
Set the color.
HRESULT tfIoThreeDFEdgeData_inStructure(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn)
Test whether in a structure.
HRESULT tfIoThreeDFMeshData_rotate(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *rotMat)
Rotate the mesh about its centroid.
HRESULT tfIoThreeDFEdgeData_hasVertex(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn)
Test whether has a vertex.
HRESULT tfIoThreeDFFaceData_getMeshes(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes)
Get all parent meshes.
HRESULT tfIoThreeDFFaceData_init(struct tfIoThreeDFFaceDataHandle *handle)
Initialize an instance.
HRESULT tfIoThreeDFEdgeData_hasStructure(struct tfIoThreeDFEdgeDataHandle *handle, bool *hasStructure)
Test whether an instance has a parent structure.
HRESULT tfIoThreeDFRenderData_getColor(struct tfIoThreeDFRenderDataHandle *handle, tfFloatP_t **color)
Get the color.
HRESULT tfIoThreeDFFaceData_inStructure(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn)
Test whether in a structure.
HRESULT tfIoThreeDFEdgeData_getStructure(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Get the parent structure.
HRESULT tfIoThreeDFEdgeData_setStructure(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Set the parent structure.
HRESULT tfIoThreeDFVertexData_getStructure(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Get the parent structure.
HRESULT tfIoThreeDFMeshData_getEdges(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges)
Get all child edges.
HRESULT tfIoThreeDFFaceData_getNumVertices(struct tfIoThreeDFFaceDataHandle *handle, unsigned int *value)
Get the number of child vertices.
HRESULT tfIoThreeDFMeshData_getId(struct tfIoThreeDFMeshDataHandle *handle, int *value)
Get the ID, if any. Unique to its structure and type. -1 if not set.
HRESULT tfIoThreeDFStructure_getEdges(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges)
Get all constituent edges.
HRESULT tfIoThreeDFStructure_setRadiusDef(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t vRadiusDef)
Set the default radius applied to vertices when generating meshes from point clouds.
HRESULT tfIo_toFile3DF(const char *format, const char *filePath, unsigned int pRefinements)
Export engine state to a 3D format file.
HRESULT tfIoThreeDFMeshData_setFaces(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFFaceDataHandle *faces, unsigned int numFaces)
Get all child faces.
HRESULT tfIoThreeDFStructure_hasVertex(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn)
Test whether a vertex is a constituent.
HRESULT tfIoThreeDFStructure_getCentroid(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t **centroid)
Get the centroid of the structure.
HRESULT tfIoThreeDFStructure_scaleFrom(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *scales, tfFloatP_t *scalePt)
Scale the structure about a point.
HRESULT tfIoThreeDFStructure_removeVertex(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex)
Remove a vertex.
HRESULT tfIoFIO_releaseIORootElement()
Release current root element.
HRESULT tfIoIOElement_getType(struct tfIoIOElementHandle *handle, char **type, unsigned int *numChars)
Get the instance value type.
HRESULT tfIoFIOModule_load(struct tfIoFIOModuleHandle *handle)
User-facing function to load module data from main import.
HRESULT tfIoIOElement_setParent(struct tfIoIOElementHandle *handle, struct tfIoIOElementHandle *parent)
Set an instance parent.
HRESULT tfIoThreeDFFaceData_setStructure(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Set the parent structure.
HRESULT tfIoThreeDFEdgeData_setId(struct tfIoThreeDFEdgeDataHandle *handle, unsigned int value)
Set the ID.
HRESULT tfIoThreeDFVertexData_inMesh(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn)
Test whether in a mesh.
HRESULT tfIoThreeDFStructure_removeMesh(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh)
Remove a mesh and all constituent data.
HRESULT tfIoThreeDFMeshData_destroy(struct tfIoThreeDFMeshDataHandle *handle)
Destroy an instance.
HRESULT tfIo_toString(char **str, unsigned int *numChars)
Return a simulation state as a JSON string.
HRESULT tfIoThreeDFMeshData_hasEdge(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn)
Test whether has an edge.
HRESULT tfIoThreeDFStructure_addEdge(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge)
Add an edge and all constituent data.
HRESULT tfIoThreeDFEdgeData_getNumFaces(struct tfIoThreeDFEdgeDataHandle *handle, unsigned int *value)
Get the number of parent faces.
HRESULT tfIoThreeDFVertexData_getEdges(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges)
Get all parent edges.
HRESULT tfIoThreeDFStructure_getRadiusDef(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *vRadiusDef)
Get the default radius applied to vertices when generating meshes from point clouds.
HRESULT tfIoThreeDFMeshData_getFaces(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces)
Get all child faces.
HRESULT tfIoIOElement_init(struct tfIoIOElementHandle *handle)
Initialize an empty instance.
HRESULT tfIoThreeDFMeshData_getCentroid(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t **centroid)
Get the centroid of the mesh.
HRESULT tfIoThreeDFVertexData_setEdges(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edges, unsigned int numEdges)
Set all parent edges.
HRESULT tfIoThreeDFMeshData_getNumEdges(struct tfIoThreeDFMeshDataHandle *handle, unsigned int *value)
Get the number of child edges.
HRESULT tfIoIOElement_getKeys(struct tfIoIOElementHandle *handle, char ***keys)
Get the child element keys.
HRESULT tfIoThreeDFStructure_getNumVertices(struct tfIoThreeDFStructureHandle *handle, unsigned int *value)
Get the number of constituent vertices.
HRESULT tfIoThreeDFVertexData_hasStructure(struct tfIoThreeDFVertexDataHandle *handle, bool *hasStructure)
Test whether an instance has a parent structure.
HRESULT tfIoThreeDFEdgeData_getNumMeshes(struct tfIoThreeDFEdgeDataHandle *handle, unsigned int *value)
Get the number of parent meshes.
HRESULT tfIo_fromFile3DF(const char *filePath, struct tfIoThreeDFStructureHandle *strt)
Load a 3D format file.
HRESULT tfIoThreeDFMeshData_getNumFaces(struct tfIoThreeDFMeshDataHandle *handle, unsigned int *value)
Get the number of child faces.
HRESULT tfIoThreeDFVertexData_getMeshes(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes)
Get all parent meshes.
HRESULT tfIoThreeDFVertexData_destroy(struct tfIoThreeDFVertexDataHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFFaceData_getVertices(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFVertexDataHandle **vertices, unsigned int *numVertices)
Get all child vertices.
HRESULT tfIoThreeDFMeshData_getNumVertices(struct tfIoThreeDFMeshDataHandle *handle, unsigned int *value)
Get the number of child vertices.
HRESULT tfIoFIOModule_registerIOModule(struct tfIoFIOModuleHandle *handle)
Register a module for I/O events.
HRESULT tfIoThreeDFMeshData_inStructure(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn)
Test whether in a structure.
HRESULT tfIoIOElement_getNumChildren(struct tfIoIOElementHandle *handle, unsigned int *numChildren)
Get the number of child elements.
HRESULT tfIoThreeDFStructure_extend(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFStructureHandle *s)
Extend a structure.
HRESULT tfIoThreeDFEdgeData_inMesh(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn)
Test whether in a mesh.
HRESULT tfIoFIO_getIORootElement(struct tfIoIOElementHandle *handle)
Get or generate root element from current simulation state.
HRESULT tfIoThreeDFStructure_rotateAt(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *rotMat, tfFloatP_t *rotPt)
Rotate the structure about a point.
HRESULT tfIoThreeDFVertexData_setStructure(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Set the parent structure.
HRESULT tfIoThreeDFStructure_scaleS(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t scale)
Scale the structure uniformly about its centroid.
HRESULT tfIoThreeDFVertexData_inStructure(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFStructureHandle *structure, bool *isIn)
Test whether in a structure.
HRESULT tfIoThreeDFMeshData_translate(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *displacement)
Translate the mesh by a displacement.
HRESULT tfIoFIOStorageKeys_destroy(struct tfIoFIOStorageKeysHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFStructure_getNumEdges(struct tfIoThreeDFStructureHandle *handle, unsigned int *value)
Get the number of constituent edges.
HRESULT tfIoThreeDFFaceData_getNumEdges(struct tfIoThreeDFFaceDataHandle *handle, unsigned int *value)
Get the number of child edges.
HRESULT tfIo_mapImportParticleTypeId(unsigned int ptid, unsigned int *mapId)
Map a particle type id from currently imported file data to the created particle type on import.
HRESULT tfIoThreeDFFaceData_getStructure(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Get the parent structure.
HRESULT tfIoThreeDFMeshData_getStructure(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Get the parent structure.
HRESULT tfIoThreeDFMeshData_rotateAt(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *rotMat, tfFloatP_t *rotPt)
Rotate the mesh about a point.
HRESULT tfIoThreeDFStructure_scale(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *scales)
Scale the structure about its centroid.
HRESULT tfIoThreeDFRenderData_destroy(struct tfIoThreeDFRenderDataHandle *handle)
Destroy an instance.
HRESULT tfIoIOElement_getParent(struct tfIoIOElementHandle *handle, struct tfIoIOElementHandle *parent)
Get an instance parent.
HRESULT tfIoThreeDFRenderData_init(struct tfIoThreeDFRenderDataHandle *handle)
Initialize an instance.
HRESULT tfIoThreeDFStructure_toFile(struct tfIoThreeDFStructureHandle *handle, const char *format, const char *filePath)
Write to file.
HRESULT tfIoThreeDFVertexData_getPosition(struct tfIoThreeDFVertexDataHandle *handle, tfFloatP_t **position)
Get the global position.
HRESULT tfIoThreeDFVertexData_getNumFaces(struct tfIoThreeDFVertexDataHandle *handle, unsigned int *value)
Get the number of parent faces.
HRESULT tfIoThreeDFStructure_flush(struct tfIoThreeDFStructureHandle *handle)
Flush stucture. All scheduled processes are executed.
HRESULT tfIoThreeDFFaceData_getEdges(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFEdgeDataHandle **edges, unsigned int *numEdges)
Get all child edges.
HRESULT tfIoThreeDFFaceData_destroy(struct tfIoThreeDFFaceDataHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFStructure_fromFile(struct tfIoThreeDFStructureHandle *handle, const char *filePath)
Load from file.
HRESULT tfIo_toFile(const char *saveFilePath)
Save a simulation to file.
HRESULT tfIoIOElement_getValue(struct tfIoIOElementHandle *handle, char **value, unsigned int *numChars)
Get the instance value.
HRESULT tfIoThreeDFFaceData_hasStructure(struct tfIoThreeDFFaceDataHandle *handle, bool *hasStructure)
Test whether an instance has a parent structure.
HRESULT tfIoThreeDFFaceData_getNormal(struct tfIoThreeDFFaceDataHandle *handle, tfFloatP_t **normal)
Get the face normal vector.
HRESULT tfIoThreeDFVertexData_setId(struct tfIoThreeDFVertexDataHandle *handle, unsigned int value)
Set the ID.
HRESULT tfIoFIOStorageKeys_init(struct tfIoFIOStorageKeysHandle *handle)
Initialize an instance.
HRESULT tfIoThreeDFMeshData_scaleS(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t scale)
Scale the structure uniformly about its centroid.
HRESULT tfIoThreeDFMeshData_hasStructure(struct tfIoThreeDFMeshDataHandle *handle, bool *hasStructure)
Test whether an instance has a parent structure.
HRESULT tfIoThreeDFEdgeData_getId(struct tfIoThreeDFEdgeDataHandle *handle, int *value)
Get the ID, if any. Unique to its structure and type. -1 if not set.
HRESULT tfIoThreeDFStructure_translate(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *displacement)
Translate the structure by a displacement.
HRESULT tfIoThreeDFEdgeData_getMeshes(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes)
Get all parent meshes.
HRESULT tfIoThreeDFEdgeData_getVertices(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFVertexDataHandle *va, struct tfIoThreeDFVertexDataHandle *vb)
Get all child vertices.
HRESULT tfIoThreeDFVertexData_getId(struct tfIoThreeDFVertexDataHandle *handle, int *value)
Get the ID, if any. Unique to its structure and type. -1 if not set.
HRESULT tfIoThreeDFStructure_getNumFaces(struct tfIoThreeDFStructureHandle *handle, unsigned int *value)
Get the number of constituent faces.
HRESULT tfIoThreeDFStructure_addMesh(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh)
Add a mesh and all constituent data.
HRESULT tfIoThreeDFStructure_hasMesh(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn)
Test whether a mesh is a constituent.
HRESULT tfIoThreeDFStructure_getMeshes(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFMeshDataHandle **meshes, unsigned int *numMeshes)
Get all constituent meshes.
HRESULT tfIoThreeDFMeshData_setName(struct tfIoThreeDFMeshDataHandle *handle, const char *name)
Set the mesh name.
HRESULT tfIoFIOModule_destroy(struct tfIoFIOModuleHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFEdgeData_getFaces(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces)
Get all parent faces.
HRESULT tfIoThreeDFFaceData_getNumMeshes(struct tfIoThreeDFFaceDataHandle *handle, unsigned int *value)
Get the number of parent meshes.
HRESULT tfIoThreeDFFaceData_hasVertex(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn)
Test whether has a vertex.
HRESULT tfIoThreeDFVertexData_inFace(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn)
Test whether in a face.
HRESULT tfIoThreeDFFaceData_setEdges(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edges, unsigned int numEdges)
Set all child edges.
HRESULT tfIoThreeDFMeshData_getRenderData(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFRenderDataHandle *renderData)
Get render data.
HRESULT tfIoThreeDFEdgeData_setVertices(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFVertexDataHandle *va, struct tfIoThreeDFVertexDataHandle *vb)
Set all child vertices.
HRESULT tfIoThreeDFStructure_removeEdge(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge)
Remove a edge and all constituent data.
HRESULT tfIoThreeDFMeshData_hasVertex(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFVertexDataHandle *vertex, bool *isIn)
Test whether has a vertex.
HRESULT tfIoThreeDFFaceData_setId(struct tfIoThreeDFFaceDataHandle *handle, unsigned int value)
Set the ID.
HRESULT tfIoThreeDFEdgeData_init(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFVertexDataHandle *va, struct tfIoThreeDFVertexDataHandle *vb)
Initialize an instance.
HRESULT tfIoIOElement_destroy(struct tfIoIOElementHandle *handle)
Destroy an instance.
HRESULT tfIoThreeDFMeshData_getName(struct tfIoThreeDFMeshDataHandle *handle, char **name, unsigned int *numChars)
Get the mesh name.
HRESULT tfIoThreeDFEdgeData_setFaces(struct tfIoThreeDFEdgeDataHandle *handle, struct tfIoThreeDFFaceDataHandle *faces, unsigned int numFaces)
Set all parent faces.
HRESULT tfIoThreeDFStructure_translateTo(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t *position)
Translate the structure to a position.
HRESULT tfIoThreeDFStructure_getFaces(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces)
Get all constituent faces.
HRESULT tfIoThreeDFVertexData_getNumMeshes(struct tfIoThreeDFVertexDataHandle *handle, unsigned int *value)
Get the number of parent meshes.
HRESULT tfIoThreeDFFaceData_getId(struct tfIoThreeDFFaceDataHandle *handle, int *value)
Get the ID, if any. Unique to its structure and type. -1 if not set.
HRESULT tfIoThreeDFMeshData_init(struct tfIoThreeDFMeshDataHandle *handle)
Initialize an instance.
HRESULT tfIoThreeDFMeshData_scaleFromS(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t scale, tfFloatP_t *scalePt)
Scale the mesh uniformly about a point.
HRESULT tfIoThreeDFVertexData_setPosition(struct tfIoThreeDFVertexDataHandle *handle, tfFloatP_t *position)
Set the global position.
HRESULT tfIoThreeDFMeshData_translateTo(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *position)
Translate the mesh to a position.
HRESULT tfIoFIO_hasImport(bool *value)
Test whether imported data is available.
HRESULT tfIo_mapImportParticleId(unsigned int pid, unsigned int *mapId)
Map a particle id from currently imported file data to the created particle on import.
HRESULT tfIoIOElement_setValue(struct tfIoIOElementHandle *handle, const char *value)
Set the instance value.
HRESULT tfIoThreeDFStructure_scaleFromS(struct tfIoThreeDFStructureHandle *handle, tfFloatP_t scale, tfFloatP_t *scalePt)
Scale the structure uniformly about a point.
HRESULT tfIoIOElement_hasParent(struct tfIoIOElementHandle *handle, bool *hasParent)
Test whether an instance has a parent element.
HRESULT tfIoThreeDFFaceData_inMesh(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFMeshDataHandle *mesh, bool *isIn)
Test whether in a mesh.
HRESULT tfIoThreeDFMeshData_getVertices(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFVertexDataHandle **vertices, unsigned int *numVertices)
Get all child vertices.
HRESULT tfIoIOElement_setType(struct tfIoIOElementHandle *handle, const char *type)
Set the instance value type.
HRESULT tfIoThreeDFStructure_getNumMeshes(struct tfIoThreeDFStructureHandle *handle, unsigned int *value)
Get the number of constituent meshes.
HRESULT tfIoThreeDFFaceData_hasEdge(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn)
Test whether has an edge.
HRESULT tfIoThreeDFMeshData_hasRenderData(struct tfIoThreeDFMeshDataHandle *handle, bool *hasData)
Test whether has render data.
HRESULT tfIoIOElement_getChild(struct tfIoIOElementHandle *handle, const char *key, struct tfIoIOElementHandle *child)
Get a child.
HRESULT tfIoThreeDFFaceData_setMeshes(struct tfIoThreeDFFaceDataHandle *handle, struct tfIoThreeDFMeshDataHandle *meshes, unsigned int numMeshes)
Set all parent meshes.
HRESULT tfIoThreeDFVertexData_inEdge(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn)
Test whether in an edge.
HRESULT tfIoThreeDFVertexData_getFaces(struct tfIoThreeDFVertexDataHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int *numFaces)
Get all parent faces.
HRESULT tfIoThreeDFMeshData_hasFace(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFFaceDataHandle *face, bool *isIn)
Test whether has a face.
HRESULT tfIoThreeDFStructure_hasEdge(struct tfIoThreeDFStructureHandle *handle, struct tfIoThreeDFEdgeDataHandle *edge, bool *isIn)
Test whether an edge is a constituent.
HRESULT tfIoThreeDFMeshData_scaleFrom(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *scales, tfFloatP_t *scalePt)
Scale the mesh about a point.
HRESULT tfIoThreeDFMeshData_setId(struct tfIoThreeDFMeshDataHandle *handle, unsigned int value)
Set the ID.
HRESULT tfIoThreeDFVertexData_getNumEdges(struct tfIoThreeDFVertexDataHandle *handle, unsigned int *value)
Get the number of parent edges.
HRESULT tfIoThreeDFMeshData_setStructure(struct tfIoThreeDFMeshDataHandle *handle, struct tfIoThreeDFStructureHandle *structure)
Set the parent structure.
HRESULT tfIoThreeDFMeshData_scale(struct tfIoThreeDFMeshDataHandle *handle, tfFloatP_t *scales)
Scale the structure about its centroid.