public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!(Value is null)) //if no point or, force AND moment are zero, nothing to draw { System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorLoads; } else { drawInfoPanel(args.Pipeline, args.Viewport); } args.Pipeline.DrawPoint(Value.Location, Rhino.Display.PointStyle.X, 5, DrawUtil.DrawColorLoads); if (!(Forces.IsTiny() && Moments.IsTiny() && Displacement.IsTiny() && DisplacementRotational.IsTiny()) && DrawUtil.ScaleFactorLoads > 0.0001) { if (!_loadCondition.isValid) { updateLoadTransforms(); } _loadCondition.Draw(args.Pipeline, col); } } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //draw clippingbox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (!(Value is null)) { System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorLoads; } else { drawInfoPanel(args.Pipeline, args.Viewport); } args.Pipeline.DrawCurve(Value, DrawUtil.DrawColorLoads, args.Thickness + 1); if (DrawUtil.ScaleFactorLoads > 0.0001 && !(Forces.IsTiny() && Moments.IsTiny())) { if (!_loadCondition.isValid) { updateLoadTransforms(); } _loadCondition.Draw(args.Pipeline, col); } } }