public PolygonMesh( Vector2[] points, bool arePointsCCW = true ) { var triangulator = new Triangulator(); triangulator.triangulate( points, arePointsCCW ); setVertPositions( points ); setTriangles( triangulator.triangleIndices.ToArray() ); recalculateBounds( true ); }