Skip to content

Commit

Permalink
Merge pull request SINTEF-Geometry#380 from sbriseid/2d_spline_curve_…
Browse files Browse the repository at this point in the history
…rotate_fix

Fixed issue for 2d curve (was hardcoded to 3d curve only).
  • Loading branch information
sbriseid authored Nov 2, 2024
2 parents d9941d5 + aadb36b commit f93963c
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 f93963c

Please sign in to comment.