i am working on tools to produce high quality vectorized technical illustrations with applied shading. In order to keep the file size small (see test2.svg with almost 700kB) and not leak information on things not visible in the viewport (see 2nd image with visible hatches deleted, shwoing the interior) i wanted to exclude them. Apparently _SelVisible ignores Hatches all together.
I am aware, that i could do this on the normal BREPs before shading / hatching them, but GH does not really have a '_SelVisible’ as far as I know. There are some approaches with raycasting or interfacing the with Rhino CLI, but i could not get one to work properly, i.e. breaking the workflow in GH.
You’ll be able to test the Rhino workflow in the coming public release of either Rhino 8 or the WIP.
It now works more or less the same way for hatches as it does for surfaces. As such, it probably would not be of much use for your automated Grasshopper workflow, and you should likely try to come up with a different way forward.
Please read the developer’s notes in RH-90294 SelVisible: No Hatch Support
-wim
What do you suggest? I am not even sure, we are on the same page regarding the second issue. There is no RhinoCommon method available for an _SelVisible (working on non-baked objects) and the proposed method in the other thread with manual ray-casting from the view in GH is way less mature than the method Rhino uses.
this is not a Rhino issue, but a GH one. Still not sure, if we are talking about the same thing here.
I am missing the _SelVisible in GH. Currently I need to bake the objects, perform a _SelVisible in Rhino and internalize it again. The arrow between the two surface - components indicates the missing functionality, which could take a view and a list of objects and outputs the visible objects.
The point I’m trying to make is that I don’t see how SelVisible works for you with the example that you posted. That’s why I’m asking for a 3dm file.
-wim