Giter Club home page Giter Club logo

pngslicer's People

Contributors

asmorgan24 avatar dkao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pngslicer's Issues

How to use

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.

good slicer

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.

Confused about some parameters used

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.

  1. My original 3D data shape is 256 * 256 * 192 and the pixel spacing is 0.58 * 0.58 * 0.6. I want my STL file to generate 192 PNG files.
    In your code, default_resolution = 0.05, scale = 20 and add_vertex = Vector3 (0.5,0.5,0.5).
    Could you kindly say, based on my case, which values ​​should I use?

*(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.

missing break

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"

STL with holes in it

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.