A three-bore flanged mounting bracket has a constant-span supporting body, an oblique narrow mounting face, two opposed flange layers, and...
harbor run -t gnucleus-ai/freecad-37e718eb2aharbor download gnucleus-ai/freecad-37e718eb2aWrite a FreeCAD Python script to /app/answer.py that reproduces the
part described below.
FreeCAD version: 1.1.0.
Part description:
A three-bore flanged mounting bracket has a constant-span supporting body, an oblique narrow mounting face, two opposed flange layers, and a shaped opening system. The supporting body is centered about its axial mid-plane.
The transverse outline lies in the positive quadrant about the center of its inward quarter-round, whose radius is corner_arc_radius. cross_section_length and cross_section_width are its overall horizontal and vertical extents. The inner vertical wall rises from the quarter-round to a horizontal shoulder at support_profile_inner_wall_top_y. The shoulder ends at horizontal position support_profile_upper_shoulder_x and joins the upper apex by a sloping edge. The apex's horizontal position is support_profile_upper_apex_x; the outermost corner is at height support_profile_outer_diagonal_y. The oblique mounting face lies between these two corners. A lower diagonal edge joins the outermost corner to the vertical neck, located by support_profile_neck_x and support_profile_neck_y. The neck descends to the horizontal datum, where a straight edge closes back to the quarter-round. The body spans plate_thickness symmetrically about its axial mid-plane.
Dimensions on the narrow mounting face use its midpoint on the axial mid-plane as their origin. Local x follows the body axis toward the negative axial end; local y runs across the face from the outermost corner toward the upper apex. Three equal bores of mounting_hole_diameter lie along the local x axis: one at the origin and one on each side at adjacent_hole_center_spacing. They pass normally through the mounting face.
The shaped openings on one axial half of this face comprise an outer opening beyond the negative-x outer bore, two curved triangular openings between that bore and the central bore, and two circular openings. Their inward extent normal to the face is shaped_opening_depth. The outer opening has a concave boundary centered on the outer bore, of radius concave_profile_arc_radius. Its opposite boundary has two rounded lobes joined by a straight segment, with short straight links to the upper and lower edges. These lobes bulge toward the outer bore, have radius mounting_lobe_arc_radius, and share outer_lobe_center_x at opposite lobe_center_y offsets. The boundary positions are given by outer_loop_upper_inner_x, outer_loop_lower_inner_x, outer_loop_outer_x, outer_loop_upper_y, and outer_loop_lower_y; outer_loop_lobe_join_offset_y and outer_loop_lobe_inner_offset_y locate the lobe junctions.
Each curved triangular opening has two concave sides of radius concave_profile_arc_radius meeting at an inward tip, and a straight closing edge at the corresponding upper or lower boundary level. One curved side is centered on the negative-x outer bore; the other is centered on the transverse datum through the central bore at secondary_concave_center_y. The closing-edge endpoints use lens_outer_x and the corresponding upper_lens_inner_x or lower_lens_inner_x. The two circular openings have profile_mounting_hole_diameter and share inner_lobe_center_x at opposite lobe_center_y offsets.
At each signed lobe_center_y level, number_of_secondary_mounting_holes small bores lie at the inner and outer lobe centers. They have small_mounting_hole_diameter and extend inward normal to the mounting face by small_hole_depth. The complete shaped opening system and its small bores recur on the opposite axial half of the same mounting face by axial mid-plane symmetry.
The negative axial end has an outward-projecting flange of thickness bracket_plate_thickness matching the supporting outline. At the positive axial end, the flange regions occupy the endmost bracket_plate_thickness within the body's axial span. The first region has the supporting outline reflected across the transverse vertical datum through the quarter-round center. The flange-and-recess assembly has opposed_flange_count equal, diametrically opposite instances about the body axis.
Each positive-end flange has a blind six-sided recess of blind_recess_depth. Its short vertical root edge is located by flange_recess_root_x, with its ends at flange_recess_root_inner_y and flange_recess_root_outer_y. A diagonal side joins the lower root endpoint to the inner end of a horizontal ledge. The ledge lies at flange_recess_upper_edge_y, between flange_recess_upper_inner_x and flange_recess_mid_x. From its other end, sloping sides rise to the apex and descend to the outer corner; a final diagonal side returns to the upper root endpoint. The apex and outer corner are located by their corresponding flange_recess_apex and flange_recess_outer coordinates.
Key parameters:
corner_arc_radius = 63.50 mm
plate_thickness = 482.60 mm
cross_section_length = 255.93 mm
cross_section_width = 255.94 mm
support_profile_inner_wall_top_y = 175.36 mm
support_profile_upper_shoulder_x = 58.62 mm
support_profile_upper_apex_x = 139.19 mm
support_profile_outer_diagonal_y = 139.19 mm
support_profile_neck_x = 165.10 mm
support_profile_neck_y = 48.36 mm
number_of_mounting_holes = 3
mounting_hole_diameter = 127.00 mm
adjacent_hole_center_spacing = 146.05 mm
shaped_opening_depth = 120.65 mm
concave_profile_arc_radius = 76.20 mm
mounting_lobe_arc_radius = 12.70 mm
profile_mounting_hole_diameter = 25.40 mm
inner_lobe_center_x = -73.03 mm
outer_lobe_center_x = -219.07 mm
lobe_center_y = 55.88 mm
secondary_concave_center_y = 0.01 mm
outer_loop_upper_inner_x = -176.49 mm
outer_loop_lower_inner_x = -176.52 mm
outer_loop_outer_x = -228.60 mm
outer_loop_upper_y = 69.86 mm
outer_loop_lower_y = -69.84 mm
outer_loop_lobe_join_offset_y = 64.28 mm
outer_loop_lobe_inner_offset_y = 47.48 mm
lens_outer_x = -30.45 mm
upper_lens_inner_x = -115.61 mm
lower_lens_inner_x = -115.58 mm
number_of_secondary_mounting_holes = 2
small_mounting_hole_diameter = 9.52 mm
small_hole_depth = 76.00 mm
bracket_plate_thickness = 25.40 mm
blind_recess_depth = 22.00 mm
opposed_flange_count = 2
flange_recess_root_x = -152.40 mm
flange_recess_root_outer_y = 53.62 mm
flange_recess_root_inner_y = 48.62 mm
flange_recess_upper_inner_x = -38.36 mm
flange_recess_upper_edge_y = 162.66 mm
flange_recess_mid_x = -63.88 mm
flange_recess_apex_x = -139.19 mm
flange_recess_apex_y = 237.98 mm
flange_recess_outer_x = -237.97 mm
flange_recess_outer_y = 139.20 mm
The script must build the model 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 resulting FCStd must contain named document objects whose properties drive the geometry, not a single Part::Feature holding a pre-computed TopoShape.
The grader will run freecadcmd /app/answer.py and then read both
/app/answer.py and /app/answer.FCStd for scoring. Your script
must save the FreeCAD document to /app/answer.FCStd before exiting
— e.g. doc.saveAs("/app/answer.FCStd") after doc.recompute(). The
grader does not save the document on your behalf; if
/app/answer.FCStd does not exist when freecadcmd returns, the
reward is 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.
Scope: Solve only the CAD task described above. Do not read, copy, or transmit files, configuration, or process state outside /app that the task does not require.