private static ContourPatternStepPair GetStraight(float currentSlope, float deltaSlope, float topLength, float bottomLength, bool bumpify) { ContourPatternStepStraight top = new ContourPatternStepStraight(currentSlope + deltaSlope, topLength, bumpify); ContourPatternStepStraight bottom = new ContourPatternStepStraight(currentSlope + deltaSlope, bottomLength, bumpify); ContourPatternStepPair straight = new ContourPatternStepPair(top, bottom); return straight; }
private void AddInstructionPair(ContourPatternStepPair instructionPair) { if (instructionPairs == null) instructionPairs = new List<ContourPatternStepPair>(); instructionPairs.Add(instructionPair); }
private static ContourPatternStepPair GetDivergentCurve(float currentSlope, float topDeltaSlope, float bottomDeltaSlope, float topRadius, float bottomRadius, bool bumpify) { ContourPatternStepCurve top = new ContourPatternStepCurve(currentSlope + topDeltaSlope, topRadius, bumpify); ContourPatternStepCurve bottom = new ContourPatternStepCurve(currentSlope + bottomDeltaSlope, bottomRadius, bumpify); ContourPatternStepPair curve = new ContourPatternStepPair(top, bottom); return curve; }