|
Hi, I have an integer that is something like this:
but what I want is actually remove some vertices lets say 3,4 and 5.(this is only an example) So I want something that search for that number in the size of the length of the array and remove that element and the others that are bigger than that size cross it 1 number. Example:Lets say I want to remove the element 2 I want in the script to search for it, remove the element 2 and finally cross it 1 number. Something like this:
change it to:
Note: someone could say why you don't easily add if(i >=3 && i <= 5){ but as I say this is an example, that's not the finality of doing this.
(comments are locked)
|
what do you mean with vertex is ok to copy?
Jan 27 '11 at 01:49 AM
Uriel_96
Whatever you meant by "something that search for that number in the size and remove that element and the others that are bigger than that size cross it 1 number." I assume there will be some test for some vertex size. If it's simply avoiding vertices 3,4 and 5 then it would be if (i >=3 && i <= 5)
Jan 27 '11 at 02:35 AM
DaveA
the thing is that I'm trying to search for the : if (vertex is ok to copy). That part is actually what I want to know.
Jan 27 '11 at 03:26 AM
Uriel_96
I'm sorry. I don't understand the condition you want to test for. When you say 'size' do you mean the magnitude of the vector? Distance? Or the values of x, y, and/or z being over some limit? Or length of the array?
Jan 27 '11 at 03:52 AM
DaveA
I mean with the length of the array
Jan 27 '11 at 09:27 PM
Uriel_96
(comments are locked)
|
