I’ve added a new CRhinoDisplayPipeline::DrawZebraPreview that can be called from a display conduit. This new method will appear with Rhino 6 Service Release 16 (still a few weeks away). When this filters though to a public SDK, I’ll add a sample command to the developer samples repo.
import Rhino
import System
import rhinoscriptsyntax as rs
ids = rs.GetObjects("Select objects for zebra display", 8+16+32)
breps = [rs.coercebrep(id) for id in ids]
Rhino.Display.DisplayPipeline.DrawZebraPreview(breps, System.Drawing.Color.FromArgb(255,255,255))
Thank you for your help. I want to preview the zebra print display and analysis of objects in Python, but I will not interrupt my command of creating surfaces.
However it would be great, if a similar function could also be offered for a mesh! This would be more general, since I could create mesh(es) also from a Brep or even a single surface/face.
I just downloaded the Rhino 7 SDK and was looking for something like this.
I’m currently working on a smooth mesh command, which could show update of the Zebra stripes during the smoothing.
I just noticed, that Dale’s addition appeared in the Rhino 7.4 SDK (see below). It works fine! I will also add a small video how it works in my function.
Mhm, I can’t upload my video format so I will just upload 2 screenshots. It is a function that can smooth selected areas from a mesh - they show the mesh before and after smooth with zebra stripes.
I have a similar effect - using a striped texture on a mesh during a dynamic draw, as a visual feedback for the main tween-edit functionality.
So far, it’s used in the TweenerAddControl function in Tweener | Food4Rhino and done with pure C#, works fast enough since only the mesh vertex texture list needs to be updated in each draw.
However, it would be great to share some “zebra-controlling” code.
is it possible to set zebra preview strip size and direction without zebra analysis mode in C#? I have found its using last settings from analysis. Could I override them?