Shortest Edge Collapse

/ (object)

/

Description

Required

/application (string)

/application

Description

Application name must be shortest_edge_collapse.

Options: ['shortest_edge_collapse']

/input (string)

/input

Description

Triangular input mesh.

Optional

/output (string)

/output

Description

Output file name (with extension).

Default: 'out.obj'

/input_dir (string)

/input_dir

Description

Directory where the input files are located. This is injected by the application and should not be set by the user.

Default: ''

/num_threads (int)

/num_threads

Description

Number of threads used by the application

Default: 0

/target_rel (float)

/target_rel

Description

Target number of vertices relative to input number.

Default: 0.1

/eps_rel (float)

/eps_rel

Description

Envelope thickness relative to the bounding box

Default: -1

/use_sample_envelope (bool)

/use_sample_envelope

Description

Use sample envelope instead of exact one.

Default: False

/throw_on_fail (bool)

/throw_on_fail

Description

Throw exception if the output does not fulfil the desired criteria. No output will be generated.

Default: False

/use_link_condition (bool)

/use_link_condition

Description

Require the link condition before collapsing an edge. When true a collapse cannot change the topology, which also means it cannot create non-manifold edges or vertices. When false those collapses are allowed – TriMesh represents the result, and any duplicate triangles the collapse produces are merged – so the mesh can usually be simplified further.

Default: True

/remove_duplicate_eps (float)

/remove_duplicate_eps

Description

Merge input vertices closer than this fraction of the bounding box diagonal. 0 merges only exactly coincident vertices; a negative value merges nothing. Needed for formats that carry no connectivity, such as STL, which otherwise arrive as a disconnected triangle soup.

Default: -1