[Bug] Part tessellate function returns vastly different results when FreeCAD is in console mode #7393
Open
2 tasks done
Labels
CLI
Command Line Interface - Running FC headless (FreeCADcmd)
Is there an existing issue for this?
Forums discussion
https://forum.freecadweb.org/viewtopic.php?f=22&t=71391
Version
0.20 (Release)
Full version info
Subproject(s) affected?
Part
Issue description
The
shape.tessellation(...)
function returns vastly different meshes, regarding resolution, depending on whether or not your run with or without the FreeCAD gui.Running the attached script (
tessellation_bug.py
) on the attached example object like this:freecadcmd sphere.FCStd tessellation_bug.py
results in a mesh with13360
vertices, while running it normally like this:freecad sphere.FCStd tessellation_bug.py
only results in a mesh with2505
vertices.My first thought was that this would be some kind of unit (metric vs. imperial) problem, but I wasn't able to find a constant to reproduce the "gui" version, from the command line.
From further testing, I figured that this mainly seems to affect circular objects, so my best guess is that it's somehow related to some kind of hidden angular deflection value.
Anything else?
tessellation_bug.zip
(contains an example FCStd file:
sphere.FCStd
and a python script which tessellates the object and prints the number of vertices:tessellation_bug.py
)Code of Conduct
The text was updated successfully, but these errors were encountered: