Zebra stripes in GH

Hi community,

I’m wondering if there’s a way to see the Zebra stripes :zebra: (for BREPs) from GH preview directly–instead of baking the BREP and then turning on zebra stripes (the left bar of the Rhino window always jumps out, which really disrupts the flow for me).

Thanks a lot!

Did you test that ?

Don’t say it is just for mesh. As far as I understand you never see Brep nor surface !

1 Like

Thanks very much for your help Laurent!

I got the matcap image you shared but, the GL Mesh component gave an error “Fragment Shader invalid call of undeclared identifier ‘texture2D’”

Rhino’s display conduit can draw Breps with Zebra stripes.

https://developer.rhino3d.com/api/rhinocommon/rhino.display.displaypipeline/drawzebrapreview

– Dale

1 Like

I also tried the VB script, which gave a circular effect like this:

Thanks a lot for your help Dale!

I got the following code, which doesn’t work (type hints checks out) due to “Error: Runtime error (TypeErrorException): Cannot create instances of DisplayPipeline because it has no public constructors” Could you please give me some guidance?

import Rhino
import System
p = Rhino.Display.DisplayPipeline()
a = p.DrawZebraPreview(x,
y
)

I followed up on a related thread. Thanks again for your help!