If start and finish angle equal user should see a circle and an ellipse.
--HG-- branch : feature
This commit is contained in:
parent
1c9360ff1c
commit
551dd29ec0
|
@ -61,7 +61,7 @@ void VisToolArc::RefreshGeometry()
|
|||
const QSharedPointer<VPointF> first = Visualization::data->GeometricObject<VPointF>(object1Id);
|
||||
DrawPoint(arcCenter, *first, supportColor);
|
||||
|
||||
if (not qFuzzyIsNull(radius) && f1 >= 0 && f2 >= 0 && not VFuzzyComparePossibleNulls(f1, f2))
|
||||
if (not qFuzzyIsNull(radius) && f1 >= 0 && f2 >= 0)
|
||||
{
|
||||
VArc arc = VArc (*first, radius, f1, f2);
|
||||
DrawPath(this, arc.GetPath(PathDirection::Show), mainColor, Qt::SolidLine, Qt::RoundCap);
|
||||
|
|
|
@ -58,8 +58,7 @@ void VisToolEllipticalArc::RefreshGeometry()
|
|||
const QSharedPointer<VPointF> first = Visualization::data->GeometricObject<VPointF>(object1Id);
|
||||
DrawPoint(arcCenter, *first, supportColor);
|
||||
|
||||
if (not qFuzzyIsNull(radius1) && not qFuzzyIsNull(radius2) && f1 >= 0 && f2 >= 0 && rotationAngle >= 0
|
||||
&& not VFuzzyComparePossibleNulls(f1, f2))
|
||||
if (not qFuzzyIsNull(radius1) && not qFuzzyIsNull(radius2) && f1 >= 0 && f2 >= 0 && rotationAngle >= 0)
|
||||
{
|
||||
VEllipticalArc elArc = VEllipticalArc(*first, radius1, radius2, f1, f2, rotationAngle);
|
||||
DrawPath(this, elArc.GetPath(PathDirection::Show), mainColor, Qt::SolidLine, Qt::RoundCap);
|
||||
|
|
Loading…
Reference in New Issue
Block a user