Page 1 of 1

DrawPath() vs Polygon() draws differently

Posted: Sun Mar 12, 2017 7:51 pm
by lazi
Hello Andreas

Please try these lines.
It draws the same polygon with Polygon() and DrawPath().
The Drawpath() makes a line out of the corner if the lines has too small degree.
It is a similar thing that the sideeffect of #edge and larger line weight.

Could you fix this?

Code: Select all

Polygon(100,200,{0,0,400,-50,40,0},3,#RED)

StartPath(1)
MoveTo(1,0,0)
LineTo(1,400,-50)
LineTo(1,40,0)
ClosePath(1)
DrawPath(1,100,400,#RED)

Plot(100+0,400+0,#YELLOW)
Plot(100+400,400-50,#YELLOW)
Plot(100+40,400+0,#YELLOW)

WaitLeftMouse  
Image

Re: DrawPath() vs Polygon() draws differently

Posted: Wed Mar 15, 2017 12:26 am
by airsoftsoftwair
Will be fixed, thanks for reporting!

Re: DrawPath() vs Polygon() draws differently

Posted: Thu Aug 17, 2017 8:55 pm
by airsoftsoftwair

Code: Select all

- Fix: Inbuilt vectorgraphics engine used a very high miter limit which led to very long line joins
  in case two lines met at a sharp angle; it now uses a miter limit of 10 which is the same as the
  external vectorgraphics plugin's miter limit