-
Notifications
You must be signed in to change notification settings - Fork 18
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
Uneven Volumes #97
Comments
SegmentMesher extension can add padding around the original image (in Advanced section -> Cleaver background padding). Size is defined as percentage of volume size, set to 10% by default but you can set it to higher value if you create large mesh elements, or set it to 0 if you want make Cleaver deal with boundaries. For me it is not clear what problem you have, but if you post a few screenshots and maybe link to an example data set then Cleaver developers can investigate it. |
Cleaver can handle anisotropic spacing and size, but it does so by adding some volume to make the whole region a cube. This isn't padding, per-say, as it only adds the volume to one side of the image. The poor quality elements are concerning, screen shots would help, as would example data if you could share it. |
Thanks for your response @lassoan! I am aware of the padding option. I am actually trying to avoid it as much as possible, unless it becomes the only way I can do what I am attempting. Here is the deal;
When I use cleaver to mesh this volume, I get some bad elements and weird geometry on some of these edges, but not all! (fig below) On the following image, you can see how the mesh follows the segmentation boundary between two tissues nicely, but only on the side of the model. A weird jagged line separates the two tissues on the top. For the most part, I have avoided this issue by cropping the volume to an isotropic voxel input, say [256,256,256]. If I use padding, then I have to reduce my blend sigma considerably, while still getting these rounded dips when transitioning between tissues (fig below) My motivation to leaving these boundaries flat is simple. So I can more efficiently assign BCs based on shared normals. We are running large deformations, so any small dihedral angles throw our simulation off from the start. We have found some of these on the weird boundaries and the dips generated by the padding. |
I just saw your response! Also, I can share the entire 3D Slicer scene, the mesh, the .nrrd file or the DICOM. Just let me know what you need! |
The nrrd segmentation would be most helpful. When you say The padding creates a region on the boundary surfaces, which is what causes the furrow along the other boundaries. reducing blending should help, but it wasn't working properly in older versions. |
That is correct and sorry for the confusion. The Let me expand a little more on the volume sizing. The original input DICOM volume is [512, 512, 90]. I usually crop this original dataset so that the resulting volume is a cube [90, 90, 90]. I am limited by the 90 pixels on the sagittal view. If I generate a mesh on that cropped volume, I get perfectly flat boundaries. But some features and BCs I am testing require a bigger, non-cube volume [256, 512, 90] Here are the .nrrd files of the segmentation and labelmap. Let me know if you need more info. Thank you for your help! |
@fluviolobo you don't need to worry about the shape of boundary elements where you "cut off" the body, because you specify zero displacement on them anyway. If they are too close to the region of interest so that you don't want to set displacement to zero then just add more body (segment more of the image, and if the image end then you can just continue painting or importing a general body shape). |
That is true for the fixed BC case! I am playing with some symmetry plane BCs and sliding on the chest wall to allow more motion on the model. I want to have the capability to do both if possible. Again, I mostly want to know if I can get them flat, but I can adapt too |
Just wanted to circle back to your response:
So, essentially, unless I am using even sizes then padding will be needed and, hence, furrowing will occur on multi-material boundaries. This is just the normal behavior of Cleaver, correct? Will there be a way of playing with ratios of sizes [128x128x256] or perhaps ratios between the input parameters |
Hello,
Is it possible to generate a good mesh when then input volume is not equilateral and padding is not used?
Let me expand;
If I use an equilateral volume as an input, say [256,256,256], these flat boundaries are preserved.
NOTE: I am using the version of Cleaver embedded into 3DSlicer, which I have updated after reading this issue
The text was updated successfully, but these errors were encountered: