mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Fix negative modelo #5509
This commit is contained in:
@@ -128,7 +128,7 @@ taxonomy::loop::ptr ifcopenshell::geometry::profile_helper(const taxonomy::matri
|
|||||||
|
|
||||||
std::vector<profile_point_with_edges> pps(points.size());
|
std::vector<profile_point_with_edges> pps(points.size());
|
||||||
for (int b = 0; b < points.size(); ++b) {
|
for (int b = 0; b < points.size(); ++b) {
|
||||||
int c = (b - 1) % points.size();
|
int c = (b + points.size() - 1) % points.size();
|
||||||
pps[b] = { Eigen::Vector2d(points[b].xy[0], points[b].xy[1]), points[b].radius, loop->children[c], loop->children[b] };
|
pps[b] = { Eigen::Vector2d(points[b].xy[0], points[b].xy[1]), points[b].radius, loop->children[c], loop->children[b] };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user