New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Charlie Chino Error #6271
Comments
Without having the original measurements used, it is difficult to analyze this error. However, I think I am able to reproduce the issue via:
measurements:
crossSeam: 770
crossSeamFront: 360
knee: 370
seat: 1020
seatBack: 550
waist: 950
waistBack: 460
waistToFloor: 1110
waistToKnee: 570
waistToHips: 60
waistToSeat: 230
waistToUpperLeg: 250
units: metric
The first errors are (entries are from bottom to top):
The first warnings are (entries are from bottom to top):
|
-- a/designs/charlie/src/front.mjs
+++ b/designs/charlie/src/front.mjs
@@ -99,14 +99,6 @@ function draftCharlieFront({
points.flyTopSeamline = points.flyTop.shiftTowards(points.styleWaistIn, topStitchDist)
- points.flyBottomSeamLine = utils.curveIntersectsY(
- points.crotchSeamCurveStart,
- points.crotchSeamCurveCp2,
- points.crotchSeamCurveCp1,
- points.fork,
- points.flyBottom.shiftTowards(points.crotchSeamCurveStart, topStitchDist).y
- )
-
paths.flyFacingLine = new Path()
.move(points.flyTop)
.line(points.flyCurveStart)
@@ -114,6 +106,12 @@ function draftCharlieFront({
.setClass('lining dashed')
let JseamCurve = paths.flyFacingLine.offset(-topStitchDist)
+ let flyCurve = new Path()
+ .move(points.crotchSeamCurveStart)
+ .curve( points.crotchSeamCurveCp2, points.crotchSeamCurveCp1, points.fork)
+ let intersects = JseamCurve.intersects(flyCurve)
+ if (intersects.length > 0) points.flyBottomSeamLine = intersects[0]
+ else log.error('Unable to locate the fly bottom seam line. This draft will fail.')
// Too small to draw for dolls
if (measurements.waist > 500) { |
This discord discussion might also be relevant: https://discord.com/channels/698854858052075530/1217454808152277002 There the problem happens because of a very low hip line measurement and the root problem appears to be in Titan. Suggested simple fix:
|
Hi. I get this error (amongst others) when creating a new design.
Unable to draft part
charlie.front
(set0
) TypeError: y.split(...)[0].clone is not a functionat Object.l [as draft] (8663-249b18213c972355.js:1:418700)
at sq.draftPartForSet (_app-853501a72d09c022.js:1:259265)
at sq.draft (_app-853501a72d09c022.js:1:258552)
at sM.draft (_app-853501a72d09c022.js:1:278771)
at sL (8298-c4c65e54a44d3131.js:1:129261)
at lk (framework-aaff1786eadd4e8b.js:25:60902)
at op (framework-aaff1786eadd4e8b.js:25:72784)
at i (framework-aaff1786eadd4e8b.js:25:120316)
at uD (framework-aaff1786eadd4e8b.js:25:99072)
at framework-aaff1786eadd4e8b.js:25:98939
The text was updated successfully, but these errors were encountered: