Vertex / Vertice
Blitz3D Forums/Blitz3D Beginners Area/Vertex / Vertice
| ||
Hi, is there a difference in BB between a vertex and a vertice ? If no, why this piece of code isn't working ? Local i%,j%,nb_vert%,tot_nb_vert%,surf% Local x#,y#,z# For i = 1 To CountSurfaces(entitee) surf = GetSurface(entitee,i) nb_vert = CountVertices(surf) DebugLog "surface : " + surf + " nb vert : " + nb_vert tot_nb_vert = tot_nb_vert + nb_vert For j = 1 To nb_vert x = x + VertexX(surf,j) y = y + VertexY(surf,j) z = z + VertexZ(surf,j) Next Next I get an "vertex index out of range" error message when nb_vert = 94 and j=94 Any idea ? |
| ||
is there a difference in BB between a vertex and a vertice ? Nope. Vertex = singular while Vertices = plural. Any idea ? No, sorry. Looks fine to me. Then again, I'm mathematically challenged so anything looks fine to me.. :p |
| ||
I'd say you have to count from 0 to nb_vert-1. |
| ||
Indeed you seem to be right ;o) Thanks. |