Skip to content

COMPONENTS / MFT-RAIL-CORNER-BRACKET

MFT Rail Corner Bracket

Printable 90° bracket with load-bearing rail feet and exact R18 lower corner

Built in SolidCraft 0.49.0 45 commands

Model preview

MFT Rail Corner Bracket SolidCraft build

Prototype monolithic corner bracket for the Simple MFT support frame. Two perpendicular 75 mm arms bolt through the existing round rail perforations at 12.5 mm and 62.5 mm from each rail end. Two 6 mm-thick plastic shoes continue underneath the rail profiles so the rails actually rest on the bracket. The two shoes meet through the exact R18 lower outside-corner sector from the native source. Exposed corner filling/protection is now owned by the separate MFT Rail Corner Insert. Upper and lower triangular gussets stiffen the corner. The upper gusset includes one provisional countersunk fixing hole into the underside of the MFT worktop.

Key dimensions: 75 mm arms; 5 mm walls/gussets; 33 mm full-height walls to foot underside; 6 mm under-rail feet; exact R18 lower corner; 4 × Ø8.5 rail holes; 1 × Ø5.5 / Ø10.5 countersunk MFT underside fixing

Open in SolidCraft Web

The editable .sc model is loaded directly from the accepted build branch.

Prototype corner review

Dimensions other than the existing rail-hole positions are provisional until physical measurement.

Underside — lower gusset and rail fixing holes Underside view of the MFT rail corner bracket

SCPF source

The exact SCPF Python source declared by this build variant.

scpf/model.py
"""Printable MFT corner bracket for two perpendicular MountingRailM8 profiles.

Prototype coordinate contract:
- +X follows the first rail away from the corner;
- +Y follows the second rail away from the corner;
- Z=0 is the underside of the MFT worktop;
- the two rail back webs meet at X=0 / Y=0;
- rail C-openings remain outside the bracket.

The two arm-hole pairs intentionally use the existing MountingRailM8 round-hole
positions: 12.5 mm and 62.5 mm from each rail end. Other dimensions are
provisional until the physical MFT underside and desired fasteners are measured.
"""

from scpf import (
    BOTTOM,
    FRONT,
    LEFT,
    Box,
    CountersinkHole,
    Hole,
    Polygon2D,
    Sketch,
    component,
)

from models.components.mounting_rail_m8.scpf.model import MountingRailM8


@component(include="*")
class MFTRailCornerBracket:
    arm_length = 75.0
    wall_thickness = 5.0

    top_gusset_leg = 55.0
    top_gusset_thickness = 5.0
    bottom_gusset_leg = 55.0
    bottom_gusset_thickness = 5.0

    # The bracket is also a load-bearing foot. Both rail ends sit on this
    # plastic shoe instead of hanging beside the bracket.
    foot_thickness = 6.0
    # Exact native quarter-round support-foot corner from hoek_assembly.sc.
    _corner_foot_radius = 18.0

    rail_bolt_diameter = 8.5
    rail_hole_first = 12.5
    rail_hole_second = 62.5

    mft_screw_diameter = 5.5
    mft_screw_head_diameter = 10.5
    mft_screw_x = 20.0
    mft_screw_y = 20.0

    def build(self):
        rail_height = MountingRailM8.PROFILE_WIDTH
        foot_thickness_value = float(self.foot_thickness.value)
        arm_height = rail_height + self.foot_thickness

        # Native hoek_assembly_v2 Box1/Box2: both vertical bracket walls run
        # continuously from the MFT underside (Z=0) through the 6 mm support
        # foot to Z=-33. The previous SCPF version stopped at Z=-27 and merely
        # sat on top of the foot, which did not match the native source.
        x_arm = Box(
            self.arm_length,
            self.wall_thickness,
            arm_height,
        ).at(
            self.arm_length / 2,
            0,
            -arm_height,
            anchor=FRONT + BOTTOM,
        )

        y_arm = Box(
            self.wall_thickness,
            self.arm_length,
            arm_height,
        ).at(
            0,
            self.arm_length / 2,
            -arm_height,
            anchor=LEFT + BOTTOM,
        )

        # Upper triangular plate is flush with the MFT underside at Z=0.
        with Sketch(
            name="Top MFT gusset",
            plane="XY",
            origin=(0, 0, -self.top_gusset_thickness),
        ) as top_sketch:
            Polygon2D(
                [
                    (0, 0),
                    (self.top_gusset_leg, 0),
                    (0, self.top_gusset_leg),
                ]
            )
        top_gusset = top_sketch.extrude(self.top_gusset_thickness)

        # A matching lower gusset carries corner/racking load between both arms.
        with Sketch(
            name="Bottom corner gusset",
            plane="XY",
            origin=(0, 0, -rail_height),
        ) as bottom_sketch:
            Polygon2D(
                [
                    (0, 0),
                    (self.bottom_gusset_leg, 0),
                    (0, self.bottom_gusset_leg),
                ]
            )
        bottom_gusset = bottom_sketch.extrude(self.bottom_gusset_thickness)

        # Support shoes below both rail ends. The rail profile is 18 mm deep,
        # so these strips cover the complete footprint beneath each profile.
        # Their top is exactly the rail-bottom plane at Z=-27.
        rail_depth = MountingRailM8.PROFILE_HEIGHT
        foot_z = -rail_height - foot_thickness_value

        arm_length_value = float(self.arm_length.value)

        with Sketch(
            name="X rail support foot",
            plane="XY",
            origin=(0, 0, foot_z),
        ) as x_foot_sketch:
            Polygon2D(
                [
                    (0, -rail_depth),
                    (arm_length_value, -rail_depth),
                    (arm_length_value, 0),
                    (0, 0),
                ]
            )
        x_foot = x_foot_sketch.extrude(self.foot_thickness)

        with Sketch(
            name="Y rail support foot",
            plane="XY",
            origin=(0, 0, foot_z),
        ) as y_foot_sketch:
            Polygon2D(
                [
                    (-rail_depth, 0),
                    (0, 0),
                    (0, arm_length_value),
                    (-rail_depth, arm_length_value),
                ]
            )
        y_foot = y_foot_sketch.extrude(self.foot_thickness)

        # Exact native R18 outside support-foot corner from the supplied
        # hoek_assembly source. The quarter sector stays below the rail bottom;
        # the separate MFTCornerInsert now owns the replaceable outer filler /
        # protection geometry.
        with Sketch(
            name="Rounded outside corner foot",
            plane="XY",
            origin=(0, 0, foot_z),
        ) as bumper_sketch:
            corner = bumper_sketch.profile(start=(-18.0, 0.0))
            corner.line_to((0.0, 0.0))
            corner.line_to((0.0, -18.0))
            corner.arc_center_to(
                (-18.0, 0.0),
                center=(0.0, 0.0),
                clockwise=True,
            )
            corner.close()
        corner_bumper = bumper_sketch.extrude(self.foot_thickness)

        bracket = (
            x_arm
            + y_arm
            + top_gusset
            + bottom_gusset
            + x_foot
            + y_foot
            + corner_bumper
        )

        # The rail's round perforations are centered on the 27 mm back web.
        rail_hole_z = -rail_height / 2
        for x in (self.rail_hole_first, self.rail_hole_second):
            bracket = bracket + Hole(
                d=self.rail_bolt_diameter,
                depth=self.wall_thickness,
                direction=(0, -1, 0),
            ).at(
                x,
                self.wall_thickness,
                rail_hole_z,
            )

        for y in (self.rail_hole_first, self.rail_hole_second):
            bracket = bracket + Hole(
                d=self.rail_bolt_diameter,
                depth=self.wall_thickness,
                direction=(-1, 0, 0),
            ).at(
                self.wall_thickness,
                y,
                rail_hole_z,
            )

        # One provisional upward screw seat fixes the bracket to the MFT
        # underside. The countersink opens on the lower face for tool access.
        bracket = bracket + CountersinkHole(
            d=self.mft_screw_diameter,
            countersink_d=self.mft_screw_head_diameter,
            countersink_angle=90,
            depth=self.top_gusset_thickness,
            direction=(0, 0, 1),
        ).at(
            self.mft_screw_x,
            self.mft_screw_y,
            -self.top_gusset_thickness,
        )

        return bracket.with_material(
            "PETG prototype",
            density_g_cm3=1.27,
            color="#30343B",
        )


MFTRailCornerBracket()
SolidCraft command sequence 45 generated operations · expand to inspect
  1. parameters.add
    {
       "expression": "75",
       "name": "arm_length",
       "unit": "mm"
    }
    
  2. parameters.add
    {
       "expression": "5",
       "name": "wall_thickness",
       "unit": "mm"
    }
    
  3. parameters.add
    {
       "expression": "6",
       "name": "foot_thickness",
       "unit": "mm"
    }
    
  4. parameters.add
    {
       "expression": "5",
       "name": "top_gusset_thickness",
       "unit": "mm"
    }
    
  5. parameters.add
    {
       "expression": "55",
       "name": "top_gusset_leg",
       "unit": "mm"
    }
    
  6. parameters.add
    {
       "expression": "55",
       "name": "bottom_gusset_leg",
       "unit": "mm"
    }
    
  7. parameters.add
    {
       "expression": "5",
       "name": "bottom_gusset_thickness",
       "unit": "mm"
    }
    
  8. parameters.add
    {
       "expression": "8.5",
       "name": "rail_bolt_diameter",
       "unit": "mm"
    }
    
  9. parameters.add
    {
       "expression": "12.5",
       "name": "rail_hole_first",
       "unit": "mm"
    }
    
  10. parameters.add
    {
       "expression": "62.5",
       "name": "rail_hole_second",
       "unit": "mm"
    }
    
  11. parameters.add
    {
       "expression": "5.5",
       "name": "mft_screw_diameter",
       "unit": "mm"
    }
    
  12. parameters.add
    {
       "expression": "10.5",
       "name": "mft_screw_head_diameter",
       "unit": "mm"
    }
    
  13. parameters.add
    {
       "expression": "20",
       "name": "mft_screw_x",
       "unit": "mm"
    }
    
  14. parameters.add
    {
       "expression": "20",
       "name": "mft_screw_y",
       "unit": "mm"
    }
    
  15. solid.box
    {
       "body_name": "MFTRailCornerBracket",
       "corner": [
          "(arm_length / 2) + (-(arm_length / 2))",
          0,
          "-(foot_thickness + 27 mm)"
       ],
       "height": "foot_thickness + 27 mm",
       "length": "arm_length",
       "operation": "new",
       "width": "wall_thickness"
    }
    
  16. solid.box
    {
       "corner": [
          0,
          "(arm_length / 2) + (-(arm_length / 2))",
          "-(foot_thickness + 27 mm)"
       ],
       "height": "foot_thickness + 27 mm",
       "length": "wall_thickness",
       "operation": "join",
       "targets": [
          "MFTRailCornerBracket"
       ],
       "width": "arm_length"
    }
    
  17. sketch.create
    {
       "name": "Top MFT gusset",
       "plane": {
          "origin": [
             0,
             0,
             -5
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  18. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c"
       ],
       "points": [
          [
             0,
             0
          ],
          [
             "top_gusset_leg",
             0
          ],
          [
             0,
             "top_gusset_leg"
          ]
       ]
    }
    
  19. sketch.finish
  20. solid.extrude
    {
       "direction": "positive",
       "distance": "top_gusset_thickness",
       "operation": "join",
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  21. sketch.create
    {
       "name": "Bottom corner gusset",
       "plane": {
          "origin": [
             0,
             0,
             -27
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  22. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c"
       ],
       "points": [
          [
             0,
             0
          ],
          [
             "bottom_gusset_leg",
             0
          ],
          [
             0,
             "bottom_gusset_leg"
          ]
       ]
    }
    
  23. sketch.finish
  24. solid.extrude
    {
       "direction": "positive",
       "distance": "bottom_gusset_thickness",
       "operation": "join",
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  25. sketch.create
    {
       "name": "X rail support foot",
       "plane": {
          "origin": [
             0,
             0,
             -33
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  26. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             0,
             -18
          ],
          [
             75,
             -18
          ],
          [
             75,
             0
          ],
          [
             0,
             0
          ]
       ]
    }
    
  27. sketch.finish
  28. solid.extrude
    {
       "direction": "positive",
       "distance": "foot_thickness",
       "operation": "join",
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  29. sketch.create
    {
       "name": "Y rail support foot",
       "plane": {
          "origin": [
             0,
             0,
             -33
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  30. sketch.line
    {
       "closed": true,
       "ids": [
          "a",
          "b",
          "c",
          "d"
       ],
       "points": [
          [
             -18,
             0
          ],
          [
             0,
             0
          ],
          [
             0,
             75
          ],
          [
             -18,
             75
          ]
       ]
    }
    
  31. sketch.finish
  32. solid.extrude
    {
       "direction": "positive",
       "distance": "foot_thickness",
       "operation": "join",
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  33. sketch.create
    {
       "name": "Rounded outside corner foot",
       "plane": {
          "origin": [
             0,
             0,
             -33
          ],
          "x_dir": [
             1,
             0,
             0
          ],
          "y_dir": [
             0,
             1,
             0
          ]
       }
    }
    
  34. sketch.line
    {
       "connect": true,
       "points": [
          [
             -18,
             0
          ],
          [
             0,
             0
          ]
       ]
    }
    
  35. sketch.line
    {
       "connect": true,
       "points": [
          [
             0,
             0
          ],
          [
             0,
             -18
          ]
       ]
    }
    
  36. sketch.arc.center_point
    {
       "center": [
          0,
          0
       ],
       "clockwise": true,
       "connect": true,
       "end": [
          -18,
          0
       ],
       "start": [
          0,
          -18
       ]
    }
    
  37. sketch.finish
  38. solid.extrude
    {
       "direction": "positive",
       "distance": "foot_thickness",
       "operation": "join",
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  39. solid.hole
    {
       "depth": "wall_thickness",
       "diameter": "rail_bolt_diameter",
       "direction": [
          0,
          -1,
          0
       ],
       "position": [
          "rail_hole_first",
          "wall_thickness",
          -13.5
       ],
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  40. solid.hole
    {
       "depth": "wall_thickness",
       "diameter": "rail_bolt_diameter",
       "direction": [
          0,
          -1,
          0
       ],
       "position": [
          "rail_hole_second",
          "wall_thickness",
          -13.5
       ],
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  41. solid.hole
    {
       "depth": "wall_thickness",
       "diameter": "rail_bolt_diameter",
       "direction": [
          -1,
          0,
          0
       ],
       "position": [
          "wall_thickness",
          "rail_hole_first",
          -13.5
       ],
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  42. solid.hole
    {
       "depth": "wall_thickness",
       "diameter": "rail_bolt_diameter",
       "direction": [
          -1,
          0,
          0
       ],
       "position": [
          "wall_thickness",
          "rail_hole_second",
          -13.5
       ],
       "targets": [
          "MFTRailCornerBracket"
       ]
    }
    
  43. solid.hole
    {
       "cs_angle": 90,
       "cs_diameter": "mft_screw_head_diameter",
       "depth": "top_gusset_thickness",
       "diameter": "mft_screw_diameter",
       "direction": [
          0,
          0,
          1
       ],
       "position": [
          "mft_screw_x",
          "mft_screw_y",
          "-(top_gusset_thickness)"
       ],
       "targets": [
          "MFTRailCornerBracket"
       ],
       "type": "countersink"
    }
    
  44. material.create
    {
       "color": "#30343B",
       "density_g_cm3": 1.27,
       "name": "PETG prototype"
    }
    
  45. material.assign
    {
       "bodies": [
          "MFTRailCornerBracket"
       ],
       "material": "PETG prototype"
    }
    

Build information

Build scope
main
Build variant
mft-rail-corner-bracket
Physical owner
mft-rail-corner-bracket
Built source
1f2fdb32d67d9af42779500c949f2900ee59c7ae
Forge
v0.23.0 ·
SolidCraft
0.49.0
Runtime
ghcr.io/brainboxemb/cad-solidcraft:v0.3.6