Questions tagged [vertices]

A vertex (plural: vertices) has a slightly different meaning depending on context. Computer graphics - data structure that describes position of a point in 2D or 3D space. Geometry - point where higher-dimensional geometric objects meet; Graph theory - fundamental unit of graphs;

A vertex in computer graphics is a data structure that describes certain attributes, like the position of a point in 2-Dimensional or 3-Dimensional space, at multiple points on a surface.

In geometry, a vertex is a point where two or more curves, lines, or edges meet. As a consequence of this definition, the point where two lines meet to form an angle and the corners of polygons and polyhedra are vertices.

In mathematics, and more specifically in graph theory, a vertex or node is the fundamental unit of which graphs are formed (usually represented by a circle with a label)

471 questions
4
votes
4 answers

Generate mesh from one-color texture

I make a code to be able to draw and generate a sprite of this drawing. So I get a sprite with white background and my drawing (which is in a different color). My question : How could I remove the white background at runtime ?(with C# code) My…
AKIRK
  • 109
  • 1
  • 14
4
votes
2 answers

Quad drawing with GL_TRIANGLE_STRIP

I'm trying to draw a string in OpenGL with LWJGL from a texture atlas containing all chars next to another. Now I'm adding for each char three vertices to the mesh, which is going to be rendered by GL11.glDrawArrays(GL11.GL_TRIANGLE_STRIP, 0,…
Thomas Flynn
  • 361
  • 2
  • 4
  • 12
4
votes
1 answer

List all registered routes in Vertx

Is there any way (like in a symfony application) to list down all the available/register routes on a vertx server? I am facing an issue that my registered route is returning a 404 on running restassure tests.
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
4
votes
1 answer

create dynamic line from one object to another Three.js

I was like a line and other defined. My problem is I do not know how to dynamically so that a line is created from an object "a" to an object "b".
user5115790
4
votes
2 answers

Could somebody explain how to use glDrawElements (iPhone)?

Sorry for the duplicaiton, but I've been googlin' for hours now without any result. I have this (optimized) data of a simple cube exported from a converter: // 8 Verticies // 4 Texture Coordinates // 6 Normals // 12 Triangles static GLshort…
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
4
votes
1 answer

ThreeJS: How to remove vertices?

Adding new vertices to a three.js mesh goes by mesh.geometry.vertices.push(new THREE.Vector3(x, y, z)), but how do I remove them? "geometry" is an array, so I thought, I could remove vertices with: mesh.geometry.vertices.splice(vertexIndex,…
nora
  • 203
  • 1
  • 3
  • 8
4
votes
2 answers

Modifying OpenGL axis system

I'm using OpenGL with gluPerspective, what would I need to do to make it use an axis-system which the origin is top left instead of bottom left?
user187418
4
votes
3 answers

Reading .ply File Manually

I'm jumping into the world of .ply files. I've read a little bit about them but the documentation regarding their formatting doesn't quite seem to line up with what I have in my file. I've been trying to make sense of this article here but I'm not…
Sp1nt3rC311
  • 41
  • 1
  • 3
4
votes
1 answer

Distance between every Vertices in Graph

Is there is an algo/efficient way to calculate the distance from each vertex in a graph to all other vertices. Unlike Dijkstra - I'm looking for a way to calculate a distance for all vertices to all vertices (not one to all). Thanks!
Vitali Melamud
  • 1,267
  • 17
  • 40
4
votes
1 answer

How to texture a "perfect cube" drawn with triangles?

I'm trying to map a texture on a cube which is basicly a triangle strip with 8 vertices and 14 indicies: static const GLfloat vertices[8] = { -1.f,-1.f,-1.f, -1.f,-1.f, 1.f, -1.f, 1.f,-1.f, -1.f, 1.f, 1.f, 1.f,-1.f,-1.f, …
q9f
  • 11,293
  • 8
  • 57
  • 96
4
votes
3 answers

Sorting an Array of X and Y Vertice Points ? iOS / Objective C

I have a Core Data entity called Line. Each line contains an instance of a VerticePoint which contains an x and y property. These x and y vertices form simple 2D polygons. What I want to do is sort an array of these Line objects which is in random…
GuybrushThreepwood
  • 5,598
  • 9
  • 55
  • 113
3
votes
3 answers

draw texture in OpenGL Android from 0,0 coordinates

I'm new to opengGL and excuse if the questions are too naive. I'm going through some tuturials for seeking help on learning this. I have a small program written where i'm drawing a texture on a GLSurfaceView. I want to draw a number of…
Rikki
  • 125
  • 2
  • 7
3
votes
1 answer

Blender Python api vertices, edges and faces selection

Using the following code which I got from https://blender.stackexchange.com/questions/43127/how-do-i-select-specific-vertices-in-blender-using-python-script. I can get vertices to select but when I uncomment for edged or faces and comment for…
Shane G
  • 3,129
  • 10
  • 43
  • 85
3
votes
3 answers

Vertices limitation in OpenGL

I have an OpenGL scene with thousands of vertices and would like to pass them as VBOs/IBOs. Executing the glGetIntegerv(GL_MAX_ELEMENTS_VERTICES, &maxVertices) command reveals a limitation of 2048 max amount of vertices, despite the fact I have a…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
3
votes
1 answer

Add array of faces to BufferGeometry in three.js

Given a BufferGeometry, I can set its vertices from an array of type Float32Array like so: geometry.setAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) ); Is there a way to set the BufferGeometry's faces in a similar way using an…
Fede G
  • 197
  • 10
1 2
3
31 32