jembezmamy / morpher-js

JavaScript image morphing library
MIT License
123 stars 16 forks source link

GUI doesn't make triangles #18

Closed GirkovArpa closed 1 year ago

GirkovArpa commented 1 year ago

In the GUI, when clicking "Export Code", you get an array of points but the triangle array is empty.

GirkovArpa commented 1 year ago

Made them myself with https://github.com/mapbox/delaunator

jembezmamy commented 1 year ago

I'm glad you've figured that out. :) In the MorpherJS GUI you have to manually connect vertices to build triangles. So Delaunator seems like a good solution to automate this process