/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/3rdparty/meshoptimizer/demo/ |
H A D | main.cpp | 58 std::vector<Vertex> vertices; member 107 vertices[vertex_offset + 0] = vertices[vertex_offset - 3]; in parseObj() 108 vertices[vertex_offset + 1] = vertices[vertex_offset - 1]; in parseObj() 207 const Vertex* vertices = &mesh.vertices[0]; in hashMesh() local 281 …meshopt_optimizeVertexFetch(&mesh.vertices[0], &mesh.indices[0], mesh.indices.size(), &mesh.vertic… in optFetch() 291 …meshopt_remapVertexBuffer(&mesh.vertices[0], &mesh.vertices[0], mesh.vertices.size(), sizeof(Verte… in optFetchRemap() 384 …lod.vertices.resize(meshopt_optimizeVertexFetch(&lod.vertices[0], &lod.indices[0], lod.indices.siz… in simplify() 405 …lod.vertices.resize(meshopt_optimizeVertexFetch(&lod.vertices[0], &lod.indices[0], lod.indices.siz… in simplifySloppy() 498 std::vector<Vertex> vertices = mesh.vertices; in simplifyComplete() local 502 …meshopt_optimizeVertexFetch(&vertices[0], &indices[0], indices.size(), &vertices[0], vertices.size… in simplifyComplete() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/3rdparty/meshoptimizer/demo/ |
H A D | main.cpp | 58 std::vector<Vertex> vertices; member 107 vertices[vertex_offset + 0] = vertices[vertex_offset - 3]; in parseObj() 108 vertices[vertex_offset + 1] = vertices[vertex_offset - 1]; in parseObj() 207 const Vertex* vertices = &mesh.vertices[0]; in hashMesh() local 281 …meshopt_optimizeVertexFetch(&mesh.vertices[0], &mesh.indices[0], mesh.indices.size(), &mesh.vertic… in optFetch() 291 …meshopt_remapVertexBuffer(&mesh.vertices[0], &mesh.vertices[0], mesh.vertices.size(), sizeof(Verte… in optFetchRemap() 384 …lod.vertices.resize(meshopt_optimizeVertexFetch(&lod.vertices[0], &lod.indices[0], lod.indices.siz… in simplify() 405 …lod.vertices.resize(meshopt_optimizeVertexFetch(&lod.vertices[0], &lod.indices[0], lod.indices.siz… in simplifySloppy() 498 std::vector<Vertex> vertices = mesh.vertices; in simplifyComplete() local 502 …meshopt_optimizeVertexFetch(&vertices[0], &indices[0], indices.size(), &vertices[0], vertices.size… in simplifyComplete() [all …]
|
/dports/cad/py-ezdxf/ezdxf-0.16.3/src/ezdxf/math/ |
H A D | shape.py | 26 self.vertices: List[Vec2] = [] if vertices is None else Vec2.list( 27 vertices) 32 return BoundingBox2d(self.vertices) 35 return self.__class__(self.vertices) 42 self.vertices = [v + delta for v in self.vertices] 46 self.vertices = [Vec2((v.x * sx, v.y * sy)) for v in self.vertices] 50 self.vertices = [v * scale for v in self.vertices] 61 self.vertices = [v.rotate(angle) for v in self.vertices] 87 return len(self.vertices) 91 return self.vertices[item] [all …]
|
/dports/science/v_sim/v_sim-3.8.0/src/extensions/ |
H A D | box_legend.c | 306 (vertices[1][0] - vertices[0][0]) + 307 (vertices[1][1] - vertices[0][1]) * 308 (vertices[1][1] - vertices[0][1]) + 309 (vertices[1][2] - vertices[0][2]) * 310 (vertices[1][2] - vertices[0][2])); 312 (vertices[3][0] - vertices[0][0]) + 313 (vertices[3][1] - vertices[0][1]) * 314 (vertices[3][1] - vertices[0][1]) + 315 (vertices[3][2] - vertices[0][2]) * 316 (vertices[3][2] - vertices[0][2])); [all …]
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/src/video/gl/ |
H A D | gl_painter.cpp | 204 context.set_positions(vertices, sizeof(vertices)); in draw_gradient() 337 vertices[p++] = x; vertices[p++] = y+h; in draw_inverse_ellipse() 340 vertices[p++] = screen_width; vertices[p++] = 0; in draw_inverse_ellipse() 341 vertices[p++] = 0; vertices[p++] = 0; in draw_inverse_ellipse() 342 vertices[p++] = x; vertices[p++] = y-h; in draw_inverse_ellipse() 345 vertices[p++] = screen_width; vertices[p++] = 0; in draw_inverse_ellipse() 347 vertices[p++] = x+w; vertices[p++] = y; in draw_inverse_ellipse() 350 vertices[p++] = 0; vertices[p++] = 0; in draw_inverse_ellipse() 352 vertices[p++] = x-w; vertices[p++] = y; in draw_inverse_ellipse() 368 vertices[p++] = 0; vertices[p++] = 0; in draw_inverse_ellipse() [all …]
|
/dports/finance/py-quantecon/quantecon-0.5.2/quantecon/optimize/ |
H A D | nelder_mead.py | 185 n = vertices.shape[1] 230 vertices[worst_val_idx] = x_r 267 vertices[i] = vertices[best_val_idx] + σ * \ 268 (vertices[i] - vertices[best_val_idx]) 276 (vertices[worst_val_idx] - vertices[sort_ind[n]]) / n 291 x_bar += (vertices[worst_val_idx] - vertices[sort_ind[n]]) / n 296 vertices) 325 vertices[:] = x0 332 if vertices[i + 1, i] != 0.: 335 vertices[i + 1, i] = zdelt [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/g2d/motor/ |
H A D | Triangle.java | 77 return vertices[0].getZ() == 0 && vertices[1].getZ() == 0 && vertices[2].getZ() == 0; in isIn2D() 99 return p.equals(vertices[0]) || p.equals(vertices[1]) || p.equals(vertices[2]); in pointOnVertices() 308 …if ((s.vertices[0].equals(vertices[0]) || s.vertices[0].equals(vertices[1]) || s.vertices[0].equal… in isSegmentInside() 309 …&& (s.vertices[1].equals(vertices[0]) || s.vertices[1].equals(vertices[1]) || s.vertices[1].equals… in isSegmentInside() 317 Vector3d v3 = s.vertices[0].minus(vertices[0]); in isSegmentIntersects() 318 Vector3d v4 = s.vertices[1].minus(vertices[0]); in isSegmentIntersects() 325 Vector3d v2 = s.vertices[0].minus(s.vertices[1]); in isSegmentIntersects() 336 Vector3d v = s.vertices[1].minus(vertices[0]); in getSegmentIntersection() 385 Vector3d v2 = t.vertices[2].minus(t.vertices[1]); in breakTriangleOnLine() 477 u = Vector3d.getBarycenter(t.vertices[1], t.vertices[2], c, 1 - c); in breakTriangleOnLine() [all …]
|
/dports/devel/love07/love-HEAD/src/modules/graphics/opengl/ |
H A D | Image.cpp | 41 vertices[0].x = 0; vertices[0].y = 0; in Image() 42 vertices[1].x = 0; vertices[1].y = height; in Image() 44 vertices[3].x = width; vertices[3].y = 0; in Image() 46 vertices[0].s = 0; vertices[0].t = 0; in Image() 47 vertices[1].s = 0; vertices[1].t = 1; in Image() 48 vertices[2].s = 1; vertices[2].t = 1; in Image() 49 vertices[3].s = 1; vertices[3].t = 0; in Image() 90 vertices[0].x = 0; vertices[0].y = 0; in getRectangleVertices() 100 vertices[0].s = tx; vertices[0].t = ty; in getRectangleVertices() 101 vertices[1].s = tx; vertices[1].t = ty+th; in getRectangleVertices() [all …]
|
/dports/science/simbody/simbody-Simbody-3.7/SimTKmath/tests/ |
H A D | TestTriangleMesh.cpp | 34 vector<Vec3> vertices; in testTriangleMesh() local 35 vertices.push_back(Vec3(0, 0, 0)); in testTriangleMesh() 36 vertices.push_back(Vec3(1, 0, 0)); in testTriangleMesh() 37 vertices.push_back(Vec3(0, 1, 0)); in testTriangleMesh() 38 vertices.push_back(Vec3(0, 0, 1)); in testTriangleMesh() 112 vector<Vec3> vertices; in testIncorrectMeshes() local 183 vector<Vec3> vertices; in testOBBTree() local 207 vector<Vec3> vertices; in testRayIntersection() local 231 vector<Vec3> vertices; in testSmoothMesh() local 258 vector<Vec3> vertices; in testFindNearestPoint() local [all …]
|
/dports/math/openturns/openturns-1.18/lib/test/ |
H A D | t_Mesh_draw.cxx | 58 vertices.add(p); in main() 62 vertices.add(p); in main() 66 vertices.add(p); in main() 70 vertices.add(p); in main() 74 vertices.add(p); in main() 78 vertices.add(p); in main() 111 vertices.add(p); in main() 116 vertices.add(p); in main() 121 vertices.add(p); in main() 126 vertices.add(p); in main() [all …]
|
/dports/math/cgal/CGAL-5.3/include/CGAL/ |
H A D | Simple_polygon_visibility_2.h | 104 vertices.clear(); in detach() 140 vertices.push_back(vertices[0]); in compute_visibility() 187 vertices.push_back( vertices[0] ); in compute_visibility() 290 vertices.clear(); in output() 355 w = vertices[1]; in visibility_region_impl() 362 w = vertices[1]; in visibility_region_impl() 479 Segment_2 seg2( vertices[i-1], vertices[i] ); in right() 563 traits->orientation_2_object()(q, vertices[k], vertices[k+1] ); in scana() 600 if ( (k+1 == vertices.size()-1) && (vertices[0] == u) ) { in scanb() 632 w = vertices[k+1]; in scand() [all …]
|
/dports/games/libretro-2048/libretro-2048-35a299c/cairo/src/ |
H A D | cairo-pen.c | 78 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 109 free (pen->vertices); in _cairo_pen_fini() 134 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 155 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 160 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 163 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 166 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 169 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 173 pen->vertices = vertices; in _cairo_pen_add_points() 323 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/gfx/cairo/cairo/src/ |
H A D | cairo-pen.c | 78 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 109 free (pen->vertices); in _cairo_pen_fini() 134 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 155 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 160 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 163 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 166 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 169 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 173 pen->vertices = vertices; in _cairo_pen_add_points() 323 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/gfx/cairo/cairo/src/ |
H A D | cairo-pen.c | 78 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 109 free (pen->vertices); in _cairo_pen_fini() 134 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 155 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 160 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 163 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 166 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 169 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 173 pen->vertices = vertices; in _cairo_pen_add_points() 323 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/gfx/cairo/cairo/src/ |
H A D | cairo-pen.c | 78 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 109 free (pen->vertices); in _cairo_pen_fini() 134 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 155 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 160 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 163 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 166 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 169 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 173 pen->vertices = vertices; in _cairo_pen_add_points() 323 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/graphics/cairo/cairo-1.17.4/src/ |
H A D | cairo-pen.c | 73 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 106 free (pen->vertices); in _cairo_pen_fini() 131 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 152 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 157 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 160 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 163 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 166 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 170 pen->vertices = vertices; in _cairo_pen_add_points() 315 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/gfx/cairo/cairo/src/ |
H A D | cairo-pen.c | 73 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 106 free (pen->vertices); in _cairo_pen_fini() 131 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 152 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 157 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 160 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 163 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 166 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 170 pen->vertices = vertices; in _cairo_pen_add_points() 315 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/devel/love08/love-0.8.0/src/modules/graphics/opengl/ |
H A D | Image.cpp | 43 vertices[0].x = 0; vertices[0].y = 0; in Image() 44 vertices[1].x = 0; vertices[1].y = height; in Image() 46 vertices[3].x = width; vertices[3].y = 0; in Image() 48 vertices[0].s = 0; vertices[0].t = 0; in Image() 49 vertices[1].s = 0; vertices[1].t = 1; in Image() 50 vertices[2].s = 1; vertices[2].t = 1; in Image() 51 vertices[3].s = 1; vertices[3].t = 0; in Image() 91 vertices[0].x = 0; vertices[0].y = 0; in getRectangleVertices() 101 vertices[0].s = tx; vertices[0].t = ty; in getRectangleVertices() 102 vertices[1].s = tx; vertices[1].t = ty+th; in getRectangleVertices() [all …]
|
/dports/www/firefox/firefox-99.0/gfx/cairo/cairo/src/ |
H A D | cairo-pen.c | 73 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 106 free (pen->vertices); in _cairo_pen_fini() 131 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 152 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 157 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 160 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 163 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 166 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 170 pen->vertices = vertices; in _cairo_pen_add_points() 315 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/cairo/cairo/src/ |
H A D | cairo-pen.c | 73 if (unlikely (pen->vertices == NULL)) in _cairo_pen_init() 106 free (pen->vertices); in _cairo_pen_fini() 131 memcpy (pen->vertices, other->vertices, in _cairo_pen_init_copy() 152 cairo_pen_vertex_t *vertices; in _cairo_pen_add_points() local 157 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 160 memcpy (vertices, pen->vertices, in _cairo_pen_add_points() 163 vertices = _cairo_realloc_ab (pen->vertices, in _cairo_pen_add_points() 166 if (unlikely (vertices == NULL)) in _cairo_pen_add_points() 170 pen->vertices = vertices; in _cairo_pen_add_points() 315 prev = &pen->vertices[i_prev]; in _cairo_pen_compute_slopes() [all …]
|
/dports/cad/horizon-eda/horizon-2.1.0/src/core/tools/ |
H A D | tool_draw_polygon_rectangle.cpp | 26 temp->vertices.clear(); in update_polygon() 73 temp->vertices.emplace_back(p0); in update_polygon() 75 temp->vertices.emplace_back(p1); in update_polygon() 80 temp->vertices.emplace_back(p0); in update_polygon() 83 temp->vertices.emplace_back(p1); in update_polygon() 87 temp->vertices.emplace_back(p0); in update_polygon() 94 temp->vertices.emplace_back(p0); in update_polygon() 96 temp->vertices.emplace_back(p1); in update_polygon() 104 temp->vertices.emplace_back(p1); in update_polygon() 110 temp->vertices.emplace_back(p0); in update_polygon() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/gel/vsol/tests/ |
H A D | test_vsol_polygon_3d.cxx | 31 vertices[0]=new vsol_point_3d(0,0,5); in test_vsol_polygon_3d() 32 vertices[1]=new vsol_point_3d(3,1,5); in test_vsol_polygon_3d() 33 vertices[2]=new vsol_point_3d(5,3,5); in test_vsol_polygon_3d() 34 vertices[3]=new vsol_point_3d(3,6,5); in test_vsol_polygon_3d() 35 vertices[4]=new vsol_point_3d(1,4,5); in test_vsol_polygon_3d() 77 vertices[0]=new vsol_point_3d(1,1,5); in test_vsol_polygon_3d() 78 vertices[1]=new vsol_point_3d(2,1,5); in test_vsol_polygon_3d() 79 vertices[2]=new vsol_point_3d(1,0,5); in test_vsol_polygon_3d() 80 vertices[3]=new vsol_point_3d(0,1,5); in test_vsol_polygon_3d() 82 poly=new vsol_polygon_3d(vertices); in test_vsol_polygon_3d() [all …]
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/general/ |
H A D | clear-varray-2.0.c | 74 vertices[0][0] = 10; in piglit_display() 75 vertices[0][1] = 10; in piglit_display() 76 vertices[0][2] = 0; in piglit_display() 77 vertices[0][3] = 1; in piglit_display() 81 vertices[1][2] = 0; in piglit_display() 82 vertices[1][3] = 1; in piglit_display() 86 vertices[2][2] = 0; in piglit_display() 87 vertices[2][3] = 1; in piglit_display() 91 vertices[3][2] = 0; in piglit_display() 92 vertices[3][3] = 1; in piglit_display() [all …]
|
/dports/math/eigen3/eigen-3.3.9/demos/opengl/ |
H A D | gpuhelper.cpp | 100 static float vertices[][3] = { in drawUnitCube() local 111 …glNormal3f(0,0,-1); glVertex3fv(vertices[0]); glVertex3fv(vertices[2]); glVertex3fv(vertices[3]); … in drawUnitCube() 112 …glNormal3f(0,0, 1); glVertex3fv(vertices[4]); glVertex3fv(vertices[5]); glVertex3fv(vertices[7]); … in drawUnitCube() 113 …glNormal3f(0,-1,0); glVertex3fv(vertices[0]); glVertex3fv(vertices[1]); glVertex3fv(vertices[5]); … in drawUnitCube() 114 …glNormal3f(0, 1,0); glVertex3fv(vertices[2]); glVertex3fv(vertices[6]); glVertex3fv(vertices[7]); … in drawUnitCube() 115 …glNormal3f(-1,0,0); glVertex3fv(vertices[0]); glVertex3fv(vertices[4]); glVertex3fv(vertices[6]); … in drawUnitCube() 116 …glNormal3f( 1,0,0); glVertex3fv(vertices[1]); glVertex3fv(vertices[3]); glVertex3fv(vertices[7]); … in drawUnitCube()
|
/dports/math/stanmath/math-4.2.0/lib/eigen_3.3.9/demos/opengl/ |
H A D | gpuhelper.cpp | 100 static float vertices[][3] = { in drawUnitCube() local 111 …glNormal3f(0,0,-1); glVertex3fv(vertices[0]); glVertex3fv(vertices[2]); glVertex3fv(vertices[3]); … in drawUnitCube() 112 …glNormal3f(0,0, 1); glVertex3fv(vertices[4]); glVertex3fv(vertices[5]); glVertex3fv(vertices[7]); … in drawUnitCube() 113 …glNormal3f(0,-1,0); glVertex3fv(vertices[0]); glVertex3fv(vertices[1]); glVertex3fv(vertices[5]); … in drawUnitCube() 114 …glNormal3f(0, 1,0); glVertex3fv(vertices[2]); glVertex3fv(vertices[6]); glVertex3fv(vertices[7]); … in drawUnitCube() 115 …glNormal3f(-1,0,0); glVertex3fv(vertices[0]); glVertex3fv(vertices[4]); glVertex3fv(vertices[6]); … in drawUnitCube() 116 …glNormal3f( 1,0,0); glVertex3fv(vertices[1]); glVertex3fv(vertices[3]); glVertex3fv(vertices[7]); … in drawUnitCube()
|