Some part of mesh would disappear when I rotate it

I want to show a mesh:

image

However, when I rotate it, some part would disappear:

image

I want it show all mesh when I rotate camera.

I try to reset the clipping range in the mouseMoveEvent :

m_renderer->ResetCameraClippingRange();
m_renWin->Render();

But it still do not work.

What causes this phenomenon? How can I fix it?

需要获取模型最大外包边界,确保相机的位置和相机焦点大于最大外包的半径

您说的这种做法,跟缩放是不是一个意思?缩放的时候,调整的就是相机位置和焦点的距离。

但实际上,我缩放后,还是有一部分mesh会消失。


好像也对,调这个函数的时候,设置一下相机范围

这个也试过了。

mouseMoveEvent 中,调用了:

m_renderer->ResetCameraClippingRange();
m_renWin->Render();

但还是没用

Hello,

Please, use English so other non-Chinese-speakers with the same problem can:

  1. contribute;
  2. benefit from the solution.

thank you,

PC

1 Like

I am apologized for using Chinese in communication. And English would be used in other communication.

@Paulo_Carvalho Do you have any suggestion for the invisible part?

@jie_baoer @zhang-qiang-github

Moderator here.

I confirm that public topic should be discussed in english here. Use private communication if ever needed.

Sorry, I’ll pay attention next time