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