Is the Entity in the viewport?

1
lyc5156
4/8/2021 3:06 AM

Hi Wout

Use CadLib4.0,Can I know if the Entity is in the viewport?

Best regards

Wout
4/19/2021 4:21 PM

Hi,

If the viewport is rectangular you can use the BoundsCalculator class to calculate its bounds, and then you can check if these bounds are inside a viewport.

- Wout

1