DrawPath() vs Polygon() draws differently

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 295
Joined: Fri Feb 25, 2011 12:08 am

DrawPath() vs Polygon() draws differently

Post by lazi » Sun Mar 12, 2017 8:51 pm

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

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: DrawPath() vs Polygon() draws differently

Post by airsoftsoftwair » Wed Mar 15, 2017 1:26 am

Will be fixed, thanks for reporting!

User avatar
airsoftsoftwair
Posts: 2531
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: DrawPath() vs Polygon() draws differently

Post by airsoftsoftwair » Thu Aug 17, 2017 8:55 pm

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

Post Reply