Enumerating the clippingplanes in Vb Script

It seems impossible to enumerate clipping planes in VbScript.

I’m still waiting for the implementation of “Toggle Clipping Planes On/Off”.

So I wanted to implement it myself. But I discovered there is no object to ask for the clipping planes in the drawing file.

So could we please have such an object ?

Thanks

Hi @erik6,

You can do this:

Sub Main()
	Const rhClippingPlane = &h20000000
	Dim arrObjects, strObject
	arrObjects = Rhino.ObjectsByType(rhClippingPlane, True)
	For Each strObject In arrObjects
		Call Rhino.Print(strObject)
	Next
End Sub

But support for clipping planes in legacy RhinoScript is limited. You should really be using Python for this.

You might see of the TestDisableAllClippingPlanes and TestEnableAllClippingPlanes are helpful to you.

– Dale

Wonderful! I LOVE.

Now, another suggestion which would be even more wonderful.

Can we have an option to make what is hidden when geometry is clipped to be shown, but with a different display mode? Like wireframe for example?

Why?

Because often important geometry is hidden beyond the clipping plane. To understand what one is doing, something that is clipped needs to be shown. And seeing that geometry in wireframe for example would be very very helpful. Instead of having to show/hide what is clipped.

Can it be implemented?

Thanks
/Erik

Could we have “ToggleAllClippingPlanes” as well in the final version ?

Thanks
/Erik