コンテンツへスキップ
CADCAMFUN
ドキュメント

ドキュメント

特徴ジェネレータ

インボリュート歯車、ISO メートルねじ、らせん、フラット パターンの板金ストリップ: 少数の数値から正確なプロファイルとメッシュを作成します。

英語から自動翻訳されています。 英語の原文を見る

特徴ジェネレータ

フィーチャー ジェネレーターは、いくつかのエンジニアリング数値を正確なプロファイルまたはメッシュに変換します。たとえば、モジュールと歯数からインボリュート歯車、直径とピッチから ISO ねじ、半径とピッチからねじれ、中心線と厚さから曲げストリップです。それぞれは純粋な関数です packages/core/src/cad;エディター、アシスタント、CAM モデルは同じ関数を呼び出すため、3 つすべてが同じ部分を参照します。

ジェネレータファイル主な輸出品
インボリュート平歯車gear.tsgearDimensions、gearOutline、MIN_GEAR_TEETH = 6
ISOメートルねじthread.ts (124 行)threadSizes、threadProblem、threadTool、threadGroove
ヘリックス/コイルhelix.ts (41 行)コイルジオメトリ、ステップごとのターン、COIL_STEPS_PER_TURN = 32、COIL_MAX_TURNS = 60
板金sheet-metal.ts (235 行)sheetOutline、developmentLength、withHems、 flatPatternDrawing、 flatPatternDxf

インボリュート歯車

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₃内線高さ h₃整数。マイナー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.

M8 × 1.25 雄ねじ、5 mm ドラッグして周回します · スクロールしてズーム · 右ドラッグしてパンします
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.
thread問題 — 実際のメッセージ
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: 尾根はねじ山の 1 ピッチ前から始まり、1 ピッチ後に終了するため、フラットエンドカットは完全なプロファイルを満たします。

ヘリックス

coilGeometry z の周りに巻かれたワイヤの中心線と最初のプロファイル リングを返します。 sweepSolid。回転ごとのポイントは半径に従うため、弦は真の螺旋から 0.01 mm 以内に留まります。 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 mm フランジ ドラッグして周回します · スクロールしてズーム · 右ドラッグしてパンします
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}
セグメントフラットパターンスパン、mm
フラット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 mm のピッチは D mm ねじに対して粗すぎますピッチは最大でも直径の半分でなければなりません
スレッドの最大ターン数は 58 ですねじ山を短いフィーチャーに分割するか、より粗いピッチを使用します
シートの厚さは正の値でなければなりません (0 です)厚さ > 0 を渡します
この厚さに対してパスが狭すぎます: オフセット カーブが壊れています曲げ半径を大きくするか、厚さを薄くしてください