Ejemplo n.º 1
0
        internal static void parseFields(IfcVirtualGridIntersection i, List <string> arrFields, ref int ipos)
        {
            i.mIntersectingAxes = ParserSTEP.SplitListLinks(arrFields[ipos++]);
            List <string> lst = ParserSTEP.SplitLineFields(arrFields[ipos++]);

            i.mOffsetDistances = new Tuple <double, double, double>(ParserSTEP.ParseDouble(lst[0]), ParserSTEP.ParseDouble(lst[1]), (lst.Count > 2 ? ParserSTEP.ParseDouble(lst[2]) : double.NaN));
        }
Ejemplo n.º 2
0
 internal IfcGridPlacement(DatabaseIfc db, IfcGridPlacement p) : base(db, p)
 {
     PlacementLocation = db.Factory.Duplicate(p.PlacementLocation) as IfcVirtualGridIntersection;
     if (p.mPlacementRefDirection > 0)
     {
         PlacementRefDirection = db.Factory.Duplicate(p.PlacementRefDirection) as IfcVirtualGridIntersection;
     }
 }
Ejemplo n.º 3
0
		internal static void parseFields(IfcVirtualGridIntersection i, List<string> arrFields, ref int ipos)
		{
			i.mIntersectingAxes = ParserSTEP.SplitListLinks(arrFields[ipos++]);
			List<string> lst = ParserSTEP.SplitLineFields(arrFields[ipos++]);
			i.mOffsetDistances = new Tuple<double,double,double>(ParserSTEP.ParseDouble(lst[0]), ParserSTEP.ParseDouble(lst[1]),(lst.Count > 2 ? ParserSTEP.ParseDouble(lst[2]) : double.NaN));
		}
Ejemplo n.º 4
0
		internal static IfcVirtualGridIntersection Parse(string strDef) { IfcVirtualGridIntersection i = new IfcVirtualGridIntersection(); int ipos = 0; parseFields(i, ParserSTEP.SplitLineFields(strDef), ref ipos); return i; }
Ejemplo n.º 5
0
		internal IfcVirtualGridIntersection(IfcVirtualGridIntersection p) : base() { mIntersectingAxes = new List<int>(p.mIntersectingAxes.ToArray()); mOffsetDistances = p.mOffsetDistances; }
Ejemplo n.º 6
0
 internal static IfcVirtualGridIntersection Parse(string strDef)
 {
     IfcVirtualGridIntersection i = new IfcVirtualGridIntersection(); int ipos = 0; parseFields(i, ParserSTEP.SplitLineFields(strDef), ref ipos); return(i);
 }
Ejemplo n.º 7
0
 internal IfcVirtualGridIntersection(DatabaseIfc db, IfcVirtualGridIntersection i) : base(db, i)
 {
     Tuple <IfcGridAxis, IfcGridAxis> axes = i.IntersectingAxes; IntersectingAxes = new Tuple <IfcGridAxis, IfcGridAxis>(db.Factory.Duplicate(axes.Item1) as IfcGridAxis, db.Factory.Duplicate(axes.Item2) as IfcGridAxis); mOffsetDistances = i.mOffsetDistances;
 }
Ejemplo n.º 8
0
 internal IfcVirtualGridIntersection(IfcVirtualGridIntersection p) : base()
 {
     mIntersectingAxes = new List <int>(p.mIntersectingAxes.ToArray()); mOffsetDistances = p.mOffsetDistances;
 }
Ejemplo n.º 9
0
		internal IfcVirtualGridIntersection(DatabaseIfc db, IfcVirtualGridIntersection i) : base(db, i) { Tuple<IfcGridAxis, IfcGridAxis> axes = i.IntersectingAxes; IntersectingAxes = new Tuple<IfcGridAxis,IfcGridAxis>(db.Factory.Duplicate(axes.Item1) as IfcGridAxis, db.Factory.Duplicate(axes.Item2) as IfcGridAxis); mOffsetDistances = i.mOffsetDistances; }