1
0
Fork 0

wrench: All options are percentages now (or constants)

This commit is contained in:
Joost De Cock 2018-08-10 16:58:18 +02:00
parent bd850d4be7
commit bf1b77069f
3 changed files with 7 additions and 6 deletions

View file

@ -17,10 +17,6 @@ export default {
// Constants // Constants
collarFactor: { val: 4.8, type: "constant" }, collarFactor: { val: 4.8, type: "constant" },
// Measures
lengthBonus: { val: 0, min: -40, max: 120, type: "measure" },
sleeveLengthBonus: { val: 0, min: -40, max: 80, type: "measure" },
// Percentages // Percentages
acrossBackFactor: { val: 97, min: 93, max: 100 }, acrossBackFactor: { val: 97, min: 93, max: 100 },
armholeDepthFactor: { val: 60, min: 50, max: 70 }, armholeDepthFactor: { val: 60, min: 50, max: 70 },
@ -30,6 +26,7 @@ export default {
collarEase: { val: 3.5, min: 0, max: 10 }, collarEase: { val: 3.5, min: 0, max: 10 },
cuffEase: { val: 20, min: 0, max: 200 }, cuffEase: { val: 20, min: 0, max: 200 },
frontArmholeDeeper: { val: 0.5, min: 0, max: 1.5 }, frontArmholeDeeper: { val: 0.5, min: 0, max: 1.5 },
lengthBonus: { val: 0, min: -4, max: 60 },
shoulderEase: { val: 0, min: -2, max: 6 }, shoulderEase: { val: 0, min: -2, max: 6 },
shoulderSlopeReduction: { val: 0, min: 0, max: 8 }, shoulderSlopeReduction: { val: 0, min: 0, max: 8 },
sleevecapEase: { val: 1, min: 0, max: 10 }, sleevecapEase: { val: 1, min: 0, max: 10 },
@ -50,5 +47,6 @@ export default {
sleevecapQ4Spread1: { val: 7, min: 4, max: 20 }, sleevecapQ4Spread1: { val: 7, min: 4, max: 20 },
sleevecapQ4Spread2: { val: 7, min: 4, max: 20 }, sleevecapQ4Spread2: { val: 7, min: 4, max: 20 },
sleeveWidthGuarantee: { val: 90, min: 25, max: 100 }, sleeveWidthGuarantee: { val: 90, min: 25, max: 100 },
sleeveLengthBonus: { val: 0, min:-40, max: 10 },
} }
}; };

View file

@ -101,7 +101,7 @@ pattern.settings.sample = {
measurement: 'shoulderToShoulder' measurement: 'shoulderToShoulder'
} }
pattern.debug('debug test from index', 'foo'); pattern.debug('debug test from index', 'foo');
pattern.sampleOption('shoulderEase'); pattern.sampleOption('sleevelengthBonus');
//pattern.sampleMeasurement('bicepsCircumference'); //pattern.sampleMeasurement('bicepsCircumference');
//pattern.sampleModels(freesewing.antmantest); //pattern.sampleModels(freesewing.antmantest);
//pattern.draft(); //pattern.draft();

View file

@ -37,7 +37,10 @@ var base = {
); );
points.cbHips = new Point( points.cbHips = new Point(
0, 0,
points.cbWaist.y + measurements.naturalWaistToHip points.cbWaist.y +
measurements.naturalWaistToHip +
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip) *
options.lengthBonus
); );
// Side back (cb) vertical axis // Side back (cb) vertical axis