Hello,
How do I add clipping fills to rhino objects that exist in the display conduit but NOT the rhino model.
Is this what I need to use, get the fill surfaces and then add those surfaces to my display conduit objects in Draw methods?
Or do I simply need to adjust the Display.PreviewAttributes such as in the code snip below:
Here you can see geometry in the scene that is properly “poched” but the geometry next to it that lives in the display conduit is properly being clipped but gets no fill:
@staticmethod
def GeometryPreview():
attr = Display.PreviewAttributes()
attr.CurveColor = System.Drawing.Color.White #Utils.ParseHexColor(UI.drawing_colors.get("new"), 255)
attr.CurveThickness = 2
attr.ObjectColor = System.Drawing.Color.White #Utils.ParseHexColor(UI.drawing_colors.get("new"), 200)
attr.ColorSource = Rhino.DocObjects.ObjectColorSource.ColorFromObject
attr.TextColor = Color.White
attr.CustomGroundPlaneShadowOnly = True
# Clipping specific attributes
attr.ClippingFillColor = Color.Blue
attr.ClippingShadeColor = Color.Red
attr.ClippingEdgeColor = Color.Magenta
attr.ClippingEdgeThickness = 10
attr.Material.Diffuse = Color.White
attr.Material.Transparency = 0.8
# attr.CullBackfaces = True
# attr.CastShadows = True
# attr.AmbientLightingColor = System.Drawing.Color.Red
# attr.IgnoreHighlights = True
return attr
Any feedback pointing me in the right direction would be greatly appreciated,
Thank you all!