question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-uniformly spaced Marching Cubes?

See original GitHub issue

I have a dataset on a rectilinear grid, but the real-space positions of the data points are not evenly spaced. (i.e. z=[1m, 2m, 5m, 10m, 20m…]) I would like to plot an isosurface of this data with marching_cubes, but that function assumes that my data is evenly-spaced. Is there an easy way to do this? Perhaps by scaling the data? Or do I need some kind of “marching-cuboids” method?

(@jbusecke)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
TomNicholascommented, Apr 12, 2021

This is great thank you @artur-trzesiok ! I tried your example with v2.9.4 which worked, and I think I got it working with my oceanographic data too (see in the attached image the levels are more closely spaced at the surface at the top than at the bottom). This saves us an expensive interpolation.

Screenshot from 2021-04-12 16-44-40

1reaction
jbuseckecommented, Apr 14, 2021

I just quickly wanted to say thanks as well @artur-trzesiok. This helps me tremendously with my data!

Read more comments on GitHub >

github_iconTop Results From Across the Web

A parallel dual marching cubes approach to quad only surface ...
We present a novel method that reconstructs surfaces from volume data using a dual marching cubes approach without lookup tables.
Read more >
A dual Marching Cubes method using cuboids ... - GitHub
A dual Marching Cubes method using cuboids, based on greedy meshing. Suitable for use with a uniform grid of data derived from multiple...
Read more >
A survey of the marching cubes algorithm
The approach couples sequential, forward-progression march with inter- section determination by table look-up and is usable in polyhedral regions of space, ...
Read more >
Marching cubes-based isogeometric topology optimization ...
This paper proposes a marching cubes-based isogeometric topology optimization method with the parametric level set to address this issue.
Read more >
Marching Cubes in an Unsigned Distance Field for Surface ...
We present a new algorithm, called marching cubes, that creates triangle models of constant density surfaces from 3D medical data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found