Back to docs

Flat Parts
flat part thumbnail flat
flat_frame part thumbnail flat_frame
A prpol flat part

This is what is generated from flat(dimensions = [5, 5]);.

Customizing flat parts with OpenSCAD parameters

This page covers flat and flat_frame, the two grid-sized plate parts. They share the same set of parameters:

flat( dimensions = [3,3], plate_thickness = 2.5, chamfer_depth = 0.75, hole_diameter = 3.2, hole_faces = 20, echo_parameters = true );
dimensions the nominal size as an ordered list of 1 cm units, of the form [i, j] where i is the number of units along the X direction and j in the Y direction.
plate_thickness plate thickness in mm (default 2.5).
chamfer_depth edge chamfer in mm (default 0.75).
hole_diameter mounting hole diameter in mm (default 3.2, sized for m3 screws).
hole_faces the number of sides used for the round holes (default 20). Higher values give smoother holes but slower renders.
echo_parameters when true (default), the OpenSCAD console echoes the full parameter list when you preview or render the module.

If you leave a parameter out of the module call, that parameter will just have the default value. For example, these are all valid module calls:

flat(); flat([3,3]); flat(dimensions=[2,4], plate_thickness=3); flat_frame(); flat_frame([4,4]);