- Home /
Create edges for vertices(JS)
In my mesh I'm creating vertices in different parts of the mesh, but I want to be able to create or connect does vertices to have an edge and be able to also quit some connections so like that only have 2 vertices without connecting each other. So my question is, how can I do something like this(i am asking for code using JavaScript)?
Answer by Jessy · Jan 26, 2011 at 12:58 AM
You "connect" vertices by making triangles. However, zero-area triangles, that is, "edges", won't display. Vectrosity provides a solution to visualize edges; my guess is it's using very thin meshes whose vertices are calculated in camera space, but I don't know for sure. It's low-priced so you may want to just buy a license.
Oh I see, you can use triangles to create new connections, but how about quit connections without deleting a vertice.
In the context of a mesh, breaking the connection between two vertices basically means removing an edge, which in turn means removing any triangles incident on that edge (either one or two, assu$$anonymous$$g the mesh is well-formed). So, the actual modification would be made to the triangle index array.
let me see if I understand, your saying that you can use create triangle to only create 1 edge?
Not sure if I understand the question, and to be honest, I'm really not sure what you're trying to do overall. Anyway, if this is something you need more open-ended help on, you might consider starting a thread in the forums.
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
How to find triangles using variables 1 Answer
Starting with simple pathfinding with mesh 4 Answers
3d Models, How to turn invisible 3 Answers