SCIInstitute / Cleaver

A MultiMaterial Tetrahedral Meshing Library and Application
https://cleaver.readthedocs.io
Other
40 stars 18 forks source link

Adaptive background mesh failed #87

Open BinWang0213 opened 4 years ago

BinWang0213 commented 4 years ago

Description

Adaptive background mesh mode lead to very coarse background mesh for a simple two material volume. Figures shown below:

Download and test data here! datas.zip

Steps to Reproduce

cleaver-cli.exe -i ImgInput_cleaver.nrrd --output_format vtkUSG --segmentation -F 1.0 -R 1.0 -m adaptive -w -L 0.2 -j

Expected behavior:

Following results is using -m constant, it looks nice. But can we further reduce the total number of tets by using adaptive background?

Actual behavior:

Versions

Cleaver 2.4 Jan 3 2020 Windows10

Questions

It is still confusion to figure out how alpha value, blend_sigma, feature_scaling, sampling_rate affect our results.

jessdtate commented 4 years ago

I'm a little confused. Do you want the mesh to be more like the first or the second image? Since this example is a sphere, it is automatically reducing the resolution in the second image. For adaptive meshes, you can usually adjust the resolution by only changing the sampling_rate parameter. The default is 1, lower will make the mesh coarser, higher will make it finer. Since the mesh may be automatically coarsening, you may want to also decrease the feature_scaling (something lower than 1). This parameter controls sizing field, or how cleaver interprets the importance of geometric features.

Both of these parameters must be positive.