Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the API please #3

Open
MrFiregore opened this issue May 30, 2018 · 7 comments
Open

Document the API please #3

MrFiregore opened this issue May 30, 2018 · 7 comments

Comments

@MrFiregore
Copy link

In what units do you measure the volume?
If I want to obtain height, width and length, should I implement a handler?
Do vectors have no units?

@ChubV
Copy link
Owner

ChubV commented May 30, 2018

STL files do not have a unit. The actual size depends on the actual program you use for the interpretation. So you can scale it both to nanometers or light years.

Yeah, handlers are the best way to obtain any model-related measurements.

@MrFiregore
Copy link
Author

by default what is the volumen unit?

@ChubV
Copy link
Owner

ChubV commented May 30, 2018

It depends on the software you're using to create the model or to print it. So look at the settings of your software. Most of the soft use mm as the default units, but you can customize it to scale your model.

@MrFiregore
Copy link
Author

I do not have any software for rendering.
My operating system is Windows 10.
I send captures of the obtained results.

With other page:

image

With your library:

image

The stl : https://cdn.thingiverse.com/assets/ef/b1/13/86/ef/MatM_Iron_Man_Helmet.stl

@ChubV
Copy link
Owner

ChubV commented May 30, 2018

So 107532274 and 107433137 is kinda 0,09% difference which may be caused by rounding or the method of volume calculations.

@MrFiregore
Copy link
Author

ok, I have learned more about STL file and how it works...
You're in the truth, but it could be solved with ini_set('precision', 16);

@MGatner
Copy link
Contributor

MGatner commented May 10, 2021

This thread was unrelated to documentation, but ti would be good to have a little bit more info either in the README or a dedicated file. I will consider adding this after I have worked with the library some more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants