mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
full circle trim fixes
This commit is contained in:
@@ -403,7 +403,7 @@ namespace {
|
||||
}
|
||||
a = std::fmod(a, 2 * M_PI);
|
||||
b = std::fmod(b, 2 * M_PI);
|
||||
if (b < a) {
|
||||
if (b <= a) {
|
||||
b += 2 * M_PI;
|
||||
}
|
||||
int num_segments = (int)std::ceil(std::fabs(a - b) / (2 * M_PI) * FULL_CIRCLE_NUM_SEGMENTS);
|
||||
|
||||
Reference in New Issue
Block a user