felixfeliz / paperfoldmodels Goto Github PK
View Code? Open in Web Editor NEWA Python script for unfolding triangular meshes in order to create papercraft models
License: MIT License
A Python script for unfolding triangular meshes in order to create papercraft models
License: MIT License
While working with some different flatteners i think paperfoldmodels has the best unwrapping algorithm. But there are some features which could be added from other flatteners to make it more powerful.
** Coplanar surfaces **
papercraft unfold detects the octagon in the center while paperfoldmodels subdivides into 6 triangles. so we get a lot of unrequired virtual folding lines
** Numbering **
another feature would be to give each surface a number. at the moment all edges have numbers only.
** Glue Tabs **
https://github.com/Avnerus/dxf2papercraftUV / dxf2papercraft.sourceforge.net add glue tabs to unfolded DXF models. This works really well.
dxf2papercruft has also the feature to do custom splittings with surface numbers. but this might make no sense with this unflattening algorithm. they all work different
Hey,
this algorithm set is really cool. Trying to make it work for me but while working with it i figured out some issue. I took a simple cube and that is not generated properly.
An unfolded cube looks like this:
https://www.thingiverse.com/thing:34553
happens on other meshes too. Maybe somebody has an idea whats the line of code causing this
Some more failure examples:
https://gitlab.com/inkscape/extensions/-/blob/master/Poly3DObjects/dodec.obj
https://gitlab.com/inkscape/extensions/-/blob/master/Poly3DObjects/cube.obj
https://gitlab.com/inkscape/extensions/-/blob/master/Poly3DObjects/great_dodec.obj
have a look at edge number 15. they have unequal size between the two pieces
Working files:
https://gitlab.com/inkscape/extensions/-/blob/master/Poly3DObjects/oct.obj
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.