internal static void parseFields(IfcRationalBSplineSurfaceWithKnots s, List<string> arrFields, ref int ipos) { IfcBSplineSurfaceWithKnots.parseFields(s, arrFields, ref ipos); string str = arrFields[ipos++]; List<string> arrLists = ParserSTEP.SplitLineFields(str.Substring(1, str.Length - 2)); int ilast = arrLists.Count; for (int icounter = 0; icounter < ilast; icounter++) { List<double> weights = new List<double>(); List<string> arrweights = ParserSTEP.SplitLineFields(arrLists[icounter].Substring(1, arrLists[icounter].Length - 2)); for (int jcounter = 0; jcounter < arrweights.Count; jcounter++) weights.Add(ParserSTEP.ParseDouble(arrweights[jcounter])); s.mWeightsData.Add(weights); } }
internal new static IfcRationalBSplineSurfaceWithKnots Parse(string strDef) { IfcRationalBSplineSurfaceWithKnots s = new IfcRationalBSplineSurfaceWithKnots(); int ipos = 0; parseFields(s, ParserSTEP.SplitLineFields(strDef), ref ipos); return s; }
internal IfcRationalBSplineSurfaceWithKnots(IfcRationalBSplineSurfaceWithKnots s) : base(s) { for (int icounter = 0; icounter < s.mWeightsData.Count; icounter++) mWeightsData.Add(new List<double>(s.mWeightsData[icounter].ToArray())); }