A seam allowance is alwayse closed.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-01-22 13:21:07 +02:00
parent a1a25a39e7
commit b99bdc4742

View File

@ -128,7 +128,7 @@ QVector<QPointF> VLayoutPiece::GetContourPoints() const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VLayoutPiece::SetCountourPoints(const QVector<QPointF> &points) void VLayoutPiece::SetCountourPoints(const QVector<QPointF> &points)
{ {
d->contour = RemoveDublicates(RoundPoints(points)); d->contour = RemoveDublicates(RoundPoints(points), false);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -147,7 +147,7 @@ void VLayoutPiece::SetSeamAllowencePoints(const QVector<QPointF> &points, bool s
d->seamAllowence = points; d->seamAllowence = points;
if (not d->seamAllowence.isEmpty()) if (not d->seamAllowence.isEmpty())
{ {
d->seamAllowence = RemoveDublicates(RoundPoints(d->seamAllowence)); d->seamAllowence = RemoveDublicates(RoundPoints(d->seamAllowence), false);
} }
else else
{ {