DrawPath() vs Polygon() draws differently

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

DrawPath() vs Polygon() draws differently

Post 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
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DrawPath() vs Polygon() draws differently

Post by airsoftsoftwair »

Will be fixed, thanks for reporting!
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DrawPath() vs Polygon() draws differently

Post 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
Post Reply