[Closed] Add vertizes to mesh
I want to add vertices to existing mesh. Here the steps I am using to add a single vertex to the mesh:
- Select the mesh.
- $.numverts+=1 –increase the number of vertices by 1
- setvert $ ($.numverts) v –v is the vertex value
The code seems to worck fine, but after disselecting the mesh it fu***s up and the mesh just disapears. What am I doing wrong and is there a way to fix it?
You need to read the documentation to understand how meshes work and how to work with them.
(
obj = converttomesh (box())
setnumverts obj 9 true
setvert obj 9 [0,0,40]
update obj
)
Thanks, that was really helpfull. But what exactly you mean by ” read the documentation to understand how meshes work and how to work with them”?
I don’t know how I could say it in a different way to ensure a clear reading and understanding.
But, if you could tell me what part of the sentence is confusing or you don’t understand, I will try to explain it better.
it’s not a problem to add a vertex to the mesh. but without building a face using newly added vertex is hard to see a result.
if a vertex is not used in any mesh’s face this vertex is isolated. Many plugins force deleting of isolated vertices from the mesh. in general it’s a bad practice to have meshes with isolated vertices (both geometry and map)
I wish I could tell you the documentation is a “novel book” and that you could know how it ends just by reading the latest pages, but it is not the case.
So what should you read to understand how meshes work in 3ds Max?
You should read and digest the whole topic, even if you don’t need, you will learn and find many interesting things. Some of them you may use right away, and other will just sit on your brain until you need.
To start with, just go here and explore every section there. It might look like a waste of time at first glance, but you’ll be thankful in the future.
Also, don’t forget there are a PLENTY of AMAZING examples in this forum, much better than the Help file, but unfortunately harder to find.
Thanks for the explanation, will take a look at that complete stuff, but posibly you have already noticed english is really my big problem and english used in documentation is even more dificult, but I try.
Here was also asked the question why I want to increase the number of vertices, the reason is I need to have the relation between mesh faces and mapFaces of 1:1 so I have to copy vertices using more then 1 mapVert. I am also fixing the faces to feat the new vertex to mapVertex relation, so no isolated vertices left.