Open hroncok opened 2 years ago
Looks like the points get snapped to a very coarse grid, possibly just integers. Something wrong with text to float conversion.
Locale issue https://github.com/3MFConsortium/lib3mf/issues/282
There's no full support for lib3mf v2.x at this point, but I'm pretty sure it's not an OpenSCAD issue.
Oh, the infamous scanf breaks with Qt apps and locales with decimal commas :facepalm:
My Fedora system is Czech and the Ubuntu/Debian system I tested this on is English.
Feel free to close this here, if you are not interested in a workaround.
The workaround would be to wrap lib3mf library calls with temporary numeric locale reset to C.
Lets keep it open to monitor what's going on. I'll label it as discussion.
I hope at some point we can fully move to v2.x. so it might be usefull to keep the reference.
Upstream Patch submitted - https://github.com/3MFConsortium/lib3mf/pull/322.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Please do not use bountysource. Many devs have had trouble getting paid there. You can check out this lemmy community as an alternative https://lemmy.ml/c/bugbounties
For statements from devs who have been unable to cash out from bountysource see: https://github.com/bountysource/core/issues
@makeasnek feel free to post that as a separate issue, it's not really useful having that as comment on some random issue which not even has a bounty. I'll mark both comments as off-topic here.
I don't know if this is some problem in our Fedora packaging of lib3mf or openscad, but I'd like to get it fixed and I have no idea how. Note that I cannot reproduce this with Debian/Ubuntu OpenSCAD package, just in Fedora. My openscad and lib3mf are installed from the Fedora repos, I run Fedora 35, x86_64.
This also happens with
lib3mf-2.2.0-1.fc35.x86_64
from my own Fedora pull request, no magic fix happened by upgrading.Steps to reproduce
import("CSG.3mf");
and render/preview it.Expected result
The render/preview should look like the original model.
Actual result
The render/preview looks weird.
This looks like a problem with import, rather than export, because the exported 3MF file looks normal in PrusaSlicer.
I would appreciate any pointers. I've searched 3MF in issues here, but could not find anything. Thanks