How to control camera clipping plane?

I’ve noticed that rhino’s camera’s near plane may behave strangely on larger models, which made me wonder if it can be controlled. I’ve tried it via the following script borrowed from this thread, but any value put into the SetFrustumNearFar method doesn’t seem to affect the camera’s near clip plane neither on the viewport or on the properties palette.

Is there anything else needed for it to take effect?

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

view = Rhino.RhinoDoc.ActiveDoc.Views.ActiveView

if view:
    vp = view.ActiveViewport
    vp_info =  Rhino.DocObjects.ViewportInfo(vp)
    vf= vp_info.GetFrustum()
    vp_info.SetFrustumNearFar(0.001, 200)

I never got it working or the problem of large scene clipping solved either since that discussion.
I’d be very much interested as well how to make the SetFrustumNearFar work and be able to capture everything in a large scale model.

1 Like