# Run Cross-Section Analysis with models

**URL:** <https://discourse.slicer.org/t/run-cross-section-analysis-with-models/39561>\
**Category:** Support\
**Tags:** python\
**Created:** [October 7, 2024, 9:58am UTC](https://discourse.slicer.org/t/run-cross-section-analysis-with-models/39561 "2024-10-07T09:58:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SANTIAGO\_PENDON\_MING](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/santiago_pendon_ming/32/66060_2.png) [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Post date:** [October 7, 2024, 9:58am UTC](https://discourse.slicer.org/t/run-cross-section-analysis-with-models/39561/1 "2024-10-07T09:58:20Z")

</div>

Hi to everyone. My team and I were in troubles with Cross-Section Analysis extension a few months ago. The problem remains today… (See more in  
[https://discourse.slicer.org/t/cross-section-analysis-freezing/37206/17](https://discourse.slicer.org/t/cross-section-analysis-freezing/37206/17))

We see that the manual module execution allows the usage of models data instead segmentation+segment inputs. Is possible to call `logic.setLumenSurface()` with the model? At the moment I have the models in shNode folders…

Also, one quick question: What happen when the centerline is outside the segment/model? Or more hardcore, when the complete segment is empty?

Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [October 7, 2024, 11:11am UTC](https://discourse.slicer.org/t/run-cross-section-analysis-with-models/39561/2 "2024-10-07T11:11:46Z")

</div>

> [@SANTIAGO\_PENDON\_MING](#):
>
> What happen when the centerline is outside the segment/model? Or more hardcore, when the complete segment is empty?

GIGO: Good Input, Good Output.

Please use valid data per the design of the module.

As for your questions here and in the other thread, please provide the scene as an MRB file, application log, version and platform.
