asmorgan24 / pngslicer Goto Github PK
View Code? Open in Web Editor NEWSlices STL files into PNG images
Slices STL files into PNG images
Hi,
I am a beginner at Python, I understand how to use python using pip installation, is there a link or tutorial on how to use these files?
Thank you.
It's quite convenient and useful for me to find the code here.I can easily build and run it to slice my stl file.
But i find it useless to adjust the resolution of Z axis,so i can only get a fixed number of slices.It's a small problem foe me because it is sufficient for me.
It will be better if I can adjust the resolution of output images without cutting them.
Hello Mr. Andrew Morgan,
I am not very familiar with STL files. But I have an STL file which I don't need for my project, instead I need a PNG file as a segmentation mask. Using your code it works but since I didn't understand some of the parameters used from your code I didn't get the expected result.
*(I ran your code using res = 0.6, add_vertex = Vector3 (0.58, 0.58, 0.6) and scale = 20, it produced 75 png files (1.png, 12.png, 23.png.......). But I need 192 files, not 75. I'm definitely doing something wrong because I'm not quite sure about the usage and applications of the three mentioned parameters.
It would be great to hear back from you. Thanks.
It looks like the code in pySlice.py between line 109 and 111 is useless if you dont add a break line after "current_index = next_vert"
hello,
I stumbled across this project, and not sure if there is development going on with it but was testing with a range of stl files and just found something I'm not sure if this isn't implemented yet or something that's not possible.
but basically I have a tube-like stl shape, yet the created png files don't have a hole in the middle. and I guess this is super important as many stl have holes. and im not sure if that's something that should be already working or not.
the stl I tried -> https://www.thingiverse.com/thing:492067/files
other png slicer program img https://ibb.co/3NVkjSs
thanks :)
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.