Home
last modified time | relevance | path

Searched refs:polys (Results 1 – 20 of 20) sorted by relevance

/third_party/boost/boost/polygon/
Dpolygon_45_set_concept.hpp137 std::vector<p_type> polys; in area() local
138 assign(polys, polygon_set); in area()
140 for(std::size_t i = 0; i < polys.size(); ++i) { in area()
141 retval += area(polys[i]); in area()
154 std::vector<polygon_45_data<Unit> > polys; in interact() local
155 assign(polys, polygon_set_1); in interact()
156 std::vector<std::set<int> > graph(polys.size()+1, std::set<int>()); in interact()
159 for(std::size_t i = 0; i < polys.size(); ++i){ in interact()
160 ce.insert(polys[i]); in interact()
166 ps.insert(polys[(*itr)-1]); in interact()
[all …]
Dpolygon_set_concept.hpp143 std::vector<p_type> polys; in area() local
144 assign(polys, polygon_set); in area()
146 for(std::size_t i = 0; i < polys.size(); ++i) { in area()
147 retval += area(polys[i]); in area()
160 std::vector<p_type> polys; in simplify() local
161 assign(polys, polygon_set); in simplify()
163 for(std::size_t i = 0; i < polys.size(); ++i) { in simplify()
164 retval += detail::simplify_detail::simplify(polys[i].self_.coords_, in simplify()
165 polys[i].self_.coords_, threshold); in simplify()
167 polys[i].holes_.begin(); itrh != (polys[i].holes_.end()); ++itrh) { in simplify()
[all …]
Dpolygon_set_data.hpp131 …n_45_with_holes_data<typename polygon_45_set_traits<polygon_45_set_type>::coordinate_type> > polys; in insert() local
132 assign(polys, ps); in insert()
133 insert(polys.begin(), polys.end(), is_hole); in insert()
138 …n_90_with_holes_data<typename polygon_90_set_traits<polygon_90_set_type>::coordinate_type> > polys; in insert() local
139 assign(polys, ps); in insert()
140 insert(polys.begin(), polys.end(), is_hole); in insert()
364 std::vector<polygon_with_holes_data<T> > polys; in transform() local
365 get(polys); in transform()
367 for(std::size_t i = 0 ; i < polys.size(); ++i) { in transform()
368 ::boost::polygon::transform(polys[i], tr); in transform()
[all …]
Dpolygon_90_set_data.hpp494 std::list<polygon_45_with_holes_data<coordinate_type> > polys; in bloat() local
495 get(polys); in bloat()
497 …for(typename std::list<polygon_45_with_holes_data<coordinate_type> >::iterator itr = polys.begin(); in bloat()
498 itr != polys.end(); ++itr) { in bloat()
558 std::list<polygon_45_with_holes_data<coordinate_type> > polys; in shrink() local
559 get(polys); in shrink()
561 …for(typename std::list<polygon_45_with_holes_data<coordinate_type> >::iterator itr = polys.begin(); in shrink()
562 itr != polys.end(); ++itr) { in shrink()
794 std::vector<polygon_90_data<Unit> > polys; in interact() local
795 get(polys); in interact()
[all …]
Dpolygon_90_set_concept.hpp405 std::vector<polygon_90_data<Unit> > polys; in grow_and() local
406 assign(polys, polygon_set); in grow_and()
409 for(std::size_t i = 0; i < polys.size(); ++i) { in grow_and()
411 tmpPs.insert(polys[i]); in grow_and()
521 std::list<polygon_90_data<Unit> > polys; in keep() local
522 assign(polys, polygon_set); in keep()
525 …for(typename std::list<polygon_90_data<Unit> >::iterator itr = polys.begin(); itr != polys.end(); … in keep()
540 polys.erase(itr); in keep()
542 assign(polygon_set, polys); in keep()
Dpolygon_45_set_data.hpp1166 std::vector<polygon_45_with_holes_data<Unit> > polys; in transform() local
1167 get(polys); in transform()
1168 for(typename std::vector<polygon_45_with_holes_data<Unit> >::iterator itr = polys.begin(); in transform()
1169 itr != polys.end(); ++itr) { in transform()
1173 insert(polys.begin(), polys.end()); in transform()
1188 std::vector<polygon_45_with_holes_data<Unit> > polys; in scale_down() local
1189 get_polygons_with_holes(polys); in scale_down()
1190 for(typename std::vector<polygon_45_with_holes_data<Unit> >::iterator itr = polys.begin(); in scale_down()
1191 itr != polys.end(); ++itr) { in scale_down()
1195 insert(polys.begin(), polys.end()); in scale_down()
[all …]
/third_party/boost/boost/polygon/detail/
Dpolygon_45_formation.hpp895 std::vector<Polygon45> polys; in testPolygon45FormationRect() local
906 pf.scan(polys, data.begin(), data.end()); in testPolygon45FormationRect()
907 stdcout << "result size: " << polys.size() << "\n"; in testPolygon45FormationRect()
908 for(std::size_t i = 0; i < polys.size(); ++i) { in testPolygon45FormationRect()
909 stdcout << polys[i] << "\n"; in testPolygon45FormationRect()
919 std::vector<Polygon45> polys; in testPolygon45FormationP1() local
930 pf.scan(polys, data.begin(), data.end()); in testPolygon45FormationP1()
931 stdcout << "result size: " << polys.size() << "\n"; in testPolygon45FormationP1()
932 for(std::size_t i = 0; i < polys.size(); ++i) { in testPolygon45FormationP1()
933 stdcout << polys[i] << "\n"; in testPolygon45FormationP1()
[all …]
Dpolygon_arbitrary_formation.hpp1806 std::vector<polygon_data<Unit> > polys; in testPolygonArbitraryFormationRect() local
1817 pf.scan(polys, data.begin(), data.end()); in testPolygonArbitraryFormationRect()
1818 stdcout << "result size: " << polys.size() << "\n"; in testPolygonArbitraryFormationRect()
1819 for(std::size_t i = 0; i < polys.size(); ++i) { in testPolygonArbitraryFormationRect()
1820 stdcout << polys[i] << "\n"; in testPolygonArbitraryFormationRect()
1830 std::vector<polygon_data<Unit> > polys; in testPolygonArbitraryFormationP1() local
1841 pf.scan(polys, data.begin(), data.end()); in testPolygonArbitraryFormationP1()
1842 stdcout << "result size: " << polys.size() << "\n"; in testPolygonArbitraryFormationP1()
1843 for(std::size_t i = 0; i < polys.size(); ++i) { in testPolygonArbitraryFormationP1()
1844 stdcout << polys[i] << "\n"; in testPolygonArbitraryFormationP1()
[all …]
Dscan_arbitrary.hpp1843 std::vector<polygon_data<Unit> > polys; in test_merge() local
1844 psd.get(polys); in test_merge()
1845 if(polys.size() != 1) { in test_merge()
1849 stdcout << (polys[0]) << "\n"; in test_merge()
1869 polys.clear(); in test_merge()
1870 psd.get(polys); in test_merge()
1871 if(polys.size() != 1) { in test_merge()
1895 polys.clear(); in test_merge()
1896 psd.get(polys); in test_merge()
1897 if(polys.size() != 1) { in test_merge()
[all …]
/third_party/skia/src/gpu/geometry/
DGrInnerFanTriangulator.h28 Poly* polys = this->pathToPolys(breadcrumbList, isLinear); in pathToTriangles() local
29 return this->polysToTriangles(polys, vertexAlloc, breadcrumbList); in pathToTriangles()
33 Poly* polys = this->GrTriangulator::pathToPolys(0, SkRect::MakeEmpty(), isLinear); in pathToPolys() local
35 return polys; in pathToPolys()
38 int polysToTriangles(Poly* polys, GrEagerVertexAllocator* vertexAlloc, in polysToTriangles() argument
40 int vertexCount = this->GrTriangulator::polysToTriangles(polys, vertexAlloc); in polysToTriangles()
DGrAATriangulator.h23 Poly* polys = aaTriangulator.pathToPolys(tolerance, clipBounds, &isLinear); in PathToAATriangles() local
24 return aaTriangulator.polysToAATriangles(polys, vertexAllocator); in PathToAATriangles()
DGrTriangulator.h37 Poly* polys = triangulator.pathToPolys(tolerance, clipBounds, isLinear); in PathToTriangles() local
38 int count = triangulator.polysToTriangles(polys, vertexAllocator); in PathToTriangles()
87 void* polysToTriangles(Poly* polys, void* data, SkPathFillType overrideFillType) const;
174 static int64_t CountPoints(Poly* polys, SkPathFillType overrideFillType);
DGrTriangulator.cpp1356 Poly* polys = nullptr; in tessellate() local
1423 leftPoly = this->makePoly(&polys, leftPoly->lastVertex(), in tessellate()
1427 rightPoly = this->makePoly(&polys, rightPoly->lastVertex(), in tessellate()
1447 Poly* poly = this->makePoly(&polys, v, winding); in tessellate()
1464 return polys; in tessellate()
1525 void* GrTriangulator::polysToTriangles(Poly* polys, void* data, in polysToTriangles() argument
1527 for (Poly* poly = polys; poly; poly = poly->fNext) { in polysToTriangles()
1585 int64_t GrTriangulator::CountPoints(Poly* polys, SkPathFillType overrideFillType) { in CountPoints() argument
1587 for (Poly* poly = polys; poly; poly = poly->fNext) { in CountPoints()
1597 int GrTriangulator::polysToTriangles(Poly* polys, GrEagerVertexAllocator* vertexAllocator) const { in polysToTriangles() argument
[all …]
DGrAATriangulator.cpp662 int GrAATriangulator::polysToAATriangles(Poly* polys, in polysToAATriangles() argument
664 int64_t count64 = CountPoints(polys, SkPathFillType::kWinding); in polysToAATriangles()
684 void* end = this->polysToTriangles(polys, verts, SkPathFillType::kWinding); in polysToAATriangles()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fClippingTests.cpp1594 const TriangleAttributeCase::TriangleData polys[] = in init() local
1612 …context, "multiple_0", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1613 …ltiple_0_viewport_center", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1614 …ltiple_0_viewport_corner", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1618 const TriangleAttributeCase::TriangleData polys[] = in init() local
1633 …context, "multiple_1", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1634 …ltiple_1_viewport_center", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1635 …ltiple_1_viewport_corner", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1639 const TriangleAttributeCase::TriangleData polys[] = in init() local
1654 …context, "multiple_2", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fClippingTests.cpp1598 const TriangleAttributeCase::TriangleData polys[] = in init() local
1616 …context, "multiple_0", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1617 …ltiple_0_viewport_center", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1618 …ltiple_0_viewport_corner", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1622 const TriangleAttributeCase::TriangleData polys[] = in init() local
1637 …context, "multiple_1", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1638 …ltiple_1_viewport_center", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1639 …ltiple_1_viewport_corner", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
1643 const TriangleAttributeCase::TriangleData polys[] = in init() local
1658 …context, "multiple_2", "polygon clipping", DE_ARRAY_BEGIN(polys), DE_ARRAY_END(polys), VIEW… in init()
[all …]
/third_party/skia/docs/examples/
DMatrix_TypeMask.cpp25 SkPoint polys[][4] = {{{0, 0}, {0, 1}, {1, 1}, {1, 0}}, {{0, 0}, {0, 1}, {2, 1}, {1, 0}}}; in draw() local
26 matrix.setPolyToPoly(polys[0], polys[1], 4); in draw()
/third_party/flutter/skia/docs/examples/
DMatrix_TypeMask.cpp25 SkPoint polys[][4] = {{{0, 0}, {0, 1}, {1, 1}, {1, 0}}, {{0, 0}, {0, 1}, {2, 1}, {1, 0}}}; in draw() local
26 matrix.setPolyToPoly(polys[0], polys[1], 4); in draw()
/third_party/flutter/skia/src/gpu/
DGrTessellator.cpp1587 Poly* polys = nullptr; in tessellate() local
1650 leftPoly = new_poly(&polys, leftPoly->lastVertex(), in tessellate()
1654 rightPoly = new_poly(&polys, rightPoly->lastVertex(), in tessellate()
1673 Poly* poly = new_poly(&polys, v, winding, alloc); in tessellate()
1688 return polys; in tessellate()
2251 void* polys_to_triangles(Poly* polys, SkPath::FillType fillType, bool emitCoverage, void* data) { in polys_to_triangles() argument
2252 for (Poly* poly = polys; poly; poly = poly->fNext) { in polys_to_triangles()
2283 int64_t count_points(Poly* polys, SkPath::FillType fillType) { in count_points() argument
2285 for (Poly* poly = polys; poly; poly = poly->fNext) { in count_points()
2332 Poly* polys = path_to_polys(path, tolerance, clipBounds, contourCnt, alloc, antialias, in PathToTriangles() local
[all …]
/third_party/mindspore/tests/st/numpy_native/
Dtest_math_ops.py2425 polys = [rand_int(1), rand_int(3), rand_int(7)]
2427 for p in polys: