cpederkoff / stl-to-voxel

Turn STL files into voxels, images, and videos
MIT License
138 stars 75 forks source link

There are many bad lines in the results #14

Closed HyperGroups closed 1 year ago

HyperGroups commented 4 years ago

There are many bad lines in the result png.

youngkiu commented 3 years ago

@HyperGroups Would you like to try again with the latest version?

youngkiu commented 3 years ago

@HyperGroups I want to add an issue file to the test case. Could you please share the file that caused the problem?

RSMpy commented 3 years ago

I have a problem installing and getting started, is there a demo I can use? I would be gratefull if you can help,

I enter this in command :

$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git $ stltovoxel input.stl output.png

and this in return:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>$ pip install git+https://github.com/cpederkoff/stl-to-voxel.git '$' is not recognized as an internal or external command, operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>$ stltovoxel input.stl output.png '$' is not recognized as an internal or external command, operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>pip install git+https://github.com/cpederkoff/stl-to-voxel.git Fatal error in launcher: Unable to create process using '"c:\python\python.exe" "C:\python\Scripts\pip.exe" install git+https://github.com/cpederkoff/stl-to-voxel.git': The system cannot find the file specified.

I tried this from the forum as well with no proress: https://stackoverflow.com/questions/67380124/voxelization-of-stl-file-writing-into-np-array

import stl_reader import stltovoxel import numpy as np import copy import os import sys

input=r"C:\Users\user\Example.stl" output=r"C:\Users\user\Test.xyz" resolution = 50 #Resolution, into how many layers the model should be divided stltovoxel.doExport(input, output, resolution)

I think Im doing something wrong, Im using google colab.

cpederkoff commented 3 years ago

Hi @RSMpy I've moved your comment to this issue https://github.com/cpederkoff/stl-to-voxel/issues/34, and I can help over there.

youngkiu commented 2 years ago

@HyperGroups @RSMpy Could you please share the stl file in question? Also, can you attach the error screen as well?