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

# cgalpoly(7)

3D mesh generation from polyhedral surfaces

## NAME

cgalpoly - 3D mesh generation from polyhedral surfaces

## SYNOPSIS

cgalpoly input.off output.mesh \<angle\|30\> \<surf-size\|6\> \<approx\|4\>  \<rad-edge-ratio\|3\> \<tetra-size\|8\> \<randomseed\|-1\>

## DESCRIPTION

The cgalpoly utility is a surface-mesh-to-tetrahedral-mesh converter   based on the CGAL library (http://cgal.org). This utility is capable  of reading a surface model made of triangular patches and generating a  tetrahedral mesh conforming to the surface.

Please see https://doc.cgal.org/latest/Mesh\_3/ for details regarding the underlying algorithm.

## OPTIONS

This program accepts the following input parameters:

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

  The input data file in the OFF format

- **output.mesh**\|(required)

  The output mesh file in the MEDIT format

- **angle**\|(optional, default: 30)

  Lower-bound of the angles (in degree) in surface triangles

- **surf-size**\|(optional, default: 6)

  Lower-bound of the edge-length (in voxel unit) in surface triangles

- **approx**\|(optional, default: 4)

  Upper-bound of the deviation distance (in voxel unit) of the surface triangles to the voxelated boundaries

- **rad-edge-ratio**\|(optional, default: 3)

  Upper-bound of the radius-to-edge ratio of the surface triangles

- **tetra-size**\|(optional, default: 8)

  Lower-bound of the tetrahedron volume (in voxel^3) of the 3D mesh

- **randomseed**\|(optional, default: -1)

  Random number generator seed (large positive integer, -1 to use system clock)

## SEE ALSO

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

## AUTHOR

Qianqian Fang (fangqq@gmail.com)
