InStep Studio

INSTEP STUDIO 3D

Bodies - Tri/Quad Converter

Time to read: ~3 min

The Tri-Quad converter tool is a more specialized tool. It allows conversion between triangular and quadrilateral facets.
Note that if the data imported consist of quadrilaterals, the data will first need to be separately triangulated through the Polygon Tab page.
The tool generally allows triangular facets to be converted to quadrilaterals by a few different methods, described below and accessed through the Option dropdown in the Tri-Quad tab page which can be either accessed directly or by clicking on the Tri-Quad button in the main tool bar.

Pure Tri

This option is included to provide a reversal of the conversion to quad facets. The process is simply to divide each quadrilateral facet into two triangles by splitting across the diagonal.
An example for the different methods is shown:

example file for tri-quad
Example file containing triangles only

Quad Dominant

The conversion of a mesh to a Quad-Dominant mesh follows the idea that for each triangle there is a more or less ideal, neighboring triangle which it can be merged with. The pairing of two triangles follows a matching and sorting algorithm and should generally result in a mesh that consists of a reasonably high percentage of quadrilaterals with triangles remaining anywhere where a merge would not provide a good quality facet. This approach can be applied to both open and closed (=solid) bodies.

example file for quad dominant
Example using Quad Dominant method

Split Quads

The Split Quad option is a brute force alternative for cases where all triangles need to be converted to quadrilaterals and an increase in the number of facets is not of any great concern. The approach is essentially a Catmull-Clark algorithm but without smoothing of the facet corner vertices. The result is that the facets, when viewed with Edge display (Alt+E) enabled, resemble a more patchy surface with a distinct distribution of edges.

example file for split quads
Example using Split Quad method

Pure Quad

A pure Quad mesh can be obtained for a majority of meshes by iteratively improving on the Quad Dominant mesh to achieve a mesh that consists of only quadrilateral facets. This result is not guaranteed for all cases, but it can frequently be obtained, especially if the mesh has been remeshed to a reasonably good quality representation.
In this example, there is a single facet that appears out of place. In this case, this is due to how the normal vector is being computed (rotating the view shows a gradual color change) but can hint at a facet being a convex quadrilateral and further processing of such facets would generally be required.

example file for pure quad
Example using Pure Quad method

Note

The Tri and Quad mesh conversion tools should be considered specific to some niche applications. In general, they are of little concern to the average user and can introduce errors if not used with care. The majority of the InStep application is optimized for triangle-only meshes.