Bitbybit Docs
    Preparing search index...

    Class OCCTMachiningDin

    Machining on round shafts and bores sized from the metric DIN tables, in the unit asked for: DIN 6885 keyways milled into a shaft or cut through a hub, the grooves DIN 471 and DIN 472 retaining rings sit in, DIN 82 knurls, and DIN 5480 involute splines on a shaft and through a hub. Each comes as a tool for a design's boolean and as a method that cuts it from a body.

    Index

    Constructors

    grooves

    • Makes the solid the groove of a DIN 471 or DIN 472 retaining ring removes from a shaft or a bore: as wide as the groove, down to its diameter.

      It starts at the frame's origin on the axis and runs the groove's width along the normal.

      Parameters

      Returns Promise<TopoDSShapePointer>

      The tool as a solid

      const cutter = await bitbybit.occt.parts.mechanical.machining.din.ringGrooveTool({ kind: Bit.Inputs.Engineering.retainingRingKindEnum.shaft, diameter: 20 });
      
    • Cuts the groove of a DIN 471 or DIN 472 retaining ring into a shaft or a bore, as ringGrooveTool places it; parts.mechanical.retainingRings.din.retainingRing at the same frame sits in it.

      The body given is kept; a new solid comes back.

      Parameters

      Returns Promise<TopoDSShapePointer>

      The body with the groove cut

      const shaft = await bitbybit.occt.shapes.solid.createCylinder({ radius: 10, height: 40, center: [0, 0, 0], direction: [0, 1, 0] });
      const grooved = await bitbybit.occt.parts.mechanical.machining.din.ringGroove({ shape: shaft, diameter: 20, frame: { origin: [0, 30, 0], normal: [0, 1, 0], direction: [1, 0, 0] } });

    keyways

    • Makes the solid a DIN 6885 keyway removes: the round-ended pocket milled into a shaft, or the straight keyway cut through a hub's bore, sized for the diameter.

      It starts at the frame's origin on the axis, runs length along the normal and faces the frame's direction.

      Parameters

      • inputs: DinKeywayToolDto

        The diameter, the length, shaft or hub, the unit and the frame

      Returns Promise<TopoDSShapePointer>

      The tool as a solid

      const cutter = await bitbybit.occt.parts.mechanical.machining.din.keywayTool({ diameter: 20, length: 25 });
      
    • Cuts a DIN 6885 keyway into a shaft or through a hub, as keywayTool places it.

      The body given is kept; a new solid comes back.

      Parameters

      Returns Promise<TopoDSShapePointer>

      The body with the keyway cut

      const shaft = await bitbybit.occt.shapes.solid.createCylinder({ radius: 10, height: 40, center: [0, 0, 0], direction: [0, 1, 0] });
      const keyed = await bitbybit.occt.parts.mechanical.machining.din.keyway({ shape: shaft, diameter: 20, length: 25, frame: { origin: [0, 5, 0], normal: [0, 1, 0], direction: [1, 0, 0] } });

    knurls

    • Makes the solid a DIN 82 knurl removes from a round shaft: 90 degree grooves half the pitch deep, straight, helical at 30 degrees or crossing in a raised diamond.

      Its crests sit on the diameter the pitch divides evenly, nearest the one given; it starts at the frame's origin and runs length along the normal.

      Parameters

      • inputs: DinKnurlToolDto

        The diameter, the length, the pitch, the pattern, the unit and the frame

      Returns Promise<TopoDSShapePointer>

      The tool as a solid

      const cutter = await bitbybit.occt.parts.mechanical.machining.din.knurlTool({ diameter: 10, length: 10, pitch: 1, pattern: Bit.Inputs.Engineering.knurlPatternEnum.diamond });
      
    • Knurls a round shaft, as knurlTool places the knurl.

      A diamond on a long knurl is heavy to build, its grooves crossing on every pitch. The body given is kept; a new solid comes back.

      Parameters

      Returns Promise<TopoDSShapePointer>

      The knurled shaft

      const knob = await bitbybit.occt.shapes.solid.createCylinder({ radius: 5, height: 12, center: [0, 0, 0], direction: [0, 1, 0] });
      const knurled = await bitbybit.occt.parts.mechanical.machining.din.knurl({ shape: knob, diameter: 10, length: 10, pitch: 1 });

    splines

    • Makes a DIN 5480 involute splined shaft: its teeth at 30 degrees, sized from the reference diameter and the module, length long.

      It starts at the frame's origin, runs along the normal, and a tooth points along the frame's direction.

      Parameters

      • inputs: DinSplineDto

        The reference diameter, the module, the length, the unit and the frame

      Returns Promise<TopoDSShapePointer>

      A new solid

      const shaft = await bitbybit.occt.parts.mechanical.machining.din.splinedShaft({ referenceDiameter: 25, module: 1.25, length: 30 });
      
    • Makes the solid a DIN 5480 hub spline removes: the shaft's flanks, with the hub's tip and root diameters, so the shaft of the same size slides into the cut.

      It starts at the frame's origin, runs length along the normal, and a gap faces the frame's direction, where splinedShaft at the same frame has a tooth.

      Parameters

      • inputs: DinSplineDto

        The reference diameter, the module, the length, the unit and the frame

      Returns Promise<TopoDSShapePointer>

      The tool as a solid

      const cutter = await bitbybit.occt.parts.mechanical.machining.din.splinedHubTool({ referenceDiameter: 25, module: 1.25, length: 15 });
      
    • Cuts a DIN 5480 spline through a hub, as splinedHubTool places it.

      The body given is kept; a new solid comes back.

      Parameters

      Returns Promise<TopoDSShapePointer>

      The hub with the spline cut

      const blank = await bitbybit.occt.shapes.solid.createCylinder({ radius: 25, height: 15, center: [0, 0, 0], direction: [0, 1, 0] });
      const hub = await bitbybit.occt.parts.mechanical.machining.din.splinedHub({ shape: blank, referenceDiameter: 25, module: 1.25, length: 15 });