Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfCMeshQuality.h File Reference
#include <tf_port_c.h>
Include dependency graph for tfCMeshQuality.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tfVertexSolverMeshQualityHandle
 Handle to a models::vertex::MeshQuality instance. More...
 

Functions

HRESULT tfVertexSolverMeshQuality_init (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t vertexMergeDistCf, tfFloatP_t surfaceDemoteAreaCf, tfFloatP_t bodyDemoteVolumeCf, tfFloatP_t _edgeSplitDistCf)
 Initialize an instance.
 
HRESULT tfVertexSolverMeshQuality_destroy (struct tfVertexSolverMeshQualityHandle *handle)
 Destroy an instance.
 
HRESULT tfVertexSolverMeshQuality_toString (struct tfVertexSolverMeshQualityHandle *handle, char **str, unsigned int *numChar)
 Get a JSON string representation.
 
HRESULT tfVertexSolverMeshQuality_doQuality (struct tfVertexSolverMeshQualityHandle *handle)
 Perform quality operations work.
 
HRESULT tfVertexSolverMeshQuality_working (struct tfVertexSolverMeshQualityHandle *handle, bool *working)
 Test whether quality operations are being done.
 
HRESULT tfVertexSolverMeshQuality_getVertexMergeDistance (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t *val)
 Get the distance below which two vertices are scheduled for merging.
 
HRESULT tfVertexSolverMeshQuality_setVertexMergeDistance (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t val)
 Set the distance below which two vertices are scheduled for merging.
 
HRESULT tfVertexSolverMeshQuality_getSurfaceDemoteArea (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t *val)
 Get the area below which a surface is scheduled to become a vertex.
 
HRESULT tfVertexSolverMeshQuality_setSurfaceDemoteArea (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t val)
 Set the area below which a surface is scheduled to become a vertex.
 
HRESULT tfVertexSolverMeshQuality_getBodyDemoteVolume (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t *val)
 Get the volume below which a body is scheduled to become a vertex.
 
HRESULT tfVertexSolverMeshQuality_setBodyDemoteVolume (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t val)
 Set the volume below which a body is scheduled to become a vertex.
 
HRESULT tfVertexSolverMeshQuality_getEdgeSplitDist (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t *val)
 Get the distance at which two vertices are seperated when a vertex is split.
 
HRESULT tfVertexSolverMeshQuality_setEdgeSplitDist (struct tfVertexSolverMeshQualityHandle *handle, tfFloatP_t val)
 Set the distance at which two vertices are seperated when a vertex is split.
 
HRESULT tfVertexSolverMeshQuality_getCollision2D (struct tfVertexSolverMeshQualityHandle *handle, bool *collision2D)
 Get whether 2D collisions are implemented.
 
HRESULT tfVertexSolverMeshQuality_setCollision2D (struct tfVertexSolverMeshQualityHandle *handle, bool collision2D)
 Set whether 2D collisions are implemented.
 
HRESULT tfVertexSolverMeshQuality_excludeVertex (struct tfVertexSolverMeshQualityHandle *handle, const unsigned int &id)
 Exclude a vertex from quality operations.
 
HRESULT tfVertexSolverMeshQuality_excludeSurface (struct tfVertexSolverMeshQualityHandle *handle, const unsigned int &id)
 Exclude a surface from quality operations.
 
HRESULT tfVertexSolverMeshQuality_excludeBody (struct tfVertexSolverMeshQualityHandle *handle, const unsigned int &id)
 Exclude a body from quality operations.
 
HRESULT tfVertexSolverMeshQuality_includeVertex (struct tfVertexSolverMeshQualityHandle *handle, const unsigned int &id)
 Include a vertex from quality operations.
 
HRESULT tfVertexSolverMeshQuality_includeSurface (struct tfVertexSolverMeshQualityHandle *handle, const unsigned int &id)
 Include a surface from quality operations.
 
HRESULT tfVertexSolverMeshQuality_includeBody (struct tfVertexSolverMeshQualityHandle *handle, const unsigned int &id)
 Include a body from quality operations.
 

Function Documentation

◆ tfVertexSolverMeshQuality_destroy()

HRESULT tfVertexSolverMeshQuality_destroy ( struct tfVertexSolverMeshQualityHandle * handle)

Destroy an instance.

Parameters
handlepopulated handle

◆ tfVertexSolverMeshQuality_doQuality()

HRESULT tfVertexSolverMeshQuality_doQuality ( struct tfVertexSolverMeshQualityHandle * handle)

Perform quality operations work.

Parameters
handlepopulated handle

◆ tfVertexSolverMeshQuality_excludeBody()

HRESULT tfVertexSolverMeshQuality_excludeBody ( struct tfVertexSolverMeshQualityHandle * handle,
const unsigned int & id )

Exclude a body from quality operations.

Parameters
handlepopulated handle
idbody id

◆ tfVertexSolverMeshQuality_excludeSurface()

HRESULT tfVertexSolverMeshQuality_excludeSurface ( struct tfVertexSolverMeshQualityHandle * handle,
const unsigned int & id )

Exclude a surface from quality operations.

Parameters
handlepopulated handle
idsurface id

◆ tfVertexSolverMeshQuality_excludeVertex()

HRESULT tfVertexSolverMeshQuality_excludeVertex ( struct tfVertexSolverMeshQualityHandle * handle,
const unsigned int & id )

Exclude a vertex from quality operations.

Parameters
handlepopulated handle
idvertex id

◆ tfVertexSolverMeshQuality_getBodyDemoteVolume()

HRESULT tfVertexSolverMeshQuality_getBodyDemoteVolume ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t * val )

Get the volume below which a body is scheduled to become a vertex.

Parameters
handlepopulated handle
valvolume below which a body is scheduled to become a vertex

◆ tfVertexSolverMeshQuality_getCollision2D()

HRESULT tfVertexSolverMeshQuality_getCollision2D ( struct tfVertexSolverMeshQualityHandle * handle,
bool * collision2D )

Get whether 2D collisions are implemented.

Parameters
handlepopulated handle
collision2Dwhether 2D collisions are implemented

◆ tfVertexSolverMeshQuality_getEdgeSplitDist()

HRESULT tfVertexSolverMeshQuality_getEdgeSplitDist ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t * val )

Get the distance at which two vertices are seperated when a vertex is split.

Parameters
handlepopulated handle
valdistance at which two vertices are seperated when a vertex is split

◆ tfVertexSolverMeshQuality_getSurfaceDemoteArea()

HRESULT tfVertexSolverMeshQuality_getSurfaceDemoteArea ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t * val )

Get the area below which a surface is scheduled to become a vertex.

Parameters
handlepopulated handle
valarea below which a surface is scheduled to become a vertex

◆ tfVertexSolverMeshQuality_getVertexMergeDistance()

HRESULT tfVertexSolverMeshQuality_getVertexMergeDistance ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t * val )

Get the distance below which two vertices are scheduled for merging.

Parameters
handlepopulated handle
valdistance below which two vertices are scheduled for merging

◆ tfVertexSolverMeshQuality_includeBody()

HRESULT tfVertexSolverMeshQuality_includeBody ( struct tfVertexSolverMeshQualityHandle * handle,
const unsigned int & id )

Include a body from quality operations.

Unless otherwise specified, all bodies are subject to operations.

Parameters
handlepopulated handle
idbody id

◆ tfVertexSolverMeshQuality_includeSurface()

HRESULT tfVertexSolverMeshQuality_includeSurface ( struct tfVertexSolverMeshQualityHandle * handle,
const unsigned int & id )

Include a surface from quality operations.

Unless otherwise specified, all surfaces are subject to operations.

Parameters
handlepopulated handle
idsurface id

◆ tfVertexSolverMeshQuality_includeVertex()

HRESULT tfVertexSolverMeshQuality_includeVertex ( struct tfVertexSolverMeshQualityHandle * handle,
const unsigned int & id )

Include a vertex from quality operations.

Unless otherwise specified, all vertices are subject to operations.

Parameters
handlepopulated handle
idvertex id

◆ tfVertexSolverMeshQuality_init()

HRESULT tfVertexSolverMeshQuality_init ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t vertexMergeDistCf,
tfFloatP_t surfaceDemoteAreaCf,
tfFloatP_t bodyDemoteVolumeCf,
tfFloatP_t _edgeSplitDistCf )

Initialize an instance.

Parameters
handehandle to populate
vertexMergeDistCf
surfaceDemoteAreaCf
bodyDemoteVolumeCf
_edgeSplitDistCf

◆ tfVertexSolverMeshQuality_setBodyDemoteVolume()

HRESULT tfVertexSolverMeshQuality_setBodyDemoteVolume ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t val )

Set the volume below which a body is scheduled to become a vertex.

Parameters
handlepopulated handle
valvolume below which a body is scheduled to become a vertex

◆ tfVertexSolverMeshQuality_setCollision2D()

HRESULT tfVertexSolverMeshQuality_setCollision2D ( struct tfVertexSolverMeshQualityHandle * handle,
bool collision2D )

Set whether 2D collisions are implemented.

Parameters
handlepopulated handle
collision2Dwhether 2D collisions are implemented

◆ tfVertexSolverMeshQuality_setEdgeSplitDist()

HRESULT tfVertexSolverMeshQuality_setEdgeSplitDist ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t val )

Set the distance at which two vertices are seperated when a vertex is split.

Parameters
handlepopulated handle
valdistance at which two vertices are seperated when a vertex is split

◆ tfVertexSolverMeshQuality_setSurfaceDemoteArea()

HRESULT tfVertexSolverMeshQuality_setSurfaceDemoteArea ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t val )

Set the area below which a surface is scheduled to become a vertex.

Parameters
handlepopulated handle
valarea below which a surface is scheduled to become a vertex

◆ tfVertexSolverMeshQuality_setVertexMergeDistance()

HRESULT tfVertexSolverMeshQuality_setVertexMergeDistance ( struct tfVertexSolverMeshQualityHandle * handle,
tfFloatP_t val )

Set the distance below which two vertices are scheduled for merging.

Parameters
handlepopulated handle
valdistance below which two vertices are scheduled for merging

◆ tfVertexSolverMeshQuality_toString()

HRESULT tfVertexSolverMeshQuality_toString ( struct tfVertexSolverMeshQualityHandle * handle,
char ** str,
unsigned int * numChar )

Get a JSON string representation.

Parameters
handlepopulated handle
strJSON string representation
numCharnumber of chars

◆ tfVertexSolverMeshQuality_working()

HRESULT tfVertexSolverMeshQuality_working ( struct tfVertexSolverMeshQualityHandle * handle,
bool * working )

Test whether quality operations are being done.

Parameters
handlepopulated handle
workingresult of the test