diff --git a/backend/src/tangent_vectors_geom_bspline.cpp b/backend/src/tangent_vectors_geom_bspline.cpp index 620cda5..4f4f309 100644 --- a/backend/src/tangent_vectors_geom_bspline.cpp +++ b/backend/src/tangent_vectors_geom_bspline.cpp @@ -13,7 +13,7 @@ std::vector calculate_tangent_vectors(const Handle(Geom_BSplineCurve)& b gp_Vec tangentVector; gp_Pnt point; int knots = bsplineCurve->NbKnots(); - Standard_Real step_size = knots / 100; + Standard_Real step_size = 1 / knots; TColStd_Array1OfReal knotsArray(1, knots); Standard_Real first_parameter = bsplineCurve->FirstParameter(); Standard_Real last_parameter = bsplineCurve->LastParameter();