I am mapping my texture onto my model. Some of the side faces are not mapping. The texture on them is the correct. I checked to see if sometimes it was maybe not sending correct uvPoints, but it is always sending the points. Some of my points are smaller than 0.005, so I tried change those to just 0, but it did the same thing. Any idea what is causing this?
Your 3d points for the faces or the UV points? You mean they are closer than 0.005 apart?
Have you checked the return value of your function calls? I’d add some return value checks and break into the debugger upon failure so you can inspect the input value.
I recommend you post examples that are complete and self-contained - that one can just hit build and run. Then it’s possible to see the whole picture of what is going on. My suspicion is that it’s something to do with the input you use to generate the mesh, but this is opaque to the code example.
Btw, where is the component variable in SKPModel::AddFace coming from? I don’t see it defined anywhere.
I see the function is named SKPModel::AddFace - which indicate it’s adding a single face, but it’s using SUEntitiesFill. Are you adding a single face in each Entities collection?
SUEntitiesFill would assume the entities you fill into is already empty.
But are you using SUEntitiesFill per face? SUEntitiesFill is intended to be used on an empty Entities collection with a single SUGeometryInput containing multiple faces.
lsize is the size of the vertices. It’s not creating the faces like my old code. When I debug, the set vertices is correct, but my add face says that the loop is NULL and the the face_index is zero? I guess my problem is with loop input. I’m not really sure what it is doing?