| Table of Contents ▸ List of Commands ▸ 3D Meshes ▸ simplify3d | ◀ sierpinski3d | size3d ▶ |
simplify3d
Arguments:
- _tolerance>=0,_preserve_boundaries={ 0 | 1 },_preserve_colors={ 0 | 1 },_uv_tolerance>=0
Description:
Simplify selected 3D meshes by quadric-error edge collapse (Garland-Heckbert).tolerance is a percentage of the bounding box diagonal of each mesh, so the simplification does not depend on the scale of the object. Collapses are performed (cheapest first) while the accumulated quadric error of the merged vertex stays below this tolerance, i.e. while the new vertex remains close to the planes of all the original triangles it replaces. This bound is conservative: the actual geometric deviation is usually smaller.
preserve_boundaries keeps the borders of open meshes in place, preserve_colors keeps the frontiers between triangles of different color/opacity.
Triangles and quadrangles (the latter are split into 2 triangles along their shortest diagonal) having a plain RGB color or a texture, and a plain opacity, are simplified. Other primitives (points, segments, spheres, textured primitives with a textured opacity) are kept unchanged, as well as the vertices they use.
Duplicated vertices are merged beforehand.
Textured primitives are simplified without visible loss: texture seams and frontiers between different textures are always preserved (as preserve_boundaries does for borders), and the (u,v) coordinates are extrapolated face by face when a vertex moves. An edge collapse is accepted only if the (u,v) coordinates given by neighbor faces to the merged vertex stay consistent, within uv_tolerance (in pixels of the texture).
Flat textured areas are thus fully simplified, while curved areas with a varying texture mapping are kept.
Textures shared with a primitive that is not simplified (e.g. a textured segment) are left unchanged.
Output (u,v) coordinates are rounded to integers.
Default values:
tolerance=0.5, preserve_boundaries=1, preserve_colors=1 and uv_tolerance=0.5.
Example of use:
gmic3d simplify3d 0.5


Home
Download
News
Mastodon
Bluesky
X
Summary - 18 Years
Summary - 17 Years
Summary - 16 Years
Summary - 15 Years
Summary - 13 Years
Summary - 11 Years
Summary - 10 Years
Resources
Technical Reference
Scripting Tutorial
Video Tutorials
Wiki Pages
Image Gallery
Color Presets
Using libgmic
G'MIC Online
Community
Discussion Forum (Pixls.us)
GimpChat
IRC
Report Issue