Sketcher: Fix edit curve drawing for bounded curves

This commit is contained in:
Abdullah Tahiri
2022-03-15 13:16:29 +01:00
parent 5ca892e4aa
commit 14d682c6c3

View File

@@ -169,7 +169,7 @@ std::vector<Base::Vector2d> CurveConverter::toVector2D(const Part::Geometry * ge
double segment = (geo->getLastParameter() - geo->getFirstParameter()) / curvedEdgeCountSegments;
for (int i=0; i < curvedEdgeCountSegments; i++)
emplaceasvector2d(geo->value(i*segment));
emplaceasvector2d(geo->value(geo->getFirstParameter() + i * segment));
// either close the curve for untrimmed conic or set the last point for bounded curves
emplaceasvector2d(isconic ? geo->value(0) : geo->value(geo->getLastParameter()));