private HierarchicalCoeffs GetHierarchicalCoeffs(ParseTreeNode content) { var x = new HierarchicalCoeffs(); foreach (var entry in content.ChildNodes) { var h = entry.ChildNodes[0]; switch (h.GetEntryIdentifier()) { case "n": { var m = h.GetDictArrayBody().GetArrayOfDecimal(); x.n = new Vertice() { X = m[0], Y = m[1], Z = m[2] }; } break; case "delta": x.delta = h.GetBasicValDecimal(); break; case "order": x.order = h.GetBasicValEnum<DecompositionOrder>(); break; } } return x; }
private HierarchicalCoeffs GetHierarchicalCoeffs(ParseTreeNode content) { var x = new HierarchicalCoeffs(); foreach (var entry in content.ChildNodes) { var h = entry.ChildNodes[0]; switch (h.GetEntryIdentifier()) { case "n": { var m = h.GetDictArrayBody().GetArrayOfDecimal(); x.n = new Vertice() { X = m[0], Y = m[1], Z = m[2] }; } break; case "delta": x.delta = h.GetBasicValDecimal(); break; case "order": x.order = h.GetBasicValEnum <DecompositionOrder>(); break; } } return(x); }