I want to show a mesh:
However, when I rotate it, some part would disappear:
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?
jie_baoer
(jie baoer)
2
需要获取模型最大外包边界,确保相机的位置和相机焦点大于最大外包的半径
您说的这种做法,跟缩放是不是一个意思?缩放的时候,调整的就是相机位置和焦点的距离。
但实际上,我缩放后,还是有一部分mesh会消失。
这个也试过了。
在 mouseMoveEvent
中,调用了:
m_renderer->ResetCameraClippingRange();
m_renWin->Render();
但还是没用
Hello,
Please, use English so other non-Chinese-speakers with the same problem can:
- contribute;
- 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?
mwestphal
(Mathieu Westphal (Kitware))
9
@jie_baoer @zhang-qiang-github
Moderator here.
I confirm that public topic should be discussed in english here. Use private communication if ever needed.
jie_baoer
(jie baoer)
10
Sorry, I’ll pay attention next time