# Geometry sometimes disappears in streched viewport when zooming in and out

**URL:** <https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663>\
**Category:** Rhino for Windows\
**Created:** [June 8, 2018, 1:13pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663 "2018-06-08T13:13:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [June 8, 2018, 1:13pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/1 "2018-06-08T13:13:01Z")

</div>

Hello,

I made some custom views with stretched ratio. When zooming in or out, sometimes the geometry disappears. When zooming further or clicking it sometimes shows it again, sometimes not. Is this is a bug? Its nothing critical, but can be quite annoying. Is there maybe a better way to stretch a view?

I’m using Rhino 6

zoom 1

 ![zoom1](https://global.discourse-cdn.com/mcneel/original/3X/c/5/c50e43cb6f56a820dedd5168d0c9675bd92f3ae0.png)  
zoom 2  
 ![zoom2](https://global.discourse-cdn.com/mcneel/original/3X/5/0/50c77b7bf940e26bb0af8d0aea7945891f6026ae.png)  
zoom 3  
 ![zoom3](https://global.discourse-cdn.com/mcneel/original/3X/f/a/fac3c1e31a50f6f4ee15568182ab556eda969af6.png)

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [June 8, 2018, 3:13pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/2 "2018-06-08T15:13:18Z")

</div>

Hello - can you export the display mode (Options \> View \> Displaymodes page \> Export button) and post it here?

thanks,

-Pascal

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [June 8, 2018, 3:56pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/3 "2018-06-08T15:56:14Z")

</div>

hey pascal.I‘ll do on monday, already starting my weekend.  
I believe its not due clipping. I just copied normal shaded mode and modified x ratio to 0.2 in general view settings

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [June 8, 2018, 3:57pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/4 "2018-06-08T15:57:32Z")

</div>

OK, thanks, I’ll try that. No need for the ini file.

@TomTom - if you turn on the camera (F6) in the skinny viewport and watch it in the other views as you zoom you can see what happens to the frustum when the object disappears… I’m not sure what to make of that but I’ll pass it along.  
[https://mcneel.myjetbrains.com/youtrack/issue/RH-46641](https://mcneel.myjetbrains.com/youtrack/issue/RH-46641)

-Pascal

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [June 8, 2018, 5:34pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/5 "2018-06-08T17:34:15Z")

</div>

thanks. 🙂  
stretched views are very useful in class A modelling to check overall curvature smoothness and to detect wavy flows. When modelling with Icem Surf it is one the most common commands to use. I believe this is a very simple but useful feature. I strongly promote to implement a better control of this streched feature. I didn’t even notice that this is possible until a workmate showed me this „hidden“ feature. He also found out how to control it by script. Before this, I 1d scaled the geometry, which works as well but it has obvious drawbacks. In Icem Surf you can control streched views by drawing a rectangle. I think VSR had it too. Very practical feature

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [June 8, 2018, 6:38pm UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/6 "2018-06-08T18:38:14Z")

</div>

@TomTom - see if the attached script helps- for now, it needs to have a mode called

**StretchView**

available. It could also just modify whatever the current view mode is but that seems risky, so, special mode.

`RunPythonScript` or

`! _-RunPythonScript "Full path to py file inside double-quotes."`

For adding to a button or alias.  
Frame your objects/control points with a rectangle - like `Zoom`.

> <https://gist.github.com/pgolay/6090c7ceadb1257c937d4845db24f626#file-stretchview-py>

-Pascal

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tomtom/32/651939_2.png) [@TomTom](https://discourse.mcneel.com/u/TomTom)\
**Post date:** [June 11, 2018, 6:58am UTC](https://discourse.mcneel.com/t/geometry-sometimes-disappears-in-streched-viewport-when-zooming-in-and-out/64663/7 "2018-06-11T06:58:54Z")

</div>

yep, that’s it. Thanks. Super useful. Unfortunate Autodesk killed my IronPython, as I found out this morning. But from reading the code its pretty much what I guess it should be. I’ll port as a custom command in C#, I guess that’s faster than my IT support 😛 Thank you 🙂
