… Decimate a Primitive#

There are two ways to decimate a primitive in Gestaltor:

  • Vertex Clustering

  • Reduce Triangle Count

Vertex Clustering scan a primitive for similar vertices, which do have the same data. The index buffer is rebuilt and duplicate vertices are deleted.

Reduce Triangle Count decimates the primitive vertices count while keeping the shape of the geometry. If the quality is not sufficient, press Ctrl-Z to undo this optimization. Vertex Clustering is executed before this operation automatically, as this helps to produce better results.

These operations can be found in the Inspector widget when navigating from a mesh to a specific primitive:

  1. Open a glTF File > Open… in the menu bar. e.g. Sci Fi Helmet

  2. Navigate to the only mesh and primitive in the glTF scene

../../_images/Decimate_01.png
  1. Press the Reduce button in the Inspector widget

../../_images/Decimate_02.png

and choose a target percentage and tolerance.

../../_images/Decimate_03.png
  1. In the Logger widget, feedback about this operation is displayed. If desired, the operation can be executed several times.

  2. In the Viewport widget, switch to Wireframe mode to see the result before and after the operation.

../../_images/Decimate_04.png