You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes you need to use handleSeams = true if you want to use the vertices buffer + texcoords.
But this mode can't be used as input of a mechanical mesh because some vertices are duplicated for the UV coordinates.
handleSeams = True was set in both cases. The main problem was that the loader was not initialized.
It worked best (also without the init) when passing the LinkPath, and not the data container itself.
So I guess this is more a thing of having example code than a bug.
Where would be the best place to document an example like this?
Activity
ScheiklP commentedon Jun 7, 2022
Did some more digging.
In the code above
texcoords=loader.texcoords,is not valid, because the loader did not actually read any data yet.Changing it to
fixed the issue. Is this still valid behavior?
epernod commentedon Jun 7, 2022
yes you need to use handleSeams = true if you want to use the vertices buffer + texcoords.
But this mode can't be used as input of a mechanical mesh because some vertices are duplicated for the UV coordinates.
ScheiklP commentedon Jun 7, 2022
handleSeams = Truewas set in both cases. The main problem was that the loader was not initialized.It worked best (also without the init) when passing the LinkPath, and not the data container itself.
So I guess this is more a thing of having example code than a bug.
Where would be the best place to document an example like this?
damienmarchal commentedon Jun 9, 2022
Hi @ScheiklP
Thanks for reporting and you are right in your conclusion (it is because that the object does not need to be initialize when created in python).
Actually getting rid of the need to init the data is a long standing issue: see sofa-framework/SofaPython3#173
This PR is probably the place to have future discussion on that topic and I close the issue,