man(7)
β¨ cgalpoly β¨
man(7) β okay bestie, this is the cgalpoly man page, and it's literally the glow-up your 3D meshes have been waiting for π
π NAME π
cgalpoly β 3D mesh generation from polyhedral surfaces. That's it, that's the vibe. It takes a polyhedral surface and gives you a whole 3D mesh back, no cap. π¦
πΈ SYNOPSIS πΈ
cgalpoly input.off output.mesh <angle|30> <surf-size|6> <approx|4> <rad-
edge-ratio|3> <tetra-size|8> <randomseed|-1>
Yes the args are stacked like that, yes you can just leave the optional ones out and it'll use the defaults, we love a low-maintenance queen π
π¦ DESCRIPTION π¦
The cgalpoly utility is a surface-mesh-to-tetrahedral-mesh converter, and it's built on the CGAL library (http://cgal.org). Obsessed. π
So here's the tea: this utility can read a surface model made of triangular patches and generate a tetrahedral mesh conforming to the surface. Like, it understands your little triangles and then fills the whole inside with tets. Iconic behavior, fr fr.
If you wanna know the details about the underlying algorithm, pls go look at https://doc.cgal.org/latest/Mesh_3/ β iykyk π«Ά
π OPTIONS π
This program accepts the following input parameters, and bestie, read them carefully because each one is doing something real:
input.off|(required)β the input data file, in the OFF format. Required, so no skipping it, sorry bestie πoutput.mesh|(required)β the output mesh file, in the MEDIT format. Also required. The mesh has to go somewhere πangle|(optional, default: 30)β lower-bound of the angles (in degree) in surface triangles. Keep it at30if you don't have opinions βsurf-size|(optional, default: 6)β lower-bound of the edge-length (in voxel unit) in surface triangles. Default is6β¨approx|(optional, default: 4)β upper-bound of the deviation distance (in voxel unit) of the surface triangles to the voxelated boundaries. Default is4πΈrad-edge-ratio|(optional, default: 3)β upper-bound of the radius-to-edge ratio of the surface triangles. Default is3πtetra-size|(optional, default: 8)β lower-bound of the tetrahedron volume (in voxel^3) of the 3D mesh. Default is8π§randomseed|(optional, default: -1)β random number generator seed (large positive integer,-1to use system clock). So if you want reproducible runs, feed it a big positive integer; if you want chaos, leave it at-1and let the system clock decide π
Reminder bestie:input.offandoutput.meshare required β everything after them is optional and has a default, so you're never truly stuck π«Ά
π SEE ALSO π
Go give these other queens a visit, they're all in the same friend group:
π AUTHOR π
Qianqian Fang (fangqq@gmail.com) β main character energy, wrote the whole thing π
Okay that's the whole page, bestie! π₯³ This was cgalpoly man page, version 1.0, dated 30 June 2020, and yes it's filed under man(7). Slay, go mesh something. πβ¨π
π¦ where this page comes from
- debian trixie: iso2mesh-tools 1.9.8+ds-2 Β· GPL-2.0-or-later
- ubuntu jammy: iso2mesh-tools 1.9.6+ds-7 Β· GPL-2.0-or-later
- ubuntu questing: iso2mesh-tools 1.9.8+ds-2
- ubuntu resolute: iso2mesh-tools 1.9.8+ds-3 Β· GPL-2.0-or-later
- ubuntu stonking: iso2mesh-tools 1.9.8+ds-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms