internal override IEnumerable <StepSyntax> GetParameters(StepWriter writer) { foreach (var parameter in base.GetParameters(writer)) { yield return(parameter); } yield return(new StepSyntaxList(KnotMultiplicities.Select(m => new StepIntegerSyntax(m)))); yield return(new StepSyntaxList(Knots.Select(k => new StepRealSyntax(k)))); yield return(new StepEnumerationValueSyntax(GetKnotSpec(KnotSpec))); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(Degree != null ? Degree.ToStepValue() : "$"); parameters.Add(ControlPointsList != null ? ControlPointsList.ToStepValue() : "$"); parameters.Add(CurveForm != null ? CurveForm.ToStepValue() : "$"); parameters.Add(ClosedCurve != null ? ClosedCurve.ToStepValue() : "$"); parameters.Add(SelfIntersect != null ? SelfIntersect.ToStepValue() : "$"); parameters.Add(KnotMultiplicities != null ? KnotMultiplicities.ToStepValue() : "$"); parameters.Add(Knots != null ? Knots.ToStepValue() : "$"); parameters.Add(KnotSpec != null ? KnotSpec.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }