Skip to content

Commit

Permalink
Fixed issue for 2d curve (was hardcoded to 3d curve only).
Browse files Browse the repository at this point in the history
  • Loading branch information
Sverre Briseid authored and Sverre Briseid committed Nov 2, 2024
1 parent d9941d5 commit aadb36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gotools-core/src/geometry/GeometryTools.C
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ void GeometryTools::rotateSplineCurve(Point rot_axis, double alpha, SplineCurve&
rotatePoint(rot_axis, alpha, &*iter);
if (cv.rational()) {
for (int ki = 0; ki < dim0; ++ki)
coef_iter[ki] = iter[ki]/iter[3];
coef_iter[ki] = iter[ki]/iter[dim0];
coef_iter += dim - 1;
}
iter += dim;
Expand Down

0 comments on commit aadb36b

Please sign in to comment.