|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|


Go to the source code of this file.
Data Structures | |
| struct | tfVertexSolverSurfaceTypeStyleSpec |
| Surface type style definition in Tissue Forge C. More... | |
| struct | tfVertexSolverSurfaceTypeSpec |
| Surface type definition in Tissue Forge C. More... | |
| struct | tfVertexSolverSurfaceHandleHandle |
| Handle to a models::vertex::SurfaceHandle instance. More... | |
| struct | tfVertexSolverSurfaceTypeHandle |
| Handle to a models::vertex::SurfaceType instance. More... | |
Functions | |
| struct tfVertexSolverSurfaceTypeSpec | tfVertexSolverSurfaceTypeSpec_init () |
| Get a default definition. | |
| struct tfVertexSolverSurfaceTypeStyleSpec | tfVertexSolverSurfaceTypeStyleSpec_init () |
| Get a default definition. | |
| HRESULT | tfVertexSolverSurfaceHandle_init (struct tfVertexSolverSurfaceHandleHandle *handle, int id) |
| Initialize an instance. | |
| HRESULT | tfVertexSolverSurfaceHandle_fromString (struct tfVertexSolverSurfaceHandleHandle *handle, const char *s) |
| Create an instance from a JSON string representation. | |
| HRESULT | tfVertexSolverSurfaceHandle_destroy (struct tfVertexSolverSurfaceHandleHandle *handle) |
| Destroy an instance. | |
| HRESULT | tfVertexSolverSurfaceHandle_getId (struct tfVertexSolverSurfaceHandleHandle *handle, int *objId) |
| Get the id. | |
| HRESULT | tfVertexSolverSurfaceHandle_definesBody (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *b, bool *result) |
| Test whether a surface defines a body. | |
| HRESULT | tfVertexSolverSurfaceHandle_definedByVertex (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v, bool *result) |
| Test whether a surface is defined by a vertex. | |
| HRESULT | tfVertexSolverSurfaceHandle_objType (struct tfVertexSolverSurfaceHandleHandle *handle, unsigned int *label) |
| Get the mesh object type. | |
| HRESULT | tfVertexSolverSurfaceHandle_destroySurface (struct tfVertexSolverSurfaceHandleHandle *handle) |
| Destroy the surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_destroySurfaces (struct tfVertexSolverSurfaceHandleHandle **handles, unsigned int numObjs) |
| Destroy surfaces. | |
| HRESULT | tfVertexSolverSurfaceHandle_destroySurfaceC (struct tfVertexSolverSurfaceHandleHandle *handle) |
| Destroy an instance. | |
| HRESULT | tfVertexSolverSurfaceHandle_validate (struct tfVertexSolverSurfaceHandleHandle *handle, bool *result) |
| Validate the body. | |
| HRESULT | tfVertexSolverSurfaceHandle_positionChanged (struct tfVertexSolverSurfaceHandleHandle *handle) |
| Update internal data due to a change in position. | |
| HRESULT | tfVertexSolverSurfaceHandle_str (struct tfVertexSolverSurfaceHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a summary string. | |
| HRESULT | tfVertexSolverSurfaceHandle_toString (struct tfVertexSolverSurfaceHandleHandle *handle, char **str, unsigned int *numChars) |
| Get a JSON string representation. | |
| HRESULT | tfVertexSolverSurfaceHandle_addVertex (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v) |
| Add a vertex. | |
| HRESULT | tfVertexSolverSurfaceHandle_insertVertexAt (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v, const int &idx) |
| Insert a vertex at a location in the list of vertices. | |
| HRESULT | tfVertexSolverSurfaceHandle_insertVertexBefore (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v, struct tfVertexSolverVertexHandleHandle *before) |
| Insert a vertex before another vertex. | |
| HRESULT | tfVertexSolverSurfaceHandle_insertVertexBetween (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *toInsert, struct tfVertexSolverVertexHandleHandle *v1, struct tfVertexSolverVertexHandleHandle *v2) |
| Insert a vertex between two vertices. | |
| HRESULT | tfVertexSolverSurfaceHandle_removeVertex (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v) |
| Remove a vertex. | |
| HRESULT | tfVertexSolverSurfaceHandle_replaceVertexAt (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *toInsert, const int &idx) |
| Replace a vertex at a location in the list of vertices. | |
| HRESULT | tfVertexSolverSurfaceHandle_replaceVertexWith (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *toInsert, struct tfVertexSolverVertexHandleHandle *toRemove) |
| Replace a vertex with another vertex. | |
| HRESULT | tfVertexSolverSurfaceHandle_addBody (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *b) |
| Add a body. | |
| HRESULT | tfVertexSolverSurfaceHandle_removeBody (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *b) |
| Remove a body. | |
| HRESULT | tfVertexSolverSurfaceHandle_replaceBodyAt (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *toInsert, const int &idx) |
| Replace a body at a location in the list of bodies. | |
| HRESULT | tfVertexSolverSurfaceHandle_replaceBodyWith (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *toInsert, struct tfVertexSolverBodyHandleHandle *toRemove) |
| Replace a body with another body. | |
| HRESULT | tfVertexSolverSurfaceHandle_refreshBodies (struct tfVertexSolverSurfaceHandleHandle *handle) |
| Refresh internal ordering of defined bodies. | |
| HRESULT | tfVertexSolverSurfaceHandle_getType (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceTypeHandle *stype) |
| Get the surface type. | |
| HRESULT | tfVertexSolverSurfaceHandle_become (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceTypeHandle *stype) |
| Become a different type. | |
| HRESULT | tfVertexSolverSurfaceHandle_getBodies (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle **objs, int *numObjs) |
| Get the bodies defined by the surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_getVertices (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle **objs, int *numObjs) |
| Get the vertices that define the surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_findVertex (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *dir, struct tfVertexSolverVertexHandleHandle *result) |
| Find a vertex that defines this surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_findBody (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *dir, struct tfVertexSolverBodyHandleHandle *result) |
| Find a body that this surface defines. | |
| HRESULT | tfVertexSolverSurfaceHandle_neighborVertices (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v, struct tfVertexSolverVertexHandleHandle *v1, struct tfVertexSolverVertexHandleHandle *v2) |
| Connected vertices on the same surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_neighborSurfaces (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceHandleHandle **objs, int *numObjs) |
| Connected surfaces on the same body. | |
| HRESULT | tfVertexSolverSurfaceHandle_connectedSurfacesS (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle **verts, unsigned int numVerts, struct tfVertexSolverSurfaceHandleHandle **objs, int *numObjs) |
| Surfaces that share at least one vertex in a set of vertices. | |
| HRESULT | tfVertexSolverSurfaceHandle_connectedSurfaces (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceHandleHandle **objs, int *numObjs) |
| Surfaces that share at least one vertex. | |
| HRESULT | tfVertexSolverSurfaceHandle_connectingVertices (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceHandleHandle *other, struct tfVertexSolverVertexHandleHandle **objs, int *numObjs) |
| Vertices defining this and another surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_contiguousVertexLabels (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceHandleHandle *other, unsigned int **labels, int *numLabels) |
| Get the integer labels of the contiguous vertices that this surface shares with another surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_sharedContiguousVertices (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceHandleHandle *other, unsigned int edgeLabel, struct tfVertexSolverVertexHandleHandle **objs, int *numObjs) |
| Get the vertices of a contiguous shared edge with another surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_getNormal (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t **result) |
| Get the surface normal. | |
| HRESULT | tfVertexSolverSurfaceHandle_getUnnormalizedNormal (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t **result) |
| Get the surface unnormalized normal. | |
| HRESULT | tfVertexSolverSurfaceHandle_getCentroid (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t **result) |
| Get the centroid. | |
| HRESULT | tfVertexSolverSurfaceHandle_getVelocity (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t **result) |
| Get the velocity, calculated as the velocity of the centroid. | |
| HRESULT | tfVertexSolverSurfaceHandle_getArea (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *result) |
| Get the area. | |
| HRESULT | tfVertexSolverSurfaceHandle_getPerimeter (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *result) |
| Get the perimeter. | |
| HRESULT | tfVertexSolverSurfaceHandle_getDensity (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *result) |
| Get the mass density; only used in 2D simulation. | |
| HRESULT | tfVertexSolverSurfaceHandle_setDensity (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t density) |
| Set the mass density; only used in 2D simulation. | |
| HRESULT | tfVertexSolverSurfaceHandle_getMass (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *result) |
| Get the mass; only used in 2D simulation. | |
| HRESULT | tfVertexSolverSurfaceHandle_volumeSense (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *body, tfFloatP_t *result) |
| Get the sign of the volume contribution to a body that this surface contributes. | |
| HRESULT | tfVertexSolverSurfaceHandle_getVolumeContr (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *body, tfFloatP_t *result) |
| Get the volume that this surface contributes to a body. | |
| HRESULT | tfVertexSolverSurfaceHandle_getOutwardNormal (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverBodyHandleHandle *body, tfFloatP_t **result) |
| Get the outward facing normal w.r.t. a body. | |
| HRESULT | tfVertexSolverSurfaceHandle_getVertexArea (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v, tfFloatP_t *result) |
| Get the area that a vertex contributes to this surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_getVertexMass (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v, tfFloatP_t *result) |
| Get the mass contribution of a vertex to this surface; only used in 2D simulation. | |
| HRESULT | tfVertexSolverSurfaceHandle_hasStyle (struct tfVertexSolverSurfaceHandleHandle *handle, bool *result) |
| Test whether the surface has a style. | |
| HRESULT | tfVertexSolverSurfaceHandle_getStyle (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfRenderingStyleHandle *result) |
| Get the surface style. | |
| HRESULT | tfVertexSolverSurfaceHandle_setStyle (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfRenderingStyleHandle *s) |
| Set the surface style. | |
| HRESULT | tfVertexSolverSurfaceHandle_normalDistance (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *pos, tfFloatP_t *result) |
| Get the normal distance to a point; negative distance means that the point is on the inner side. | |
| HRESULT | tfVertexSolverSurfaceHandle_isOutside (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *pos, bool *result) |
| Test whether a point is on the outer side. | |
| HRESULT | tfVertexSolverSurfaceHandle_contains (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *pos, bool *result, struct tfVertexSolverVertexHandleHandle *v0, struct tfVertexSolverVertexHandleHandle *v1) |
| Test whether the surface contains a point. | |
| HRESULT | tfVertexSolverSurfaceHandle_merge (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverSurfaceHandleHandle *toRemove, tfFloatP_t *lenCfs, unsigned int numLenCfs) |
| Merge with a surface. The passed surface is destroyed. | |
| HRESULT | tfVertexSolverSurfaceHandle_extend (struct tfVertexSolverSurfaceHandleHandle *handle, unsigned int vertIdxStart, tfFloatP_t *pos, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Create a surface from two vertices and a position. | |
| HRESULT | tfVertexSolverSurfaceHandle_extrude (struct tfVertexSolverSurfaceHandleHandle *handle, unsigned int vertIdxStart, tfFloatP_t normLen, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Create a surface from two vertices of a surface in a mesh by extruding along the normal of the surface. | |
| HRESULT | tfVertexSolverSurfaceHandle_splitBy (struct tfVertexSolverSurfaceHandleHandle *handle, struct tfVertexSolverVertexHandleHandle *v1, struct tfVertexSolverVertexHandleHandle *v2, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Split into two surfaces. | |
| HRESULT | tfVertexSolverSurfaceHandle_splitHow (struct tfVertexSolverSurfaceHandleHandle *handle, tfFloatP_t *cp_pos, tfFloatP_t *cp_norm, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Split into two surfaces. | |
| HRESULT | tfVertexSolverSurfaceType_init (struct tfVertexSolverSurfaceTypeHandle *handle) |
| Initialize a new instance. | |
| HRESULT | tfVertexSolverSurfaceType_initD (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfVertexSolverSurfaceTypeSpec sdef) |
| Initialize an instance from a definition. | |
| HRESULT | tfVertexSolverSurfaceType_fromString (struct tfVertexSolverSurfaceTypeHandle *handle, const char *str) |
| Create from a JSON string representation. | |
| HRESULT | tfVertexSolverSurfaceType_objType (struct tfVertexSolverSurfaceTypeHandle *handle, unsigned int *label) |
| Get the mesh object type. | |
| HRESULT | tfVertexSolverSurfaceType_str (struct tfVertexSolverSurfaceTypeHandle *handle, char **str, unsigned int *numChars) |
| Get a summary string. | |
| HRESULT | tfVertexSolverSurfaceType_toString (struct tfVertexSolverSurfaceTypeHandle *handle, char **str, unsigned int *numChars) |
| Get a JSON string representation. | |
| HRESULT | tfVertexSolverSurfaceType_registerType (struct tfVertexSolverSurfaceTypeHandle *handle) |
| Registers a type with the engine. | |
| HRESULT | tfVertexSolverSurfaceType_isRegistered (struct tfVertexSolverSurfaceTypeHandle *handle, bool *result) |
| Tests whether this type is registered. | |
| HRESULT | tfVertexSolverSurfaceType_getName (struct tfVertexSolverSurfaceTypeHandle *handle, char **str, unsigned int *numChars) |
| Name of this surface type. | |
| HRESULT | tfVertexSolverSurfaceType_setName (struct tfVertexSolverSurfaceTypeHandle *handle, const char *str) |
| Set the name of this surface type. | |
| HRESULT | tfVertexSolverSurfaceType_getStyle (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfRenderingStyleHandle *style) |
| Get the style of the surface type. | |
| HRESULT | tfVertexSolverSurfaceType_getDensity (struct tfVertexSolverSurfaceTypeHandle *handle, tfFloatP_t *result) |
| Get the density of the surface type; only used in 2D simulation. | |
| HRESULT | tfVertexSolverSurfaceType_setDensity (struct tfVertexSolverSurfaceTypeHandle *handle, tfFloatP_t result) |
| Set the density of the surface type; only used in 2D simulation. | |
| HRESULT | tfVertexSolverSurfaceType_getInstances (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfVertexSolverSurfaceHandleHandle **objs, unsigned int *numObjs) |
| Get the list of instances that belong to this type. | |
| HRESULT | tfVertexSolverSurfaceType_getInstanceIds (struct tfVertexSolverSurfaceTypeHandle *handle, int **ids, unsigned int *numObjs) |
| Get the list of instances ids that belong to this type. | |
| HRESULT | tfVertexSolverSurfaceType_createSurfaceV (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfVertexSolverVertexHandleHandle **vertices, unsigned int numVerts, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Construct a surface of this type from a set of vertices. | |
| HRESULT | tfVertexSolverSurfaceType_createSurfaceP (struct tfVertexSolverSurfaceTypeHandle *handle, tfFloatP_t **positions, unsigned int numPositions, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Construct a surface of this type from a set of positions. | |
| HRESULT | tfVertexSolverSurfaceType_createSurfaceIO (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfIoThreeDFFaceDataHandle *face, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Construct a surface of this type from a face. | |
| HRESULT | tfVertexSolverSurfaceType_createSurfaceVA (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfVertexSolverVertexHandleHandle ***vertices, unsigned int numSurfaces, unsigned int *numVerts, struct tfVertexSolverSurfaceHandleHandle **newObjs) |
| Construct a surface of this type from a set of vertices. | |
| HRESULT | tfVertexSolverSurfaceType_createSurfacePA (struct tfVertexSolverSurfaceTypeHandle *handle, tfFloatP_t ***spositions, unsigned int numSurfaces, unsigned int *numPositions, struct tfVertexSolverSurfaceHandleHandle **newObjs) |
| Construct a surface of this type from a set of positions. | |
| HRESULT | tfVertexSolverSurfaceType_createSurfaceIOA (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfIoThreeDFFaceDataHandle **faces, unsigned int numSurfaces, struct tfVertexSolverSurfaceHandleHandle **newObjs) |
| Construct a surface of this type from a face. | |
| HRESULT | tfVertexSolverSurfaceType_nPolygon (struct tfVertexSolverSurfaceTypeHandle *handle, unsigned int n, tfFloatP_t *center, tfFloatP_t radius, tfFloatP_t *ax1, tfFloatP_t *ax2, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Construct a polygon with n vertices circumscribed on a circle. | |
| HRESULT | tfVertexSolverSurfaceType_replace (struct tfVertexSolverSurfaceTypeHandle *handle, struct tfVertexSolverVertexHandleHandle *toReplace, tfFloatP_t *lenCfs, unsigned int numLenCfs, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Replace a vertex with a surface. Vertices are created for the surface along every destroyed edge. | |
| HRESULT | tfVertexSolverCreateSurfaceByVertices (struct tfVertexSolverVertexHandleHandle **verts, unsigned int numVerts, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Construct a surface from a set of vertices. | |
| HRESULT | tfVertexSolverCreateSurfaceByIOData (struct tfIoThreeDFFaceDataHandle *face, struct tfVertexSolverSurfaceHandleHandle *newObj) |
| Construct a surface from a face. | |
| HRESULT | tfVertexSolverFindSurfaceTypeFromName (const char *name, struct tfVertexSolverSurfaceTypeHandle *result) |
| Get a registered type by name. | |
| HRESULT | tfVertexSolverBindSurfaceTypeAdhesion (struct tfVertexSolverSurfaceTypeHandle **stypes, struct tfVertexSolverSurfaceTypeSpec *sdefs, unsigned int numTypes) |
| Bind adhesion for all types with matching specification. | |
| HRESULT tfVertexSolverBindSurfaceTypeAdhesion | ( | struct tfVertexSolverSurfaceTypeHandle ** | stypes, |
| struct tfVertexSolverSurfaceTypeSpec * | sdefs, | ||
| unsigned int | numTypes ) |
Bind adhesion for all types with matching specification.
| stypes | surface types to bind |
| sdefs | surface type definitions |
| numTypes | number of types |
| HRESULT tfVertexSolverCreateSurfaceByIOData | ( | struct tfIoThreeDFFaceDataHandle * | face, |
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Construct a surface from a face.
| face | face data |
| newObj | newly created object |
| HRESULT tfVertexSolverCreateSurfaceByVertices | ( | struct tfVertexSolverVertexHandleHandle ** | verts, |
| unsigned int | numVerts, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Construct a surface from a set of vertices.
| verts | set of vertices |
| numVerts | number of vertices |
| newObj | newly created object |
| HRESULT tfVertexSolverFindSurfaceTypeFromName | ( | const char * | name, |
| struct tfVertexSolverSurfaceTypeHandle * | result ) |
Get a registered type by name.
| name | name of type |
| result | type |
| HRESULT tfVertexSolverSurfaceHandle_addBody | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | b ) |
Add a body.
| handle | populated handle |
| b | body to add |
| HRESULT tfVertexSolverSurfaceHandle_addVertex | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v ) |
Add a vertex.
| handle | populated handle |
| v | vertex to add |
| HRESULT tfVertexSolverSurfaceHandle_become | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceTypeHandle * | stype ) |
Become a different type.
| handle | populated handle |
| stype | type to become |
| HRESULT tfVertexSolverSurfaceHandle_connectedSurfaces | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle ** | objs, | ||
| int * | numObjs ) |
Surfaces that share at least one vertex.
| handle | populated handle |
| objs | objects |
| numObjs | number of objects |
| HRESULT tfVertexSolverSurfaceHandle_connectedSurfacesS | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle ** | verts, | ||
| unsigned int | numVerts, | ||
| struct tfVertexSolverSurfaceHandleHandle ** | objs, | ||
| int * | numObjs ) |
Surfaces that share at least one vertex in a set of vertices.
| handle | populated handle |
| verts | vertices |
| numVerts | number of vertices |
| objs | objects |
| numObjs | number of objects |
| HRESULT tfVertexSolverSurfaceHandle_connectingVertices | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle * | other, | ||
| struct tfVertexSolverVertexHandleHandle ** | objs, | ||
| int * | numObjs ) |
Vertices defining this and another surface.
| handle | |
| other | another surface |
| objs | objects |
| numObjs | number of objects |
| HRESULT tfVertexSolverSurfaceHandle_contains | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | pos, | ||
| bool * | result, | ||
| struct tfVertexSolverVertexHandleHandle * | v0, | ||
| struct tfVertexSolverVertexHandleHandle * | v1 ) |
Test whether the surface contains a point.
| handle | populated handle |
| pos | position of the point |
| result | result of the test |
| v0 | a vertex of the nearest edge |
| v1 | a vertex of the nearest edge |
| HRESULT tfVertexSolverSurfaceHandle_contiguousVertexLabels | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle * | other, | ||
| unsigned int ** | labels, | ||
| int * | numLabels ) |
Get the integer labels of the contiguous vertices that this surface shares with another surface.
| handle | populated handle |
| other | another surface |
| labels | edge labels |
| numLabels | number of edge labels |
| HRESULT tfVertexSolverSurfaceHandle_definedByVertex | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v, | ||
| bool * | result ) |
Test whether a surface is defined by a vertex.
| handle | populated handle |
| v | vertex |
| result | result of test |
| HRESULT tfVertexSolverSurfaceHandle_definesBody | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | b, | ||
| bool * | result ) |
Test whether a surface defines a body.
| handle | populated handle |
| b | body |
| result | result of test |
| HRESULT tfVertexSolverSurfaceHandle_destroy | ( | struct tfVertexSolverSurfaceHandleHandle * | handle | ) |
Destroy an instance.
| handle | populated handle |
| HRESULT tfVertexSolverSurfaceHandle_destroySurface | ( | struct tfVertexSolverSurfaceHandleHandle * | handle | ) |
Destroy the surface.
| handle | populated handle |
| HRESULT tfVertexSolverSurfaceHandle_destroySurfaceC | ( | struct tfVertexSolverSurfaceHandleHandle * | handle | ) |
Destroy an instance.
Any resulting vertices without a surface are also destroyed.
| handle | populated handle |
| HRESULT tfVertexSolverSurfaceHandle_destroySurfaces | ( | struct tfVertexSolverSurfaceHandleHandle ** | handles, |
| unsigned int | numObjs ) |
Destroy surfaces.
| handles | populated handles |
| numObjs | number of objects to destroy |
| HRESULT tfVertexSolverSurfaceHandle_extend | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| unsigned int | vertIdxStart, | ||
| tfFloatP_t * | pos, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Create a surface from two vertices and a position.
| handle | populated handle |
| vertIdxStart | index of first vertex |
| pos | position of new vertex |
| newObj | newly created surface |
| HRESULT tfVertexSolverSurfaceHandle_extrude | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| unsigned int | vertIdxStart, | ||
| tfFloatP_t | normLen, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Create a surface from two vertices of a surface in a mesh by extruding along the normal of the surface.
| handle | populated handle |
| vertIdxStart | index of first vertex |
| normLen | length along surface normal by which to extrude |
| newObj | newly created surface |
| HRESULT tfVertexSolverSurfaceHandle_findBody | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | dir, | ||
| struct tfVertexSolverBodyHandleHandle * | result ) |
Find a body that this surface defines.
| handle | |
| dir | direction to look with respect to the centroid |
| result | body |
| HRESULT tfVertexSolverSurfaceHandle_findVertex | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | dir, | ||
| struct tfVertexSolverVertexHandleHandle * | result ) |
Find a vertex that defines this surface.
| handle | populated handle |
| dir | direction to look with respect to the centroid |
| result | vertex |
| HRESULT tfVertexSolverSurfaceHandle_fromString | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| const char * | s ) |
Create an instance from a JSON string representation.
| handle | handle to populate |
| s | JSON string |
| HRESULT tfVertexSolverSurfaceHandle_getArea | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | result ) |
Get the area.
| handle | populated handle |
| result | area |
| HRESULT tfVertexSolverSurfaceHandle_getBodies | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle ** | objs, | ||
| int * | numObjs ) |
Get the bodies defined by the surface.
| handle | populated handle |
| objs | objects |
| numObjs | number of objects |
| HRESULT tfVertexSolverSurfaceHandle_getCentroid | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t ** | result ) |
Get the centroid.
| handle | populated handle |
| result | centroid |
| HRESULT tfVertexSolverSurfaceHandle_getDensity | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | result ) |
Get the mass density; only used in 2D simulation.
| handle | populated handle |
| result | mass density |
| HRESULT tfVertexSolverSurfaceHandle_getId | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| int * | objId ) |
Get the id.
| handle | populated handle |
| objId | object id |
| HRESULT tfVertexSolverSurfaceHandle_getMass | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | result ) |
Get the mass; only used in 2D simulation.
| handle | populated handle |
| result | mass |
| HRESULT tfVertexSolverSurfaceHandle_getNormal | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t ** | result ) |
Get the surface normal.
| handle | populated handle |
| result | surface normal |
| HRESULT tfVertexSolverSurfaceHandle_getOutwardNormal | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | body, | ||
| tfFloatP_t ** | result ) |
Get the outward facing normal w.r.t. a body.
| handle | populated handle |
| body | a body |
| result | normal |
| HRESULT tfVertexSolverSurfaceHandle_getPerimeter | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | result ) |
Get the perimeter.
| handle | populated handle |
| result | perimeter |
| HRESULT tfVertexSolverSurfaceHandle_getStyle | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | result ) |
Get the surface style.
| handle | populated handle |
| result | surface style |
| HRESULT tfVertexSolverSurfaceHandle_getType | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceTypeHandle * | stype ) |
Get the surface type.
| handle | populated handle |
| stype | surface type |
| HRESULT tfVertexSolverSurfaceHandle_getUnnormalizedNormal | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t ** | result ) |
Get the surface unnormalized normal.
| handle | populated handle |
| result | surface unnormalized normal |
| HRESULT tfVertexSolverSurfaceHandle_getVelocity | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t ** | result ) |
Get the velocity, calculated as the velocity of the centroid.
| handle | populated handle |
| result | velocity |
| HRESULT tfVertexSolverSurfaceHandle_getVertexArea | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v, | ||
| tfFloatP_t * | result ) |
Get the area that a vertex contributes to this surface.
| handle | populated handle |
| v | a vertex |
| result | area contribution |
| HRESULT tfVertexSolverSurfaceHandle_getVertexMass | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v, | ||
| tfFloatP_t * | result ) |
Get the mass contribution of a vertex to this surface; only used in 2D simulation.
| populated | handle |
| v | a vertex |
| result | mass contribution |
| HRESULT tfVertexSolverSurfaceHandle_getVertices | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle ** | objs, | ||
| int * | numObjs ) |
Get the vertices that define the surface.
| handle | populated handle |
| objs | objects |
| numObjs | number of objects |
| HRESULT tfVertexSolverSurfaceHandle_getVolumeContr | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | body, | ||
| tfFloatP_t * | result ) |
Get the volume that this surface contributes to a body.
| handle | populated handle |
| body | a body |
| result | volume contribution |
| HRESULT tfVertexSolverSurfaceHandle_hasStyle | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| bool * | result ) |
Test whether the surface has a style.
| handle | populated handle |
| result | result of test |
| HRESULT tfVertexSolverSurfaceHandle_init | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| int | id ) |
Initialize an instance.
| handle | handle to populate |
| id | object id |
| HRESULT tfVertexSolverSurfaceHandle_insertVertexAt | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v, | ||
| const int & | idx ) |
Insert a vertex at a location in the list of vertices.
| handle | populated handle |
| v | vertex to insert |
| idx | location for insertion |
| HRESULT tfVertexSolverSurfaceHandle_insertVertexBefore | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v, | ||
| struct tfVertexSolverVertexHandleHandle * | before ) |
Insert a vertex before another vertex.
| handle | populated handle |
| v | vertex to insert |
| before | vertex to insert before |
| HRESULT tfVertexSolverSurfaceHandle_insertVertexBetween | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | toInsert, | ||
| struct tfVertexSolverVertexHandleHandle * | v1, | ||
| struct tfVertexSolverVertexHandleHandle * | v2 ) |
Insert a vertex between two vertices.
| handle | populated handle |
| toInsert | vertex to insert |
| v1 | first vertex |
| v2 | second vertex |
| HRESULT tfVertexSolverSurfaceHandle_isOutside | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | pos, | ||
| bool * | result ) |
Test whether a point is on the outer side.
| handle | populated handle |
| pos | position |
| result | result of test |
| HRESULT tfVertexSolverSurfaceHandle_merge | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle * | toRemove, | ||
| tfFloatP_t * | lenCfs, | ||
| unsigned int | numLenCfs ) |
Merge with a surface. The passed surface is destroyed.
Surfaces must have the same number of vertices. Vertices are paired by nearest distance.
| handle | populated handle |
| toRemove | surface to remove |
| lenCfs | distance coefficients in [0, 1] for where to place the merged vertex, from each kept vertex to each removed vertex |
| numLenCfs | number of distance coefficients |
| HRESULT tfVertexSolverSurfaceHandle_neighborSurfaces | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle ** | objs, | ||
| int * | numObjs ) |
Connected surfaces on the same body.
| handle | populated handle |
| objs | surfaces |
| numObjs | number of surfaces |
| HRESULT tfVertexSolverSurfaceHandle_neighborVertices | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v, | ||
| struct tfVertexSolverVertexHandleHandle * | v1, | ||
| struct tfVertexSolverVertexHandleHandle * | v2 ) |
Connected vertices on the same surface.
| handle | populated handle |
| v | vertex of interest |
| v1 | first connected vertex |
| v2 | second connected vertex |
| HRESULT tfVertexSolverSurfaceHandle_normalDistance | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | pos, | ||
| tfFloatP_t * | result ) |
Get the normal distance to a point; negative distance means that the point is on the inner side.
| handle | populated handle |
| pos | position |
| result | normal distance |
| HRESULT tfVertexSolverSurfaceHandle_objType | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| unsigned int * | label ) |
Get the mesh object type.
| handle | populated handle |
| label | type label |
| HRESULT tfVertexSolverSurfaceHandle_positionChanged | ( | struct tfVertexSolverSurfaceHandleHandle * | handle | ) |
Update internal data due to a change in position.
| handle | populated handle |
| HRESULT tfVertexSolverSurfaceHandle_refreshBodies | ( | struct tfVertexSolverSurfaceHandleHandle * | handle | ) |
Refresh internal ordering of defined bodies.
| handle | populated handle |
| HRESULT tfVertexSolverSurfaceHandle_removeBody | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | b ) |
Remove a body.
| handle | populated handle |
| b | body to remove |
| HRESULT tfVertexSolverSurfaceHandle_removeVertex | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v ) |
Remove a vertex.
| handle | populated handle |
| v | vertex to remove |
| HRESULT tfVertexSolverSurfaceHandle_replaceBodyAt | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | toInsert, | ||
| const int & | idx ) |
Replace a body at a location in the list of bodies.
| handle | populated handle |
| toInsert | body to insert |
| idx | location of body to replace |
| HRESULT tfVertexSolverSurfaceHandle_replaceBodyWith | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | toInsert, | ||
| struct tfVertexSolverBodyHandleHandle * | toRemove ) |
Replace a body with another body.
| handle | populated handle |
| toInsert | body to insert |
| toRemove | body to replace |
| HRESULT tfVertexSolverSurfaceHandle_replaceVertexAt | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | toInsert, | ||
| const int & | idx ) |
Replace a vertex at a location in the list of vertices.
| handle | populated handle |
| toInsert | vertex to insert |
| idx | location of vertex to replace |
| HRESULT tfVertexSolverSurfaceHandle_replaceVertexWith | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | toInsert, | ||
| struct tfVertexSolverVertexHandleHandle * | toRemove ) |
Replace a vertex with another vertex.
| handle | populated handle |
| toInsert | vertex to insert |
| toRemove | vertex to replace |
| HRESULT tfVertexSolverSurfaceHandle_setDensity | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t | density ) |
Set the mass density; only used in 2D simulation.
| handle | populated handle |
| density | density |
| HRESULT tfVertexSolverSurfaceHandle_setStyle | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfRenderingStyleHandle * | s ) |
Set the surface style.
| handle | populated handle |
| s | surface style |
| HRESULT tfVertexSolverSurfaceHandle_sharedContiguousVertices | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle * | other, | ||
| unsigned int | edgeLabel, | ||
| struct tfVertexSolverVertexHandleHandle ** | objs, | ||
| int * | numObjs ) |
Get the vertices of a contiguous shared edge with another surface.
Edges are labeled in increasing order starting with "1". A requested edge that does not exist returns empty.
A requested edge with label "0" returns all vertices not shared with another surface
| handle | populated handle |
| other | another surface |
| edgeLabel | edge label |
| objs | objects |
| numObjs | number of objects |
| HRESULT tfVertexSolverSurfaceHandle_splitBy | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | v1, | ||
| struct tfVertexSolverVertexHandleHandle * | v2, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Split into two surfaces.
Both vertices must already be in the surface and not adjacent
Vertices in the winding from from vertex to second go to newly created surface
Requires updated surface members (e.g., centroid)
| handle | populated handle |
| v1 | fist vertex defining the split |
| v2 | second vertex defining the split |
| newObj | newly created surface |
| HRESULT tfVertexSolverSurfaceHandle_splitHow | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| tfFloatP_t * | cp_pos, | ||
| tfFloatP_t * | cp_norm, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Split into two surfaces.
Requires updated surface members (e.g., centroid)
| handle | populated handle |
| cp_pos | point on the cut plane |
| cp_norm | normal of the cut plane |
| newObj | newly created surface |
| HRESULT tfVertexSolverSurfaceHandle_str | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a summary string.
| handle | populated handle |
| str | summary string |
| numChars | number of chars |
| HRESULT tfVertexSolverSurfaceHandle_toString | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a JSON string representation.
| handle | populated handle |
| str | JSON string |
| numChars | number of chars |
| HRESULT tfVertexSolverSurfaceHandle_validate | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| bool * | result ) |
Validate the body.
| handle | populated handle |
| result | result of validation |
| HRESULT tfVertexSolverSurfaceHandle_volumeSense | ( | struct tfVertexSolverSurfaceHandleHandle * | handle, |
| struct tfVertexSolverBodyHandleHandle * | body, | ||
| tfFloatP_t * | result ) |
Get the sign of the volume contribution to a body that this surface contributes.
| handle | populated handle |
| body | a body |
| result | sign of the volume contribution |
| HRESULT tfVertexSolverSurfaceType_createSurfaceIO | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfIoThreeDFFaceDataHandle * | face, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Construct a surface of this type from a face.
| handle | populated handle |
| face | face data |
| newObj | newly created objects |
| HRESULT tfVertexSolverSurfaceType_createSurfaceIOA | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfIoThreeDFFaceDataHandle ** | faces, | ||
| unsigned int | numSurfaces, | ||
| struct tfVertexSolverSurfaceHandleHandle ** | newObjs ) |
Construct a surface of this type from a face.
| handle | populated handle |
| faces | face data |
| numSurfaces | number of surfaces |
| newObjs | newly created objects |
| HRESULT tfVertexSolverSurfaceType_createSurfaceP | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| tfFloatP_t ** | positions, | ||
| unsigned int | numPositions, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Construct a surface of this type from a set of positions.
| handle | populated handle |
| positions | set of positions |
| numPositions | number of positions |
| newObj | newly created objects |
| HRESULT tfVertexSolverSurfaceType_createSurfacePA | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| tfFloatP_t *** | spositions, | ||
| unsigned int | numSurfaces, | ||
| unsigned int * | numPositions, | ||
| struct tfVertexSolverSurfaceHandleHandle ** | newObjs ) |
Construct a surface of this type from a set of positions.
| handle | populated handle |
| positions | sets of positions |
| numSurfaces | number of surfaces |
| numPositions | number of positions |
| newObjs | newly created objects |
| HRESULT tfVertexSolverSurfaceType_createSurfaceV | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle ** | vertices, | ||
| unsigned int | numVerts, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Construct a surface of this type from a set of vertices.
| handle | populated handle |
| vertices | set of vertices |
| numVerts | number of vertices |
| newObj | newly created object |
| HRESULT tfVertexSolverSurfaceType_createSurfaceVA | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle *** | vertices, | ||
| unsigned int | numSurfaces, | ||
| unsigned int * | numVerts, | ||
| struct tfVertexSolverSurfaceHandleHandle ** | newObjs ) |
Construct a surface of this type from a set of vertices.
| handle | populated handle |
| vertices | sets of vertices |
| numSurfaces | number of surfaces |
| numVerts | number of vertices per surface |
| newObjs | newly created objects |
| HRESULT tfVertexSolverSurfaceType_fromString | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| const char * | str ) |
Create from a JSON string representation.
The returned type is automatically registered with the solver.
| handle | |
| str | a string, as returned by toString |
| HRESULT tfVertexSolverSurfaceType_getDensity | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| tfFloatP_t * | result ) |
Get the density of the surface type; only used in 2D simulation.
| handle | populated handle |
| result | density |
| HRESULT tfVertexSolverSurfaceType_getInstanceIds | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| int ** | ids, | ||
| unsigned int * | numObjs ) |
Get the list of instances ids that belong to this type.
| handle | populated handle |
| ids | instance ids |
| numObjs | number of instances |
| HRESULT tfVertexSolverSurfaceType_getInstances | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfVertexSolverSurfaceHandleHandle ** | objs, | ||
| unsigned int * | numObjs ) |
Get the list of instances that belong to this type.
| handle | populated handle |
| objs | instances |
| numObjs | number of instances |
| HRESULT tfVertexSolverSurfaceType_getName | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Name of this surface type.
| handle | populated handle |
| str | name |
| numChars | number of chars |
| HRESULT tfVertexSolverSurfaceType_getStyle | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfRenderingStyleHandle * | style ) |
Get the style of the surface type.
| handle | populated handle |
| style | style of the surface type |
| HRESULT tfVertexSolverSurfaceType_init | ( | struct tfVertexSolverSurfaceTypeHandle * | handle | ) |
Initialize a new instance.
| handle | handle to populate |
| HRESULT tfVertexSolverSurfaceType_initD | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfVertexSolverSurfaceTypeSpec | sdef ) |
Initialize an instance from a definition.
| handle | handle to populate |
| sdef | definition |
| HRESULT tfVertexSolverSurfaceType_isRegistered | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| bool * | result ) |
Tests whether this type is registered.
| handle | |
| result | result of test |
| HRESULT tfVertexSolverSurfaceType_nPolygon | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| unsigned int | n, | ||
| tfFloatP_t * | center, | ||
| tfFloatP_t | radius, | ||
| tfFloatP_t * | ax1, | ||
| tfFloatP_t * | ax2, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Construct a polygon with n vertices circumscribed on a circle.
| handle | populated handle |
| n | number of points |
| center | center of the circle |
| radius | radius of the circle |
| ax1 | first axis defining the orientation of the circle |
| ax2 | second axis defining the orientation of the circle |
| newObj | newly created object |
| HRESULT tfVertexSolverSurfaceType_objType | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| unsigned int * | label ) |
Get the mesh object type.
| handle | populated handle |
| label | mesh object type label |
| HRESULT tfVertexSolverSurfaceType_registerType | ( | struct tfVertexSolverSurfaceTypeHandle * | handle | ) |
Registers a type with the engine.
| handle | populated handle |
| HRESULT tfVertexSolverSurfaceType_replace | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| struct tfVertexSolverVertexHandleHandle * | toReplace, | ||
| tfFloatP_t * | lenCfs, | ||
| unsigned int | numLenCfs, | ||
| struct tfVertexSolverSurfaceHandleHandle * | newObj ) |
Replace a vertex with a surface. Vertices are created for the surface along every destroyed edge.
| handle | populated handle |
| toReplace | vertex to replace |
| lenCfs | distance coefficients in [0, 1] defining where to create a new vertex along each edge |
| numLenCfs | number of distance coefficients |
| newObj | newly created object |
| HRESULT tfVertexSolverSurfaceType_setDensity | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| tfFloatP_t | result ) |
Set the density of the surface type; only used in 2D simulation.
| handle | populated handle |
| result | density |
| HRESULT tfVertexSolverSurfaceType_setName | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| const char * | str ) |
Set the name of this surface type.
| handle | populated handle |
| str | name |
| HRESULT tfVertexSolverSurfaceType_str | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a summary string.
| handle | populated handle |
| str | summary string |
| numChars | number of chars |
| HRESULT tfVertexSolverSurfaceType_toString | ( | struct tfVertexSolverSurfaceTypeHandle * | handle, |
| char ** | str, | ||
| unsigned int * | numChars ) |
Get a JSON string representation.
param str summary string
| numChars | number of chars |