Quality

class tissue_forge.models.vertex.solver.Quality(vertexMergeDistCf=0.0001, surfaceDemoteAreaCf=0.0001, bodyDemoteVolumeCf=0.0001, _edgeSplitDistCf=2.0)

An object that schedules topological operations on a mesh to maintain its quality

property vertex_merge_distance: float

Distance below which two vertices are scheduled for merging

property surface_demote_area: float

Area below which a surface is scheduled to become a vertex

property body_demote_volume: float

Volume below which a body is scheduled to become a vertex

property edge_split_distance: float

Distance at which two vertices are seperated when a vertex is split

property collision_2d: bool

Whether 2D collisions are implemented

toString()

Get a JSON string representation

static fromString(s)

Create an instance from a JSON string representation

Parameters:

s (string) – JSON string representation

do_quality()

Perform quality operations work

working()

Test whether quality operations are being done

Return type:

boolean

Returns:

true if quality operations are being done

__str__() str

Return str(self).