mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 11:33:38 +00:00
Make CGAL circle-segments 0-default deflection-driven (rework #8368)
Address maintainer request on #8368: instead of a deflection floor on top of a fixed CircleSegments count, use one mode or the other. When CircleSegments == 0 (the new default) the CGAL kernel derives the conic segment count from MesherLinearDeflection, matching the deflection based meshing OpenCascade already does and fixing #8051. When CircleSegments is non zero it is used directly as a fixed, radius independent count. CircleSegments is only read by the CGAL kernel; OpenCascade meshes by deflection and never reads it, so the new default has no effect there. Update the setting description and the ifcconvert / geometry-settings docs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
committed by
Thomas Krijnen
parent
dd9fa65629
commit
0d70812641
@@ -361,8 +361,8 @@ namespace ifcopenshell {
|
||||
|
||||
struct CircleSegments : public SettingBase<CircleSegments, int> {
|
||||
static constexpr const char* const name = "circle-segments";
|
||||
static constexpr const char* const description = "Number of segments to approximate full circles in CGAL kernel.";
|
||||
static constexpr int defaultvalue = 16;
|
||||
static constexpr const char* const description = "Number of segments to approximate full circles in the CGAL kernel. When 0 (the default) the segment count is derived from mesher-linear-deflection instead, so curves stay within the deflection tolerance regardless of radius.";
|
||||
static constexpr int defaultvalue = 0;
|
||||
};
|
||||
|
||||
struct CgalSmoothAngleDegrees : public SettingBase<CgalSmoothAngleDegrees, double> {
|
||||
|
||||
Reference in New Issue
Block a user