---
name: "cgalsimp2"
section: "7"
platform: "linux"
package: "iso2mesh-tools"
version: "1.9.8+ds-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cgalsimp2"
---

# cgalsimp2(7)

triangular surface mesh simplification

## NAME

cgalsimp2 - triangular surface mesh simplification

## SYNOPSIS

cgalsimp2 input.off keepratio

## DESCRIPTION

The cgalsimp2 utility is a surface mesh simplification utility  built on the CGAL library (http://cgal.org). This tool utilizes the Lindstrom–Turk algorithm and decimate a surface mesh into a coarser downsampled surface. The output mesh is stored in a file named "out.off".

Please see https://doc.cgal.org/latest/Surface\_mesh\_simplification/ for details regarding the underlying algorithm.

## OPTIONS

This program accepts the following input parameters:

- **input.off**\|(required)

  The input surface mesh in the OFF format

- **keepratio**\|(required)

  A 0-1 floating point number denoting the percentage of edges  that will be preserved (1-keepratio is the percentage of edges  that will be decimated. If keepratio is negative, it triggers  the "LindstromTurk placement" policy; otherwise, it uses a  mid-point placement policy by clapsing an edge to its mid-point.

## SEE ALSO

[cgalmesh(7)](/cgalmesh/7.md), [cgalsurf(7)](/cgalsurf/7.md), [cgalpoly(7)](/cgalpoly/7.md), cork(7), [meshfix(7)](/meshfix/7.md), [jmeshlib(7)](/jmeshlib/7.md)

## AUTHOR

Qianqian Fang (fangqq@gmail.com), Fernando Cacciola and Andreas Fabri
