modelvisual3d

WPF 3D - Detirmine whether a ModelVisual3D is being clipped inside it's Viewport3D

半腔热情 提交于 2019-12-11 06:19:19
问题 I have a cube rendering inside a Viewport3D and i need to know a way to find out whether ALL of the cube is visible to the user. Edit:Just to be clear,..I'm not talking about clipping because of the near/far plane distance here. I mean the cube is to tall or wide to fit in the cameras field of view. Any help would be massively appreciated! Thanks in advance. 回答1: I can't offer a solution but I can, perhaps, point you in the right direction. What you need to get hold of is the extent of the 2D