Home
last modified time | relevance | path

Searched refs:triangle (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/third_party/boost/libs/geometry/test/strategies/
Dfranklin.cpp25 std::string const triangle = "POLYGON((0 0,0 4,6 0,0 0))"; in test_all() local
46 test_geometry<Point, polygon>("t1", "POINT(1 1)", triangle, s, true); in test_all()
47 test_geometry<Point, polygon>("t2", "POINT(3 3)", triangle, s, false); in test_all()
49 test_geometry<Point, polygon>("t3a", "POINT(0 0)", triangle, s, true); // diff in test_all()
50 test_geometry<Point, polygon>("t3b", "POINT(0 4)", triangle, s, false); in test_all()
51 test_geometry<Point, polygon>("t3c", "POINT(5 0)", triangle, s, true); // diff in test_all()
53 test_geometry<Point, polygon>("t4a", "POINT(0 2)", triangle, s, true); // diff in test_all()
54 test_geometry<Point, polygon>("t4b", "POINT(3 2)", triangle, s, false); in test_all()
55 test_geometry<Point, polygon>("t4c", "POINT(2 0)", triangle, s, true); // diff in test_all()
Dcrossings_multiply.cpp25 std::string const triangle = "POLYGON((0 0,0 4,6 0,0 0))"; in test_all() local
47 test_geometry<Point, polygon>("t1", "POINT(1 1)", triangle, s, true); in test_all()
48 test_geometry<Point, polygon>("t2", "POINT(3 3)", triangle, s, false); in test_all()
50 test_geometry<Point, polygon>("t3a", "POINT(0 0)", triangle, s, false); in test_all()
51 test_geometry<Point, polygon>("t3b", "POINT(0 4)", triangle, s, true); // diff in test_all()
52 test_geometry<Point, polygon>("t3c", "POINT(5 0)", triangle, s, false); in test_all()
54 test_geometry<Point, polygon>("t4a", "POINT(0 2)", triangle, s, false); in test_all()
55 test_geometry<Point, polygon>("t4b", "POINT(3 2)", triangle, s, false); in test_all()
56 test_geometry<Point, polygon>("t4c", "POINT(2 0)", triangle, s, false); in test_all()
Dwinding.cpp24 std::string const triangle = "POLYGON((0 0,0 4,6 0,0 0))"; in test_cartesian() local
46 test_geometry<Point, polygon>("t1", "POINT(1 1)", triangle, s, true); in test_cartesian()
47 test_geometry<Point, polygon>("t2", "POINT(3 3)", triangle, s, false); in test_cartesian()
49 test_geometry<Point, polygon>("t3a", "POINT(0 0)", triangle, s, false); in test_cartesian()
50 test_geometry<Point, polygon>("t3b", "POINT(0 4)", triangle, s, false); in test_cartesian()
51 test_geometry<Point, polygon>("t3c", "POINT(5 0)", triangle, s, false); in test_cartesian()
53 test_geometry<Point, polygon>("t4a", "POINT(0 2)", triangle, s, false); in test_cartesian()
54 test_geometry<Point, polygon>("t4b", "POINT(3 2)", triangle, s, false); in test_cartesian()
55 test_geometry<Point, polygon>("t4c", "POINT(2 0)", triangle, s, false); in test_cartesian()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_vbuf.c156 setup->triangle(setup, v0, v1, v2); in rect()
157 setup->triangle(setup, v3, v4, v5); in rect()
232 setup->triangle( setup, in lp_setup_draw_elements()
244 setup->triangle( setup, in lp_setup_draw_elements()
254 setup->triangle( setup, in lp_setup_draw_elements()
266 setup->triangle( setup, in lp_setup_draw_elements()
275 setup->triangle( setup, in lp_setup_draw_elements()
288 setup->triangle( setup, in lp_setup_draw_elements()
293 setup->triangle( setup, in lp_setup_draw_elements()
302 setup->triangle( setup, in lp_setup_draw_elements()
[all …]
Dlp_rast.h217 } triangle; member
242 lp_rast_arg_triangle( const struct lp_rast_triangle *triangle, in lp_rast_arg_triangle() argument
246 arg.triangle.tri = triangle; in lp_rast_arg_triangle()
247 arg.triangle.plane_mask = plane_mask; in lp_rast_arg_triangle()
258 lp_rast_arg_triangle_contained( const struct lp_rast_triangle *triangle, in lp_rast_arg_triangle_contained() argument
262 arg.triangle.tri = triangle; in lp_rast_arg_triangle_contained()
263 arg.triangle.plane_mask = x | (y << 8); in lp_rast_arg_triangle_contained()
Dlp_rast_tri.c114 arg2.triangle.tri = arg.triangle.tri; in lp_rast_triangle_3_16()
115 arg2.triangle.plane_mask = (1<<3)-1; in lp_rast_triangle_3_16()
131 arg2.triangle.tri = arg.triangle.tri; in lp_rast_triangle_4_16()
132 arg2.triangle.plane_mask = (1<<4)-1; in lp_rast_triangle_4_16()
141 arg2.triangle.tri = arg.triangle.tri; in lp_rast_triangle_ms_3_16()
142 arg2.triangle.plane_mask = (1<<3)-1; in lp_rast_triangle_ms_3_16()
158 arg2.triangle.tri = arg.triangle.tri; in lp_rast_triangle_ms_4_16()
159 arg2.triangle.plane_mask = (1<<4)-1; in lp_rast_triangle_ms_4_16()
296 const struct lp_rast_triangle *tri = arg.triangle.tri; in lp_rast_triangle_32_3_16()
298 int x = (arg.triangle.plane_mask & 0xff) + task->x; in lp_rast_triangle_32_3_16()
[all …]
/third_party/openGLES/extensions/SUN/
DSUN_triangle_list.txt34 OpenGL has two chained triangle primitives, TRIANGLE_STRIP and
35 TRIANGLE_FAN. For multiple, consecutive triangle strips or
36 triangle fans, the overhead of Begin and End, or separate calls to
40 Many surface tessellators produce triangle strips with very few
43 or switch from a triangle strip to a triangle fan, many times
48 savings. Unfortunately, the overhead of switching from a triangle
49 strip to a triangle fan, or vice versa, can reduce, or even
52 A new triangle list primitive, along with an associated replacement
54 triangle strips and fans to be specified within the same Begin/End
55 pair or from a single call to DrawArrays. The triangle list
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/SUN/
DSUN_triangle_list.txt34 OpenGL has two chained triangle primitives, TRIANGLE_STRIP and
35 TRIANGLE_FAN. For multiple, consecutive triangle strips or
36 triangle fans, the overhead of Begin and End, or separate calls to
40 Many surface tessellators produce triangle strips with very few
43 or switch from a triangle strip to a triangle fan, many times
48 savings. Unfortunately, the overhead of switching from a triangle
49 strip to a triangle fan, or vice versa, can reduce, or even
52 A new triangle list primitive, along with an associated replacement
54 triangle strips and fans to be specified within the same Begin/End
55 pair or from a single call to DrawArrays. The triangle list
[all …]
/third_party/skia/docs/examples/
DSKIA_LOGO.cpp11 SkPath s, k, a, triangle; in draw() local
79 triangle.reset(); in draw()
80 triangle.moveTo(362.64, 257.32); in draw()
81 triangle.lineTo(335.292, 293.392); in draw()
82 triangle.lineTo(307.8, 257.48); in draw()
83 triangle.lineTo(362.64, 257.32); in draw()
85 canvas->drawPath(triangle, p); in draw()
DSKIA_LOGO_ANIMATE.cpp10 SkPath s, k, a, triangle; in draw() local
91 triangle.reset(); in draw()
92 triangle.moveTo(362.64, 257.32); in draw()
93 triangle.lineTo(335.292, 293.392); in draw()
94 triangle.lineTo(307.8, 257.48); in draw()
95 triangle.lineTo(362.64, 257.32); in draw()
97 canvas->drawPath(triangle, p); in draw()
/third_party/boost/libs/geometry/example/
Dc04_b_custom_triangle_example.cpp29 struct triangle : public boost::array<P, 3> struct
35 BOOST_GEOMETRY_REGISTER_RING_TEMPLATED(triangle)
42 struct area<triangle<Point>, ring_tag>
45 static inline double apply(triangle<Point> const& t, Strategy const&) in apply()
58 triangle<boost::tuple<double, double> > t; in main()
Dc04_a_custom_triangle_example.cpp25 struct triangle : public boost::array<boost::geometry::model::d2::point_xy<double>, 4> struct
35 BOOST_GEOMETRY_REGISTER_RING(triangle)
44 inline double area<triangle>(const triangle& t) in area()
64 triangle t; in main()
/third_party/glslang/Test/
Dhlsl.clipdistance-4.geom8 void main(triangle in float4 pos[3] : SV_Position,
9 triangle in uint VertexID[3] : VertexID,
11 triangle in float2 clip0[3] : SV_ClipDistance0, // test input arrayed semantic vars
12 triangle in float2 clip1[3] : SV_ClipDistance1)
Dhlsl.clipdistance-1.geom7 void main(triangle in float4 pos[3] : SV_Position,
8 triangle in uint VertexID[3] : VertexID,
10triangle in float4 clip[3] : SV_ClipDistance) // externally: an array 3 of array 4 (not vec4!) o…
Dhlsl.clipdistance-2.geom7 void main(triangle in float4 pos[3] : SV_Position,
8 triangle in uint VertexID[3] : VertexID,
10triangle in float2 clip[3][2] : SV_ClipDistance) // externally: an array 3 of array 4 of float.
Dhlsl.clipdistance-3.geom8 void main(triangle in float4 pos[3] : SV_Position,
9 triangle in uint VertexID[3] : VertexID,
11triangle in float4 clip[3] : SV_ClipDistance) // externally: an array 3 of array 4 (not vec4!) o…
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/
DvktRayQueryBarycentricCoordinatesTests.cpp154 tcu::Vec3 calcCoordinates (const std::vector<tcu::Vec3>& triangle, float b, float c) in calcCoordinates() argument
156 DE_ASSERT(triangle.size() == 3u); in calcCoordinates()
164 return triangle[0] * a + triangle[1] * b + triangle[2] * c; in calcCoordinates()
203 const std::vector<tcu::Vec3> triangle = in iterate() local
210 …bottomLevelAS->addGeometry(triangle, true/*is triangles*/, VK_GEOMETRY_NO_DUPLICATE_ANY_HIT_INVOCA… in iterate()
233 …directions.push_back(extendToV4(calcCoordinates(triangle, barycentricABC.x(), barycentricABC.y()))… in iterate()
234 …directions.push_back(extendToV4(calcCoordinates(triangle, barycentricABC.y(), barycentricABC.x()))… in iterate()
235 …directions.push_back(extendToV4(calcCoordinates(triangle, barycentricABC.y(), barycentricABC.z()))… in iterate()
253 directions.push_back(extendToV4(calcCoordinates(triangle, b, c))); in iterate()
/third_party/boost/libs/algorithm/test/
Dinclusive_scan_test.cpp26 int triangle(int n) { return n*(n+1)/2; } in triangle() function
43 assert(v[i] == triangle(i)); in basic_tests_op()
51 assert(v[i] == triangle(i + 1)); in basic_tests_op()
82 assert(v[i] == 40 + triangle(i)); in basic_tests_init()
90 assert(v[i] == 30 + triangle(i + 1)); in basic_tests_init()
122 BOOST_CHECK(v[i] == 40 + triangle(i)); in basic_tests_op_init()
130 BOOST_CHECK(v[i] == 30 + triangle(i + 1)); in basic_tests_op_init()
Dexclusive_scan_test.cpp26 int triangle(int n) { return n*(n+1)/2; } in triangle() function
43 BOOST_CHECK(v[i] == 30 + triangle(i-1)); in basic_tests_init()
51 BOOST_CHECK(v[i] == 40 + triangle(i)); in basic_tests_init()
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DRenderer.cpp1120 Triangle *triangle = triangleBatch[unit]; in processPrimitiveVertices() local
1562 vertexRoutine(&triangle->v0, (unsigned int*)&batch, task, data); in processPrimitiveVertices()
1567 Triangle *triangle = triangleBatch[unit]; in setupSolidTriangles() local
1579 for(int i = 0; i < count; i++, triangle++) in setupSolidTriangles()
1581 Vertex &v0 = triangle->v0; in setupSolidTriangles()
1582 Vertex &v1 = triangle->v1; in setupSolidTriangles()
1583 Vertex &v2 = triangle->v2; in setupSolidTriangles()
1599 if(setupRoutine(primitive, triangle, &polygon, data)) in setupSolidTriangles()
1612 Triangle *triangle = triangleBatch[unit]; in setupWireframeTriangle() local
1619 const Vertex &v0 = triangle[0].v0; in setupWireframeTriangle()
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/NV/
DNV_fill_rectangle.txt43 This extension adds a new PolygonMode setting where a triangle is
45 box, disregarding the actual triangle edges. This can be useful for
84 FILL_RECTANGLE_NV mode modifies triangle rasterization to consider a sample
86 bounding box of the triangle after projection. Note that the barycentric
97 If clipping is applied, the triangle is culled rather than clipped. When
152 (1) Where in the pipeline does the conversion from triangle to screen-
156 earlier. So transform feedback would write out the triangle as if it were
157 being FILLed normally, and the triangle may have started life as a
159 a triangle by a geometry shader.
161 (2) What happens if such a triangle is clipped?
[all …]
/third_party/openGLES/extensions/NV/
DNV_fill_rectangle.txt43 This extension adds a new PolygonMode setting where a triangle is
45 box, disregarding the actual triangle edges. This can be useful for
84 FILL_RECTANGLE_NV mode modifies triangle rasterization to consider a sample
86 bounding box of the triangle after projection. Note that the barycentric
97 If clipping is applied, the triangle is culled rather than clipped. When
152 (1) Where in the pipeline does the conversion from triangle to screen-
156 earlier. So transform feedback would write out the triangle as if it were
157 being FILLed normally, and the triangle may have started life as a
159 a triangle by a geometry shader.
161 (2) What happens if such a triangle is clipped?
[all …]
/third_party/weston/clients/
Dsubsurfaces.c139 struct triangle { struct
401 struct triangle *tri = data; in triangle_frame_callback()
424 triangle_create_egl_surface(struct triangle *tri, int width, int height) in triangle_create_egl_surface()
448 struct triangle *tri = data; in triangle_resize_handler()
465 struct triangle *tri = data; in triangle_redraw_handler()
499 static struct triangle *
502 struct triangle *tri; in triangle_create()
519 triangle_destroy(struct triangle *tri) in triangle_destroy()
541 struct triangle *triangle; member
665 if (app->triangle) { in resize_handler()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingBarycentricCoordinatesTests.cpp193 tcu::Vec3 calcCoordinates (const std::vector<tcu::Vec3>& triangle, float b, float c) in calcCoordinates() argument
195 DE_ASSERT(triangle.size() == 3u); in calcCoordinates()
203 return triangle[0] * a + triangle[1] * b + triangle[2] * c; in calcCoordinates()
244 const std::vector<tcu::Vec3> triangle = in iterate() local
251 …bottomLevelAS->addGeometry(triangle, true/*is triangles*/, VK_GEOMETRY_NO_DUPLICATE_ANY_HIT_INVOCA… in iterate()
274 …directions.push_back(extendToV4(calcCoordinates(triangle, barycentricABC.x(), barycentricABC.y()))… in iterate()
275 …directions.push_back(extendToV4(calcCoordinates(triangle, barycentricABC.y(), barycentricABC.x()))… in iterate()
276 …directions.push_back(extendToV4(calcCoordinates(triangle, barycentricABC.y(), barycentricABC.z()))… in iterate()
294 directions.push_back(extendToV4(calcCoordinates(triangle, b, c))); in iterate()
/third_party/boost/libs/geometry/test/algorithms/
Dis_convex.cpp44 std::string const triangle = "polygon((1 1, 1 4, 5 1, 1 1))"; in test_all() local
46 test_one<bg::model::ring<P> >("triangle", triangle, true); in test_all()
48 test_one<bg::model::ring<P, false, false> >("triangle", triangle, true); in test_all()

12345678910>>...17