public void Draw2(Rhino.Display.DisplayPipeline pipeline, System.Drawing.Color col) { List <Point3d> _endPoints_F = new List <Point3d>(); List <Point3d> _endPoints_M = new List <Point3d>(); foreach (Transform t in Transforms) { pipeline.PushModelTransform(t); if (!(_symbolF is null)) { _symbolF.Draw(pipeline, col); Point3d p = new Point3d(_symbolF.ALine.From); p.Transform(t); _endPoints_F.Add(p); } if (!(_symbolM is null)) { _symbolM.Draw(pipeline, col); Point3d p = new Point3d(_symbolM.APoint); p.Transform(t); _endPoints_M.Add(p); } pipeline.PopModelTransform(); } pipeline.DrawDottedPolyline(_endPoints_F, DrawUtil.DrawColorLoads, false); pipeline.DrawDottedPolyline(_endPoints_M, DrawUtil.DrawColorLoads, false); }
public void Draw(Rhino.Display.DisplayPipeline pipeline, System.Drawing.Color col) { List <Point3d> _endPoints_F = new List <Point3d>(); List <Point3d> _endPoints_M = new List <Point3d>(); foreach (Transform t in Transforms) { if (!(_symbolF is null)) { SymbolF _temp = new SymbolF(_symbolF); _temp.Transform(t); _temp.Draw(pipeline, col); _endPoints_F.Add(_temp.ALine.From); } if (!(_symbolM is null)) { SymbolM _temp = new SymbolM(_symbolM); _temp.Transform(t); _temp.Draw(pipeline, col); _endPoints_M.Add(_temp.APoint); } } pipeline.DrawDottedPolyline(_endPoints_F, col, false); pipeline.DrawDottedPolyline(_endPoints_M, col, false); }