_SelVisible not working on Hatches

Hi,

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.

My usual workflow is

  • choose a view
  • explode everything
  • _SelVisible, _Invert, _Delete

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.

Concluding questions:

  • Does _SelVisible work on Hatches?
  • Does a proper _SelVisible exist in GH?

hatch_sel.3dm (2.2 MB)

(shameful bump)

Hi Dan -

Thanks.
RH-90294 SelVisible: No Hatch Support
-wim

can you also log _SelVisible for GH please?

Hi Dan -

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.

Currently my workflow is broken. I need to

  • bake the geometry from GH to Rhino,
  • perform _SelVisible in Rhino and
  • reference the geometry in GH again.

Thanks,Dan

Hi Dan -

Can you post a Rhino 3dm file with geometry where that leads to the expected output?
-wim

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.

RH-90294 is fixed in Rhino 8 Service Release 26

Hi Dan -

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