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

Wrong density for some combination of shapes #640

Open
axel-grc opened this issue Dec 4, 2024 · 1 comment
Open

Wrong density for some combination of shapes #640

axel-grc opened this issue Dec 4, 2024 · 1 comment

Comments

@axel-grc
Copy link
Collaborator

axel-grc commented Dec 4, 2024

When adding a new shape, the system evaluates the voxel at the center of the new shape to determine the density difference. This difference is used to calculate how much value is added to the phantom. If a previous shape already occupies the center voxel and has the same density as the new shape, the added density will be 0.
So there is a limitation to the phantom we can create, for example we can't create two spheres with centers close to each others, the center of the second will be in the first one and so the density added will be 0.
The problem appears too when trying to use "union" in the same setup.

@SimonRit SimonRit changed the title Impossible to create certain combinations of phantom shapes Wrong density for some combination of shapes Dec 4, 2024
@SimonRit
Copy link
Collaborator

SimonRit commented Dec 4, 2024

Thanks for reporting. Let's start by documenting this known limitation of RTK. This is because the density of analytical shapes is additive in RTK and is curretly evaluated at the center indeed.

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