Skip to content

jasbuber/polygon-triangulation-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This tool performs a basic analysis of an image, detecting a polygon. Polygon then is represented as a set of vectors. Based on parameters in the web interface, it approximate the best possible scenario of filling the polygon with triangles.

Parameters:

  • inner point - number of points that are to be generated inside of the shape;
  • border points - number of points that are to be generated ont the border of the shape;
  • shape accuracy - how many vectors are supposed to be generated to describe shape ( usually the more the better );
  • inner points accuracy - how evenly distributed should be the inner points that serve as one of the triangles vertices;
  • background color - background color that is used to parse the image and find the shape

This tool works only if a shape is empty inside ( inside color is a background color ). For the proper image examples, refer to the /img directory.

Prerequisites

  • any web server

DEVELOPMENT ONLY

Getting Started

Start a web server and open index.html.

About

A simple tool to analyze polygons and fill them with triangles based on a set of parameters.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published