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

Output min and max elevations within generated output #47

Closed
doug-harriman opened this issue Jun 22, 2021 · 13 comments
Closed

Output min and max elevations within generated output #47

doug-harriman opened this issue Jun 22, 2021 · 13 comments

Comments

@doug-harriman
Copy link

doug-harriman commented Jun 22, 2021

On the output page that lists the parameters used for generation, I would like to request that you also output the minimum and maximum elevations within the data set. That provides the information necessary to determine the actual Z-scaling used if the data is scaled to a fixed height, as well as the base offset elevation. I'm working on a small program to generate topographic elevation lines from the data set to laser etch them into a CNC'd topographic relief, and need that info to get the line labels right. Very much a work in progress, see: https://github.com/doug-harriman/topo-box

@ChHarding
Copy link
Owner

ChHarding commented Jun 23, 2021 via email

@doug-harriman
Copy link
Author

Chris - That's what I needed. I had not looked at the log file in the zip, my apologies. I had only looked at the web page generated that provides the zip download link, and this info wasn't present there. Thanks for the follow up.

@ChHarding
Copy link
Owner

ChHarding commented Jun 23, 2021 via email

@doug-harriman
Copy link
Author

Chris -

My goal is to mill terrain profiles out of wood, then laser etch elevation contours into them. I have a Sainsmart 3018 mill with a laser head for it. Because there's an active Z axis unlike most laser cutters, I can run it at different focal planes. Need the elevations to get the proper labels on the elevation lines. I'm using Matplotlib contour plots to generate the elevation lines, then converting to G-Code. I have that working now. Next up is to get the labels properly sized and rotated so they're aligned with the surface at the proper location. You can check out the project on github.

  • Doug

@ChHarding
Copy link
Owner

ChHarding commented Jun 24, 2021 via email

@doug-harriman
Copy link
Author

I haven't tried the GeoTIFF. My initial run through this code (you can see it in the python file history) was reading in an image from https://tangrams.github.io/heightmapper/. That was easy to deal with, but in the end, the image was too low of a resolution to deal with. I may play with that. Label positioning is going to be a bit of a pain with STL. I've calculated the center of the text label, but now I need to find the mesh triangle that encloses the center point so I can determine the Z height, and the normal direction. Prefiltering the Z-levels from the image might limit the search quite a bit. Without some sort of optimization, it's going to be slow.

@ChHarding
Copy link
Owner

ChHarding commented Jun 24, 2021 via email

@doug-harriman
Copy link
Author

Awesome! Thank you. That's the functionality I'm after. I'm taking tomorrow off from work, so hope to have the text G-Code generation done tomorrow. Should see commits coming through on my project. I also need to dink with the font size. I need to figure out how to get the matplotlib figure set up with the correct units so that there's a clear mapping from the pt size to mm. Always another layer to the onion. After that, it should have all of the functionality needed, then just some code cleanup. Hope to get milling soon.

@ChHarding
Copy link
Owner

ChHarding commented Jun 25, 2021 via email

@doug-harriman
Copy link
Author

doug-harriman commented Jun 25, 2021 via email

@doug-harriman
Copy link
Author

doug-harriman commented Jul 1, 2021 via email

@ChHarding
Copy link
Owner

ChHarding commented Jul 1, 2021 via email

@doug-harriman
Copy link
Author

doug-harriman commented Jul 1, 2021 via email

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

2 participants