man(7)
π cgalsurf β the manual, but make it make sense π
hey bestie, this is the man(7) page for cgalsurf π«Ά it's a Unix manual page, section 7, and it's about pulling 3D surfaces out of 3D images. grab a snack, we're doing this. π
β¨ NAME β¨
cgalsurf β 3D surface mesh extraction from volumetric image π¦
β¨ SYNOPSIS β¨
cgalsurf input.inr threshold x0 y0 z0 r2 angle surf-size approx maxnode output.off <randomseed> <init-size>
β¨ DESCRIPTION β¨
so like, the cgalsurf utility does the thing where it extracts a surface mesh at a specified threshold (that's a level-set, iykyk) out of a volumetric image β and the image can be in binary or gray-scale values. it does this using the CGAL library (http://cgal.org) π
and it's adapted based on the 3D surface generation demo in the CGAL package.
if you want the actual tea on the underlying algorithm, go peep https://doc.cgal.org/latest/Surface_mesher/ β¨
β¨ OPTIONS β¨
this program accepts the following input parameters β all but the last two parameters are required, no cap:
input.inrβ the input volumetric image in the INR format πΎthresholdβ a number representing the threshold at which the surface is extractedx0β the bounding sphere center's x-coordinatey0β the bounding sphere center's y-coordinatez0β the bounding sphere center's y-coordinate π (yes bestie, the page literally says y-coordinate here forz0, i'm not making this up, that's what it says)r2β the bounding sphere's radius squared βangleβ lower-bound of the angles (in degree) in surface trianglessurf-sizeβ lower-bound of the edge-length (in voxel unit) in surface trianglesapproxβ upper-bound of the deviation distance (in voxel unit) of the surface triangles to the voxelated boundariesmaxnodeβ upper-bound of the node numbers in the output meshoutput.offβ output surface mesh in the OFF format π€randomseed| (optional, default:-1) β random number generator seed (a large positive integer, or-1to use the system clock β°)init-size| (optional) β the number of nodes in the initial surface (sampled on the bounding sphere)
and also, lowkey, these other pages exist if you wanna go down a rabbit hole: cgalmesh(7), cgalsimp2(7), cgalpoly(7), cork(7), meshfix(7), jmeshlib(7) π
β¨ AUTHOR β¨
Laurent Rineau, Mariette Yvinec, and Qianqian Fang (fangqq@gmail.com) π
okay that's the whole page, you ate that. π
β¨ this was the cgalsurf page from the cgalsurf man page set, version 1.0, dated 30 June 2020. go forth and mesh something iconic, bestie ππ¦π
π¦ 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