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 File Reference
#include <tf_port_c.h>
#include "tfCSurface.h"
#include "tfCBody.h"
Include dependency graph for tfC_mesh_create.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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 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.
 
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.
 

Function Documentation

◆ tfVertexSolverCreateHex2DMesh()

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.

Requires an initialized solver.

Parameters
stypesurface type
startPosstarting position
num_1number of elements in the first direction
num_2number of elements in the second direction
hexRadradius of hexagon vertices
ax_1axis name of the first direction (e.g., "x")
ax_2axis name of the second direction
resultconstructed surfaces

◆ tfVertexSolverCreateHex3DMesh()

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.

Requires an initialized solver.

Surfaces are placed in the plane of the first and second directions, and extruded along the third direction.

Parameters
btypebody type
stypesurface type
startPosstarting position
num_1number of elements in the first direction
num_2number of elements in the second direction
num_3number of elements in the third directionnumber of elements in the third direction
hexRadradius of hexagon vertices
hex_heightextrusion length per body
ax_1axis name of the first direction (e.g., "x")
ax_2axis name of the second direction
resultconstructed bodies

◆ tfVertexSolverCreatePLPDMesh()

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.

Requires an initialized solver.

Parameters
btypebody type
stypesurface type
startPosstarting position
num_1number of elements in the first direction
num_2number of elements in the second direction
num_3number of elements in the third direction
len_1length of each element in the first direction
len_2length of each element in the second direction
len_3length of each element in the third direction
ax_1axis name of the first direction (e.g., "x")
ax_2axis name of the second direction
resultconstructed bodies

◆ tfVertexSolverCreateQuadMesh()

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.

Requires an initialized solver.

Parameters
stypesurface type
startPosstarting position
num_1number of elements in the first direction
num_2number of elements in the second direction
len_1length of each element in the first direction
len_2length of each element in the second direction
ax_1axis name of the first direction (e.g., "x")
ax_2axis name of the second direction
resultconstructed surfaces