/// <summary> /// Sets supports in RSTAB /// </summary> /// <param name="a">Node for supporting</param> /// <param name="i">Support ID</param> /// <param name="b">Anchor points list</param> /// <param name="c">Tolerance</param> private void SetRSTABSupport(RRNode a, ref int i, List <Point3d> b, double c) { Point3d k = a.GetPoint3d(); foreach (Point3d p in b) { try { if (p.DistanceTo(k) <= c) { IData.rsSetNodeSupport(new RS_NODE_SUPPORT { ID = (i).ToString(), iNo = i++, rotationSequence = 0, f*X = -1, fuY = -1, fuZ = -1, fPhiX = 0, fPhiY = 0, fPhiZ = -1, strNodeList = (a.ID).ToString() }); break; } } catch (Exception e) { ecd = ErrCode.RSTABSUPP; ems = e.Message; epl = this.GetType().Name + "->" + MethodBase.GetCurrentMethod().Name; } if (ecd != ErrCode.NONE) { return; } } }
/// <summary> /// Represents edge as Rhino.Line /// </summary> /// <returns>Rhino.Line</returns> public Line GetLine() { return(new Line { From = sn.GetPoint3d(), To = en.GetPoint3d() }); }