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

Go to the source code of this file.

Functions

HRESULT tfVertexSolverVertexForce (struct tfVertexSolverVertexHandleHandle *v, tfFloatP_t *f)
 Calculate the force on a vertex.
 
HRESULT tfVertexSolverInit ()
 Initialize the solver.
 
HRESULT tfVertexSolverCompact ()
 Reduce internal buffers and storage.
 
HRESULT tfVertexSolverEngineLock ()
 Locks the engine for thread-safe engine operations.
 
HRESULT tfVertexSolverEngineUnlock ()
 Unlocks the engine for thread-safe engine operations.
 
HRESULT tfVertexSolverIsDirty (bool *result)
 Test whether the current mesh state needs updated.
 
HRESULT tfVertexSolverSetDirty (bool isDirty)
 Set whether the current mesh state needs updated.
 
HRESULT tfVertexSolverRegisterBodyType (struct tfVertexSolverBodyTypeHandle *type)
 Register a body type.
 
HRESULT tfVertexSolverRegisterSurfaceType (struct tfVertexSolverSurfaceTypeHandle *type)
 Register a surface type.
 
HRESULT tfVertexSolverGetBodyType (const unsigned int &typeId, struct tfVertexSolverBodyTypeHandle *type)
 Get the body type by id.
 
HRESULT tfVertexSolverGetSurfaceType (const unsigned int &typeId, struct tfVertexSolverSurfaceTypeHandle *type)
 Get the surface type by id.
 
HRESULT tfVertexSolverNumBodyTypes (int *numTypes)
 Get the number of registered body types.
 
HRESULT tfVertexSolverNumSurfaceTypes (int *numTypes)
 Get the number of registered surface types.
 
HRESULT tfVertexSolverPositionChanged ()
 Update internal data due to a change in position.
 
HRESULT tfVertexSolverUpdate (bool force)
 Update the solver if dirty.
 

Function Documentation

◆ tfVertexSolverGetBodyType()

HRESULT tfVertexSolverGetBodyType ( const unsigned int & typeId,
struct tfVertexSolverBodyTypeHandle * type )

Get the body type by id.

Parameters
typeIdtype id
typehandle to populate

◆ tfVertexSolverGetSurfaceType()

HRESULT tfVertexSolverGetSurfaceType ( const unsigned int & typeId,
struct tfVertexSolverSurfaceTypeHandle * type )

Get the surface type by id.

Parameters
typeIdtype id
typehandle to populate

◆ tfVertexSolverIsDirty()

HRESULT tfVertexSolverIsDirty ( bool * result)

Test whether the current mesh state needs updated.

Parameters
resultresult of the test

◆ tfVertexSolverNumBodyTypes()

HRESULT tfVertexSolverNumBodyTypes ( int * numTypes)

Get the number of registered body types.

Parameters
numTypesnumber of registered body types

◆ tfVertexSolverNumSurfaceTypes()

HRESULT tfVertexSolverNumSurfaceTypes ( int * numTypes)

Get the number of registered surface types.

Parameters
numTypesnumber of registered surface types

◆ tfVertexSolverRegisterBodyType()

HRESULT tfVertexSolverRegisterBodyType ( struct tfVertexSolverBodyTypeHandle * type)

Register a body type.

Parameters
typea body type

◆ tfVertexSolverRegisterSurfaceType()

HRESULT tfVertexSolverRegisterSurfaceType ( struct tfVertexSolverSurfaceTypeHandle * type)

Register a surface type.

Parameters
typea surface type

◆ tfVertexSolverSetDirty()

HRESULT tfVertexSolverSetDirty ( bool isDirty)

Set whether the current mesh state needs updated.

Parameters
isDirtyflag indicating whether the current mesh state needs updated

◆ tfVertexSolverUpdate()

HRESULT tfVertexSolverUpdate ( bool force)

Update the solver if dirty.

Parameters
forceflag to force an update and ignore whether the solver is dirty

◆ tfVertexSolverVertexForce()

HRESULT tfVertexSolverVertexForce ( struct tfVertexSolverVertexHandleHandle * v,
tfFloatP_t * f )

Calculate the force on a vertex.

Parameters
vvertex
fforce