Problem to add texture to a Mesh

@aprouzeau said: Ok I get this now, but how define the index in order to draw a surface passing by all the points defined ? Knowing the fact that I don’t know the coordinates of the points when I write the code.

This is starting to feel kind of like a “How do I inject something right into my stomach?” sort of conversation (*). You have already ended up at some strange end place when chances are there were earlier choices to make that would make it a non-issue. Unfortunately, we don’t know what those decisions are. So the short answer is “math”.

(*) Conversation goes like this: (It’s a metaphor for about 30% of the threads here)
Q: “How do I inject something right into my stomach?”
R1: “You’re going to need a big needle!”
R2: “What?!? Why do you want to do such a thing?”
R3: “Make sure you use lots of antiseptic!”
Q: “Guys, I don’t understand why it’s so tough. I’ve seen this done all the time before.”
R1: “Maybe you should ask them how they did it.”
R2: “Wait, what is it that you want to inject in your stomach anyway.”
Q: “Food!. Duh. What else would I put in my stomach?!?”
R1: “Have you looked into ‘eating’ at all?”
Q: “Do I look stupid?!? What does a mouth have to do with my stomach?!?”
R1: “You should read some documentation on ingestion…”

TL;DR: if you are struggling with how to do something it is best not to assume anything about what led you there. When you ask for help, include all of the information.

3 Likes