Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfC_mesh_create.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 and Tien Comlekoglu
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_VERTEX_SOLVER_TFC_MESH_CREATE_H_
26#define _WRAPS_C_VERTEX_SOLVER_TFC_MESH_CREATE_H_
27
28#include <tf_port_c.h>
29
30#include "tfCSurface.h"
31#include "tfCBody.h"
32
33
35// Module functions //
37
38
56 tfFloatP_t *startPos,
57 unsigned int num_1,
58 unsigned int num_2,
59 tfFloatP_t len_1,
60 tfFloatP_t len_2,
61 const char *ax_1,
62 const char *ax_2,
64);
65
85 struct tfVertexSolverBodyTypeHandle *btype,
87 tfFloatP_t *startPos,
88 unsigned int num_1,
89 unsigned int num_2,
90 unsigned int num_3,
91 tfFloatP_t len_1,
92 tfFloatP_t len_2,
93 tfFloatP_t len_3,
94 const char *ax_1,
95 const char *ax_2,
96 struct tfVertexSolverBodyHandleHandle **result
97);
98
114 struct tfVertexSolverSurfaceTypeHandle *stype,
115 tfFloatP_t *startPos,
116 unsigned int num_1,
117 unsigned int num_2,
118 tfFloatP_t hexRad,
119 const char *ax_1,
120 const char *ax_2,
122);
123
145 struct tfVertexSolverBodyTypeHandle *btype,
147 tfFloatP_t *startPos,
148 unsigned int num_1,
149 unsigned int num_2,
150 unsigned int num_3,
151 tfFloatP_t hexRad,
152 tfFloatP_t hex_height,
153 const char *ax_1,
154 const char *ax_2,
155 struct tfVertexSolverBodyHandleHandle **result
156);
157
158#endif // _WRAPS_C_VERTEX_SOLVER_TFC_MESH_CREATE_H_
Handle to a models::vertex::BodyHandle instance.
Definition tfCBody.h:57
Handle to a models::vertex::BodyType instance.
Definition tfCBody.h:65
Handle to a models::vertex::SurfaceHandle instance.
Definition tfCSurface.h:68
Handle to a models::vertex::SurfaceType instance.
Definition tfCSurface.h:76
HRESULT tfVertexSolverCreateQuadMesh(struct tfVertexSolverSurfaceTypeHandle *stype, tfFloatP_t *startPos, unsigned int num_1, unsigned int num_2, tfFloatP_t len_1, tfFloatP_t len_2, const char *ax_1, const char *ax_2, struct tfVertexSolverSurfaceHandleHandle **result)
Populate the mesh with quadrilateral surfaces.
HRESULT tfVertexSolverCreatePLPDMesh(struct tfVertexSolverBodyTypeHandle *btype, struct tfVertexSolverSurfaceTypeHandle *stype, tfFloatP_t *startPos, unsigned int num_1, unsigned int num_2, unsigned int num_3, tfFloatP_t len_1, tfFloatP_t len_2, tfFloatP_t len_3, const char *ax_1, const char *ax_2, struct tfVertexSolverBodyHandleHandle **result)
Populate the mesh with parallelepiped bodies.
HRESULT tfVertexSolverCreateHex3DMesh(struct tfVertexSolverBodyTypeHandle *btype, struct tfVertexSolverSurfaceTypeHandle *stype, tfFloatP_t *startPos, unsigned int num_1, unsigned int num_2, unsigned int num_3, tfFloatP_t hexRad, tfFloatP_t hex_height, const char *ax_1, const char *ax_2, struct tfVertexSolverBodyHandleHandle **result)
Populate the mesh with bodies from extruded hexagonal surfaces.
HRESULT tfVertexSolverCreateHex2DMesh(struct tfVertexSolverSurfaceTypeHandle *stype, tfFloatP_t *startPos, unsigned int num_1, unsigned int num_2, tfFloatP_t hexRad, const char *ax_1, const char *ax_2, struct tfVertexSolverSurfaceHandleHandle **result)
Populate the mesh with hexagonal surfaces.