internal IfcBSplineSurfaceWithKnots(DatabaseIfc db, IfcBSplineSurfaceWithKnots s) : base(db, s) { mUMultiplicities = new List <int>(s.mUMultiplicities.ToArray()); mVMultiplicities = new List <int>(s.mVMultiplicities.ToArray()); mUKnots = new List <double>(s.mUKnots.ToArray()); mVKnots = new List <double>(s.mVKnots.ToArray()); mKnotSpec = s.mKnotSpec; }
internal static IfcBSplineSurfaceWithKnots Parse(string strDef) { IfcBSplineSurfaceWithKnots s = new IfcBSplineSurfaceWithKnots(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return s; }
internal IfcBSplineSurfaceWithKnots(IfcBSplineSurfaceWithKnots s) : base(s) { mUMultiplicities = new List<int>(s.mUMultiplicities.ToArray()); mVMultiplicities = new List<int>(s.mVMultiplicities.ToArray()); mUKnots = new List<double>(s.mUKnots.ToArray()); mVKnots = new List<double>(s.mVKnots.ToArray()); mKnotSpec = s.mKnotSpec; }
internal static void parseFields(IfcBSplineSurfaceWithKnots ss, List<string> arrFields, ref int ipos) { IfcBSplineSurface.parseFields(ss, arrFields, ref ipos); string s = arrFields[ipos++]; List<string> arrLists = ParserSTEP.SplitLineFields(s.Substring(1, s.Length - 2)); for (int icounter = 0; icounter < arrLists.Count; icounter++) ss.mUMultiplicities.Add(ParserSTEP.ParseInt(arrLists[icounter])); s = arrFields[ipos++]; arrLists = ParserSTEP.SplitLineFields(s.Substring(1, s.Length - 2)); for (int icounter = 0; icounter < arrLists.Count; icounter++) ss.mVMultiplicities.Add(ParserSTEP.ParseInt(arrLists[icounter])); s = arrFields[ipos++]; arrLists = ParserSTEP.SplitLineFields(s.Substring(1, s.Length - 2)); for (int icounter = 0; icounter < arrLists.Count; icounter++) ss.mUKnots.Add(ParserSTEP.ParseDouble(arrLists[icounter])); s = arrFields[ipos++]; arrLists = ParserSTEP.SplitLineFields(s.Substring(1, s.Length - 2)); for (int icounter = 0; icounter < arrLists.Count; icounter++) ss.mVKnots.Add(ParserSTEP.ParseDouble(arrLists[icounter])); ss.mKnotSpec = (IfcKnotType)Enum.Parse(typeof(IfcKnotType), arrFields[ipos++].Replace(".", "")); }
internal static IfcBSplineSurfaceWithKnots Parse(string str) { IfcBSplineSurfaceWithKnots s = new IfcBSplineSurfaceWithKnots(); int pos = 0; s.Parse(str, ref pos, str.Length); return s; }