azrafe7 / hxGeomAlgo

Small collection of computational geometry algorithms in Haxe.
http://azrafe7.github.io/hxGeomAlgo/index.html
Other
159 stars 13 forks source link

[openfl] Look into draw polys regression vs flash #14

Closed azrafe7 closed 5 years ago

azrafe7 commented 5 years ago

Quite a bit since I've played with the lib, and apart from fixing the issue with latest breaking hxPixels change, now I see that the drawPoly() method doesn't work as expected (although the points are correctly computed).

flash [OK] image

html5 (and other targets) [NO] image

azrafe7 commented 5 years ago

UPDATE:

Mmmhh... Just commenting out the drawPaths() call for the IsoContours example (here https://github.com/azrafe7/hxGeomAlgo/blob/3e040ccc3f91e99147fa28b04dddd7d4b51fe144/src/GeomAlgoTest.hx#L190) does help to show Doug-Peuck and Visv-Whyatt. Maybe there's some issue with computed points being out of Bitmap size, and/or Openfl not clamping them.

flash image

html5 image

azrafe7 commented 5 years ago

Kind of a hack, but fixed in 77595d25ede256e04f02b865f851bfd282c3dd5d

Note-to-self:

> haxe -v
Haxe Compiler 4.0.0-rc.5+4a745347f - (C)2005-2019 Haxe Foundation

> haxelib list
actuate: [1.8.9]
asynctools: [0.1.0]
box2d: [1.2.3]
buddy: [2.10.3] git
hx3compat: [1.0.3]
hxcpp-debug-server: [dev:c:\Users\az\.vscode\extensions\vshaxe.hxcpp-debugger-1.
2.4\hxcpp-debug-server]
hxcpp: [git]
hxcs: [3.4.0]
hxjava: [3.2.0]
hxPixels: [dev:c:\az_dev\haxe\hxPixels.git\src]
layout: [1.2.1]
lime-samples: [7.0.0]
lime: [7.6.3]
openfl-samples: [8.7.0]
openfl: [8.9.5]
promhx: [1.1.0]
thx.core: [git]
utest: 1.10.1 [git]