MCPcopy Create free account
hub / github.com/dabing1022/Blog / triangulate

Method triangulate

Processing/game2dai/maths/Triangulator.java:44–50  ·  view source on GitHub ↗

Create a set of triangles from a concave/convex polygon with no holes and no intersecting sides. @param contour an open list of vertices that make up a 2D polygon @param result list of vertex indices (to contour list) in groups of three for the render triangles @return true if succeeded else false

(List<Vector2D> contour, List<Integer> result)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

BuildingMethod · 0.95

Calls 6

areaMethod · 0.95
snipMethod · 0.95
isEmptyMethod · 0.80
toArrayMethod · 0.80
clearMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected