-
Notifications
You must be signed in to change notification settings - Fork 129
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
Heightfield() output fails vnf_validate() #1345
Comments
This probably argues for deprecating heightfield() and replacing it with the textured cuboid top described in the comments in #1346 |
It does pass however if you set bottom < 0. ...even by as little as -1e-12. |
Mind you, if I were to rewrite this now, I'd have the bottom always at 0, and have two arguments that would define the minimum and maximum expected input values, and two more to define the high and low heights those would map to. |
Something like:
|
Running the 20x20 pixel png above through img2scad.py generates this file:
20x20S.txt
(I changed the extension from .scad to .txt because GitHub refuses to load .scad files here.)
...results in:
...and the following console messages:
validate_messages.txt
It also appears that the rendering attempt is not symmetrical while the input png is.
The text was updated successfully, but these errors were encountered: