MCPcopy Create free account
hub / github.com/vispy/vispy / _triangulate_python

Function _triangulate_python

vispy/geometry/triangulation.py:804–810  ·  view source on GitHub ↗
(vertices_2d, segments)

Source from the content-addressed store, hash-verified

802
803
804def _triangulate_python(vertices_2d, segments):
805 segments = segments.reshape(len(segments) // 2, 2)
806 T = Triangulation(vertices_2d, segments)
807 T.triangulate()
808 vertices_2d = T.pts
809 triangles = T.tris.ravel()
810 return vertices_2d, triangles
811
812
813def _triangulate_cpp(vertices_2d, segments):

Callers 1

triangulateFunction · 0.85

Calls 2

triangulateMethod · 0.95
TriangulationClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…