public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _degree = (int)value.IntegerVal; break; case 1: _controlPointsList.Add((IfcCartesianPoint)value.EntityVal); break; case 2: _curveForm = (IfcBSplineCurveForm)Enum.Parse(typeof(IfcBSplineCurveForm), value.EnumVal, true); break; case 3: _closedCurve = value.BooleanVal; break; case 4: _selfIntersect = value.BooleanVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void IfcParse(int propIndex, IPropertyValue value) { if (propIndex == 0) { _points.Add((IfcCartesianPoint)value.EntityVal); } else { this.HandleUnexpectedAttribute(propIndex, value); } }