Repository navigation
OpenSCAD engine and files
Advanced topic. This page is for technical readers.
OpenSCAD does the geometry. CgeoCAD runs the openscad command in the background, reads the mesh that it writes, and does the rest. CgeoCAD calls this step build.
CgeoCAD needs an OpenSCAD binary with the Manifold backend. The development snapshots have it. The release 2021.01 (the Debian 13 package) has only the CGAL backend, which is slow on large models. A model that takes 13 s with CGAL can take 0.3 s with Manifold.
- CgeoCAD runs the binary with
--versionand--help. The binary has Manifold when its--helptext names the--backendoption andmanifold. - CgeoCAD adds
--backend=manifoldto each OpenSCAD run, unless Extra arguments has a--backendargument. With--backend=cgal, the settings page shows a warning. - When the binary has no Manifold, the window shows a notice with the install steps and builds no model. See Install.
cgeocad export,cgeocad slice,cgeocad photoandcgeocad mcpstop with an error that shows the same steps. - The status bar shows the OpenSCAD version. It is red when the binary has no Manifold.
The print fixes and the splits of the Optimize tab also run OpenSCAD: CgeoCAD writes a small .scad file that imports the part mesh and adds or cuts simple shapes. This is why CgeoCAD needs the fast Manifold backend.
-
$OPENSCAD, if it is set. - The Binary of File > Settings > OpenSCAD, if it is set.
-
openscad-nightly, thenopenscad, on thePATH, then the usual install folders:C:\Program Files\OpenSCAD (Nightly),C:\Program Files\OpenSCAD,/Applications/OpenSCAD (Nightly).app,/Applications/OpenSCAD.app,/opt/homebrew/binand/usr/local/bin. CgeoCAD uses the first binary that has Manifold. When none has it, CgeoCAD uses the first binary that it found.
Extra arguments in the settings go to each OpenSCAD run. $OPENSCAD_ARGS overrides them.
The command line uses the same settings.
| System | Settings folder |
|---|---|
| Linux | ~/.config/cgeocad |
| Windows | %APPDATA%\cgeocad |
| macOS | ~/Library/Application Support/cgeocad |
CgeoCAD was CoCAD before version 0.9, with the folder cocad in the same place. At the first start, when the folder cgeocad does not exist and the folder cocad does, CgeoCAD copies the settings, the consent, the recent models, the model states, the last sets, the thumbnails, the examples and the window state. It does not copy mcp/. It does not change or delete the folder cocad, so that version 0.8 still works. When the copy fails, CgeoCAD starts with the default settings and tells it.
| Item | Content |
|---|---|
config |
The settings, with the default print area and the cards that you closed |
recent |
The list of recent models |
last-sets |
The set that you used last for each model |
models.json |
For each model: the settings of the right panel, the Optimize values (print area, fixes, the parts to print, orientation, splits), the closed parameter groups and your last parameter values (last 100 models) |
mcp/ |
The addresses of the open windows, for the MCP server |
examples/ |
The copies of the example models |
thumbs/ |
A 512 x 512 picture of the Iso view of each model, for the start page |
tour_seen |
The marker of the welcome tour. Delete it to show the tour at the next start. |
When the window opens and each hour after that, CgeoCAD asks GitHub for the list of releases.
- For a latest version of 0.4.5, the list of changes shows 0.4.0 to 0.4.5, plus all versions between your version and 0.4.0.
- The release workflow writes the notes from the commit subjects since the last tag. It leaves out
VersionandWebsite:commits. Each*line in the notes is one bullet in the app.
Home · Glossary · Problems and answers · Download · Website
The source of these pages is the docs/wiki/ folder of the repository. Changes that you make on the wiki website are lost at the next update.
Start
Look at the model
Furniture
Projects
More
Advanced