A vertex is a single point in a 3D object, used for simple model creation or advanced animation systems.
Questions tagged [vertex]
756 questions
-1
votes
1 answer
Counting the number of neighbors in common between two vertices in R
I have tried to compute the number of neighbors in common between two vertices.
the test file contain
1 2
1 4
1 5
2 3
2 4
2 5
3 4
y<-read.table("test.txt")
require(igraph)
g<-graph.data.frame(y, directed=F, vertices=NULL)
for(i in 1:5)
{
for(j…

Camilla
- 117
- 1
- 10
-1
votes
3 answers
construct typedef without hardcoding
There is this typedef for openGL
typedef struct
{
float Position[3];
float Color[4];
} Vertex;
The example hard-codes the postions and colors which works:
Vertex Vertices[] =
{
{{1, -1, 0}, {1, 0, 0, 1}},
{{1, 1, 0}, {1, 0, 0, 1}},
{{-1, 1,…

user1709076
- 2,538
- 9
- 38
- 59
-1
votes
1 answer
Dijkstra's Algorithm Java, path error when use multiple source
I found Dijkstra's Algorithm from internet (here the original code) , and I try to use multiple source instead multiple destination. But when I run the code, output isn't right, it just shows first vertex for all output.
import…

pdwitya
- 3
- 3
-1
votes
1 answer
Visualizing output from N-body code using OpenTK and C#
I wrote an N-body code in C# which outputs an array with x,y,z positions of N objects. I want to render it on a screen frame by frame using OpenTK.
Basically, I need to figure out how to create an array of vertices using VBO-s, show it on a screen,…

fbartolic
- 403
- 1
- 5
- 18
-1
votes
2 answers
Find vertex from a object by using vertex detection
I would like to find all vertex (e.g. return x, y positions) for the black object.
I will use Java and JavaCV to implements. Is there any API or algorithm can help?
Sorry for not enough reputation to post images. I post the link here.
The original…

user3526130
- 43
- 8
-1
votes
1 answer
Edge immediately to the left of a vertex
I would like to know how to know the "edge immediately to the left of a vertex", just by using geometry?
Here is an image showing the problem.
For instance, how can I know that edge e5 is directly left to vertex e4.
Or that the edge directly left to…

Priastou
- 1
-1
votes
1 answer
Convert vertex label value of the jgraph to array of strings
Basically I have this code to print the cell label of each vertex I click of the jgraph. I am trying to store the values of the cells into a string array. I have tried this:
graphComponent.getGraphControl().addMouseListener(new MouseAdapter() {
…

user2598911
- 379
- 2
- 6
- 22
-1
votes
1 answer
Unexpected end of file in GLSL fragment shader
I'm just working on some per fragment lighting, working in visual studio 2010 C++ and using GLSL, and for some reason, only this fragment shader is having issues, I have pass through fragment shaders that work, and all of my vertex shaders work, so…

user2272511
- 1
- 2
-2
votes
0 answers
Transformation vertices for AABB collision detection
I have an ArrayList where I store all the vertices of a 3D object. They are needed for collision detection (AABB) and for rendering them in 3D space. However, I have found that my method for transforming these vertices does not work as I…

notwhale
- 19
- 4
-2
votes
1 answer
From two interesting lines, Create box and get all 4 corners
I have two lines intersecting each other, How can I put a box upon lines to get 4 corner coordinates.
The image explains the question very well. The red dotted lines(box) are just illusionary, Purpose is to get 4(????) corners of the box.
Lines can…

indrajit
- 303
- 1
- 14
-2
votes
1 answer
Vertex connectivity computing with R
unfortunately this is my second time I post this question because I did not receive an answer in the first place. Googling it the past few days, did not help me so I hope, that this time, someone can help me.
I have to calculate the vertex…

Blackeagle
- 7
- 1
-2
votes
1 answer
3ds max wont weld vertices of poly made from shape
So I have tried to make a glass panel of car headlight by caping, extruding and so on. It didnt work, so I have created a spline from shape I need and somehow turned it into poly and now I am trying to weld vertices to the base. It doesnt work.…

DaveOshiCZ
- 27
- 1
- 1
- 4
-2
votes
1 answer
In OpenGL why won't my buffer object draw unless I respecify the vertex attributes again?
I thought the VAO (Vertex Array Object) was supposed to store state like the vertex attributes. When I create a VBO I specify my vertex attributes:
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(float),…

Zebrafish
- 11,682
- 3
- 43
- 119
-2
votes
2 answers
"(obj1.compareTo(obj2) <= 0) ? one:two" meaning?
I'm using some code that I got from an online source for my graph theory portion of a chemical modeling project. I'm trying to make sense of this. What does the first line of code mean in regards to the class's decision of which is one overall? One…

PianoFingers
- 117
- 2
- 6
-2
votes
1 answer
List Mysteriously Deletes Itself With Seemingly No Explanation
I'm currently working on a program to implement Dijkstra's algorithm just for fun really. Its probably far beyond my skill level but I thought I'd give it a go anyway.
So far I've made a vertex class which - among other things - has a property…

Jack Arthur
- 3
- 3