An external spline with fillet root tooth. Model as a cylindrical spline body with straight teeth distributed evenly around the axis, and...
Run
harbor run -t gnucleus-ai/freecad-d733bfa285
Download
harbor download gnucleus-ai/freecad-d733bfa285
Details
Revision
2
Published
Sep 3, 2026
Visibility
Public
Authors
gNucleus AI, Inc.
Content hash
Keywords
freecad
cad
parametric
geometry
python
Write a FreeCAD Python script to answer.py that reproduces the
part described below.
The model must be built as a parametric feature tree inside a single PartDesign Body,
producing exactly one solid body. Use editable PartDesign features to construct the
model for better parameterization.The saved FCStd must contain named document objects
whose properties drive the geometry, not a single Part::Feature holding
a pre-computed TopoShape.
Save the generated model as an .FCStd file next to the script, using
the script stem as the output basename. The output path must be derived
from __file__ at runtime; do not hardcode the path or rely on the
current working directory. Only the FCStd written next to the executing
script file is graded.
Part description:
An external spline with fillet root tooth. Model as a cylindrical spline body with straight teeth distributed evenly around the axis, and apply a rounded fillet at the root of each tooth.
In CAD, the tooth profile of a spline can be drawn using a series of simplified circular arcs. Key parameters include number_teeth, spline_module, spline_pitch_diameter, spline_height, pressure_angle, and fillet_radius.
Key parameters:
number_teeth = 23
spline_module = 3 mm
spline_pitch_diameter = number_teeth * spline_module = 23 * 3 mm = 69 mm
spline_height = 10 mm
pressure_angle = 30 degree
fillet_radius = 1.2 mm
FreeCAD version: 1.1.0.
Output location: write your script to /app/answer.py and the generated model to /app/answer.FCStd. The verifier reads from these exact paths; files saved anywhere else are not graded.