تخطَّ إلى المحتوى
CADCAMFUN
الوثائق

الوثائق

مولدات مميزة

التروس الملتفة، والخيوط المترية ISO، والحلقات الحلزونية، وشرائط الصفائح المعدنية ذات الأنماط المسطحة: مقاطع وشبكات دقيقة من بضعة أرقام.

مترجم تلقائيًا من الإنجليزية. عرض الأصل بالإنجليزية

مولدات مميزة

تعمل مولدات الميزات على تحويل بعض الأرقام الهندسية إلى ملفات تعريف أو شبكات دقيقة: ترس ملتف من الوحدة وعدد الأسنان، وخيط ISO من القطر ودرجة الميل، وحلزون من نصف القطر ودرجة الصوت، وشريط منحني من خط مركزي وسمك. كل وظيفة نقية في packages/core/src/cad; يقوم المحرر والمساعد ونموذج CAM باستدعاء نفس الوظيفة، لذلك يرى الثلاثة نفس الجزء.

مولدملفالصادرات الرئيسية
مطوي تحفيز والعتادgear.tsأبعاد التروس، gearOutline، MIN_GEAR_TEETH = 6
خيط متري ISOthread.ts (124 سطر)threadSizes، threadProblem، threadTool، threadGroove
اللولب / الملفhelix.ts (41 سطر)هندسة الملف، خطوات بيرتورن، COIL_STEPS_PER_TURN = 32، COIL_MAX_TURNS = 60
الصفائح المعدنيةsheet-metal.ts (235 سطر)مخطط تفصيلي للورقة، طول مطور، مع الحواف، رسم نمط مسطح، نمط مسطحDxf

التروس الملتفة

Pitch radius m·z/2, tip radius pitch + m, root radius pitch − 1.25·m, flanks the involute of the base circle r_p·cos α (ISO 53 / DIN 867). The outline is one counter-clockwise ring about the origin with tooth 0 centred on +X. When the teeth would come to a point before the tip circle (few teeth, a large pressure angle), the tip is pulled in by bisection to where the tooth is still 2 % of a pitch wide.

المواصفاتيقذفقاعدةنصيحةجذر
m 2, z 18, 20°1816.9142015.5
m 2, z 12, 20°1211.276149.5
m 2, z 18, 25°1816.3142015.5
زوج التشابك m 2: z 18 و z 12 اسحب إلى المدار · قم بالتمرير للتكبير · اسحب بزر الماوس الأيمن للتحريك
Both outlines are gearOutline(…, 4) output, extruded 8 mm with Ø8 and Ø6 bores. Centre distance m(z₁ + z₂)/2 = 30 mm; the 12-tooth gear is turned half a pitch (π/12) so its tooth sits in a gap of the 18-tooth gear.
أخطاء — رسائل حقيقية
gearOutline({ moduleValue: 2, teeth: 5 })
// RangeError: A gear needs a module > 0 and at least 6 whole teeth
gearOutline({ moduleValue: 2, teeth: 18, pressureAngle: 50 })
// RangeError: The pressure angle must be between 0 and 45 degrees

خيوط مترية ISO

A modelled thread is real helical geometry: a core cylinder at the root united with a ridge swept along a helix with the profile kept radial, clipped to the thread length. External threads have their core at d₃ = d − 1.22687·P and a ridge up to d; internal ones are the tool that cuts a tapped hole, core at D₁ = D − 1.08253·P (the tap drill) and a groove out to D. The flank is cut square to the helix and the axial widths are corrected by the cosine of the helix angle so pitch and crest widths are exact.

خيطتحويلة. قاصر د₃تحويلة. الارتفاع ح₃كثافة العمليات. طفيفة D₁عرض الجذرعرض القمة
M6 × 14.77310.61344.91750.83330.125
M8 × 1.256.46640.76686.64681.04170.1563
M10 × 1.58.15970.92018.37621.250.1875
M12 × 1.759.8531.073510.10561.45830.2188

القيم هي threadSizes(d, P, internal) output. Heights are 0.61343·P (external) and 0.54127·P (internal); the crest is P/8.

م8 × 1.25 خيط خارجي، 5 ملم اسحب إلى المدار · قم بالتمرير للتكبير · اسحب بزر الماوس الأيمن للتحريك
threadTool({ diameter: 8, pitch: 1.25, length: 5, internal: false }): 3 698 triangles. The full 10 mm version is 7 020 triangles, a closed solid of genus 0, V 408.0 mm³, built in 460 ms.
threadProblem — رسائل حقيقية
threadProblem({ diameter: 6, pitch: 4, length: 10, internal: false })
// "A pitch of 4 mm is too coarse for a 6 mm thread"       (pitch > d/2)
threadProblem({ diameter: 6, pitch: 0.1, length: 10, internal: false })
// "A thread has at most 58 turns (this one is 100.0 long: 10 mm at a pitch of 0.1 mm)"
threadProblem({ diameter: 6, pitch: 1, length: 10, internal: false })   // undefined: buildable

حد الدوران 58 هو COIL_MAX_TURNS − 2: تبدأ الحافة بخطوة واحدة قبل الخيط وتنتهي بخطوة واحدة بعد ذلك، بحيث تتوافق القطع النهائية المسطحة مع المظهر الجانبي الكامل.

الحلزونات

coilGeometry يُرجع الخط الأوسط والحلقة الجانبية الأولى لسلك ملفوف حول Z، لـ sweepSolid. تتبع النقاط لكل دورة من نصف القطر بحيث تبقى الأوتار ضمن 0.01 ملم من الحلزون الحقيقي: stepsPerTurn(r) = clamp(⌈π / acos(1 − 0.01/r)⌉, 32, 128).
نصف القطرstepsPerTurn
132
550
50128
الملف r 10، درجة الصوت 4، 5 دورات اسحب إلى المدار · قم بالتمرير للتكبير · اسحب بزر الماوس الأيمن للتحريك
coilGeometry({ cx: 0, cy: 0, z0: 0, radius: 10, pitch: 4, turns: 5, wire: 1.5, square: false, left: false }).path: 356 points (5 × 71 + 1), drawn as a toolpath-style polyline.

الصفائح المعدنية

شكل الصفائح المعدنية هو خط مركزي سميك إلى شريط ذو سمك ثابت، مع وجود المادة على اليسار أو اليمين أو كلا الجانبين، ونصف قطر الانحناء الداخلي r في كل زاوية. developedLength unbends it with a K-factor (default 0.44): each bend contributes (r + K·t)·θ and each straight run loses the setback of its neighbouring bends.

قناة U: t 2، داخل R3، شفة 30 مم اسحب إلى المدار · قم بالتمرير للتكبير · اسحب بزر الماوس الأيمن للتحريك
sheetOutline([(0,30),(0,0),(40,0),(40,20)], 2, ”left”, 3): an 80-point closed outline, extruded 30 mm along the sketch normal as the history does.
developedLength(path, 2, 3, "left") — إخراج حقيقي
{"straight":70,
 "bends":[{"angle":1.5707963267948966,"allowance":6.094689747964199},
          {"angle":1.5707963267948966,"allowance":6.094689747964199}],
 "length":82.18937949592839}
شريحةامتداد النمط المسطح، مم
مستوي0 → 25
انحناء 90°25 → 31.095 (البدل 6.0947)
مستوي31.095 → 61.095
انحناء 90°61.095 → 67.189
مستوي67.189 → 82.189

Check: (3 + 0.44 × 2) × π/2 = 6.0947 per bend, and 70 + 2 × 6.0947 = 82.189 mm.

استكشاف الأخطاء وإصلاحها

رسالةيصلح
يحتاج الترس إلى وحدة نمطية > 0 و6 أسنان كاملة على الأقلاستخدم z ≥ 6 وعدد صحيح من الأسنان
يجب أن تكون زاوية الضغط بين 0 و45 درجة20° هو المعيار؛ 14.5° و25° من البدائل الشائعة
خطوة P مم خشنة جدًا بالنسبة لخيط D مميجب أن يكون الملعب على الأقل نصف القطر
يحتوي مؤشر الترابط على 58 دورة على الأكثرقم بتقسيم الخيط إلى أجزاء أقصر، أو استخدم درجة صوت أكثر خشونة
يجب أن يكون سمك الورقة موجبًا (هو 0)تمرير سمك > 0
المسار ضيق جدًا بالنسبة لهذا السُمك: ينكسر منحنى الإزاحة الخاص بهزيادة نصف قطر الانحناء أو تقليل السمك