Пример #1
0
		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;
		}
Пример #2
0
		private void AddInstructionPair(ContourPatternStepPair instructionPair) {
			if (instructionPairs == null) instructionPairs = new List<ContourPatternStepPair>();
			instructionPairs.Add(instructionPair);
		}
Пример #3
0
		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;
		}