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

EVPFFT GUI Renders Voxelization with Misleading Scale #147

Open
kpwelsh opened this issue Nov 30, 2023 · 0 comments
Open

EVPFFT GUI Renders Voxelization with Misleading Scale #147

kpwelsh opened this issue Nov 30, 2023 · 0 comments

Comments

@kpwelsh
Copy link
Collaborator

kpwelsh commented Nov 30, 2023

Issue

When we render the voxel VTK we are going to give to the EVPFFT backend, the positions of the voxels are stored in coordinate space. This can be confusing for users, as the mesh they see can change scale upon voxelization. If they enter a voxel ratio of 1x2x1, for example, it will appear that their mesh was stretched by a factor of 2 along the y dimension. Additionally, the mesh is not centered, which makes it annoying to manipulate in the viewer.

Potential fixes

Lots of potential solutions

  1. Let the EVPFFT backend handle real space coordinates and not index space coordinates. Then just ask the voxelizer to give the real coordinates.
  2. Voxelize it twice, once for EVPFFT backend and once for the rendering. Little stupid, but trivial to do. Performance is probably still "fine".
  3. Scale the resulting voxel grid in paraview.
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

1 participant