Which Parameter controls whether MeshWires are drawn or not?

Struggling to understand how to make a custom geometry draw mesh wires when Grasshopper’s -Preview Mesh Edges- option is enabled disabled.

I assume there’s some line of code I need to add into one of the draw methods in the GH_GeometricGoo class, currently mine looks like this:

public void DrawViewportWires(GH_PreviewWireArgs args)
        if (Value == null || !Value.IsValid) { return; }

        if (args.Viewport.DisplayMode.EnglishName.ToLower() == "wireframe")
            args.Pipeline.DrawMeshWires(Value, args.Color);


Oh wow! That was easy. Thanks!!!

1 Like