KVSlab / morphMan

A collection of tools for manipulation of morphological features in patient-specific geometries
https://morphman.readthedocs.io/en/latest/
Other
30 stars 12 forks source link

Surface changes outside of ROIs #79

Open michaelbernini opened 2 years ago

michaelbernini commented 2 years ago

Hello, I'm trying to exploit morphMan to deflate and inflate specific vascular zones of a model, in order to perform CFD analyses on the model's possible anatomical variations. While morphMan correctly inflates and / or deflates the region of interest, it strongly alters the whole surface of the model and not just the region of interest, to the point that CFD analyses are not possible. In particular, I'd like my model to be as smooth as possible and to have its flow extensions untouched by morphMan.

The initial model appears as follows: model

This is how it appears after the inflation: morphman

Any chance there's a way to perform inflations and deflations without altering the surface outside of the ROI so much? Thank you, Best Regards, Michael

hkjeldsberg commented 2 years ago

Hi @michaelbernini ,

Thanks for reporting this observation! The way morphMan is currently developed it is entirely dependent on reconstructing a surface based on the (manipulated) Voronoi diagram, and part of that will affect the areas outside of the ROI.

In your example model above, I agree that the output surface looks very much coarser than the input surface. I believe this is related to the selected output resolution, which is controlled by the. --poly-ball-size command line argument. The default is [120,120,120], so increasing this to [250,250,250] or potentially higher, i.e.:

--poly-ball-size 250 250 250

which should result in a much smoother model – similar to your input model.

Hope this helps, and answered your question.

Best, Henrik