public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (Value != null) { System.Drawing.Color col = args.Color; if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorStructuralElements; } else { drawLocalFrame(args.Pipeline); } args.Pipeline.DrawBrepWires(Value, col, -1); } }
public void DrawViewportMeshes(GH_PreviewMeshArgs args) { if (Value != null) { System.Drawing.Color col = args.Material.Diffuse; Rhino.Display.DisplayMaterial areaStrcMaterial = new Rhino.Display.DisplayMaterial(args.Material); if (!DrawUtil.CheckSelection(col)) { col = DrawUtil.DrawColorStructuralElements; areaStrcMaterial.Diffuse = col; areaStrcMaterial.Specular = col; areaStrcMaterial.Emission = col; areaStrcMaterial.BackDiffuse = col; areaStrcMaterial.BackSpecular = col; areaStrcMaterial.BackEmission = col; } args.Pipeline.DrawBrepShaded(Value, areaStrcMaterial); } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (Value != null) { System.Drawing.Color colStr = args.Color; System.Drawing.Color colSup = args.Color; if (!DrawUtil.CheckSelection(colStr)) { colStr = DrawUtil.DrawColorStructuralElements; colSup = System.Drawing.Color.Black; } else { drawLocalFrame(args.Pipeline); } args.Pipeline.DrawCurve(Value, colStr, args.Thickness + 1); drawSupportLine(args.Pipeline, colSup, false); } }
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; } 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); } } }
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; } args.Pipeline.DrawPoint(Value.Location, Rhino.Display.PointStyle.X, 5, DrawUtil.DrawColorLoads); if (!(Forces.IsTiny() && Moments.IsTiny()) && DrawUtil.ScaleFactorLoads > 0.0001) { if (!_loadCondition.isValid) { updateLoadTransforms(); } _loadCondition.Draw(args.Pipeline, col); } } }
public void DrawViewportWires(GH_PreviewWireArgs args) { //ClippingBox //args.Pipeline.DrawBox(ClippingBox, System.Drawing.Color.Black); if (Value != null) { System.Drawing.Color colStr = args.Color; System.Drawing.Color colSup = args.Color; if (!DrawUtil.CheckSelection(colStr)) { colStr = DrawUtil.DrawColorStructuralElements; colSup = System.Drawing.Color.Black; } else { drawLocalFrame(args.Pipeline); } args.Pipeline.DrawPoint(Value.Location, Rhino.Display.PointStyle.X, 5, colStr); drawSupportPoint(args.Pipeline, colSup, false); } }