cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Drawing a gear through REST API and get a response as STEP

Open leiferksn opened this issue 1 year ago • 0 comments

Hi,

we would like to have a construct named cylindrical gear with the following input parameters (which are given):

  1. 2D Tooth contour
  2. Sweep angle (rad/mm)
  3. Helix axis
  4. Gear width (mm)
  5. Number of teeth
  6. Root diameter

The tooth contour is a closed contour consisting of circular arcs, lines, b-splines, cubic bezier curves (+ control points).

When executing the script the following functions should be executed:

  • generate a helix using the tooth contour along the helix axis with gear width as length and using the sweep angle. This would be one gear tooth.
  • create a all teeth as polar array from the first tooth. number of elements = number of teeth. equidistantly over 360 degrees.
  • create the wheel body using the root diameter, the helix axis and the gear width.

We would like to call this through a REST API and the response to be a STEP file.

leiferksn avatar Feb 02 '24 14:02 leiferksn