Hi,
I cannot see if it is possible to create a Clipping Plane via Display Conduit.
I don’t want to add Clipping Plane to the document but to add and operate it within Conduit/RC.
Any hint would be of help?
Thanks,
Dmitriy
Hi,
I cannot see if it is possible to create a Clipping Plane via Display Conduit.
I don’t want to add Clipping Plane to the document but to add and operate it within Conduit/RC.
Any hint would be of help?
Thanks,
Dmitriy
Currently, you can only turn on/off the clipping planes in your conduit through the EnableClippingPlanes function. It shouldn’t be too hard to add additional clipping plane support from within a conduit. Can you explain a little more about what you are trying to do so I can make sure to type things up the right way? Thanks
Hi @stevebaer
As you mentioned - you can currently turn clipping planes off and on. Buy they need to be added to the document first. Correct?
I am looking for the functionality, when for example, I can use few sliders in GH to manipulate position of the clipping planes, but not to add those to the document.
Hopefully, it is a bit more clear now.
Thanks,
Dmitriy
Added to the list: https://mcneel.myjetbrains.com/youtrack/issue/RH-44070
Clipping plane manipulation should be available on the DisplayPipeline class in SR3 with AddClippingPlane and RemoveClippingPlane functions
Great news!
Thanks, @stevebaer
Will check and revert.
Hi, I’m looking for functions AddClippingPlane
and RemoveClippingPlane
in the sdk but don’t find them. Are they members of CRhinoDisplayPipeline
?
Pablo
This is part of the DisplayPipeline class in .NET
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Display_DisplayPipeline_AddClippingPlane.htm
Are you looking for a C++ version? If so, this is on CRhinoDisplayEngine
https://developer.rhino3d.com/api/cpp/class_c_rhino_display_engine.html#a950ecf557e2c42f605f2a986e5ac6ab6
Great! Thank you Steve.
Pablo
Hi @stevebaer
I was trying to use both methods from DrawViewportMeshes
sub (Custom GH).
I see indexes assigned but no effect on the objects.
How to ensure that all Rhino objects in the document are affected by added Clipping Plane?
Thanks,
Dmitriy
All of the normal rhino objects have been drawn by the time these functions in GH are called. You would need to create a custom display conduit to set up clipping planes at an earlier phase of drawing