BOSL2 icon indicating copy to clipboard operation
BOSL2 copied to clipboard

Heightfield() output fails vnf_validate()

Open RAMilewski opened this issue 5 months ago • 6 comments

20x20

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

include <BOSL2/std.scad>
include <tex/20x20S.scad>

vnf =   heightfield(custom, size = [20,20], bottom = 0, maxz = 1);
vnf_validate(vnf);

...results in: Screenshot 2024-01-13 at 4 59 46 PM ...and the following console messages: validate_messages.txt

It also appears that the rendering attempt is not symmetrical while the input png is.

RAMilewski avatar Jan 14 '24 01:01 RAMilewski