Giter Site home page Giter Site logo

tobsef / lueck-spare-part-3d-model Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 482 KB

🦾 Spare part 3D model for a the Steck LÜCK kids game

Home Page: https://tobsef.github.io/lueck-spare-part-3d-model/

License: MIT License

Python 100.00%
cad-model cadquery python spare-parts 3dprinting

lueck-spare-part-3d-model's Introduction

Steck LÜCK spare brick

Spare part 3D model for a German kids board game Steck LÜCK

preview

The 3D model was made with Cad-Query a Python library for building parametric 3D CAD models.
To edit the file you can use the CQ-editor.

🔎 3D Preview

💾 Downloads

✏ Code

💡 Unit of all dimensions is millimeter [mm]

import cadquery as cq

outerSide = 39 # Outer side length
innerSide = 26
wall = 2
height = 6.38
heightUnderShell = height - wall

# Small bulges for a better lock
nobbleRadius = 0.8
nobblePos = 4.8 # Distance from corner
nobbleCorrection = 0.15 # Higher values means smaller nobble height
sideNobbelA = (innerSide + 2 * wall) - nobbleCorrection
sideNobbelB = sideNobbelA - 2 * nobblePos
nobbeRadius = 0.4

sideShell = outerSide - 2 * wall
onPlate = (True, True, False)

nobbels = (cq.Workplane().rect(sideNobbelA, sideNobbelB, forConstruction=True)
           .vertices().circle(nobbeRadius).clean()
           .extrude(heightUnderShell))
nobbels = nobbels.union(nobbels.rotateAboutCenter(axisEndPoint=(0, 0, 1), angleDegrees = 90))

brick = (cq.Workplane()
         .box(sideShell, sideShell, heightUnderShell, centered=onPlate)
         .faces("+Z").shell(wall)
         .union(
    cq.Workplane()
    .box(innerSide, innerSide, heightUnderShell, centered=onPlate)
    .faces("+Z").shell(wall)
).union(nobbels)
         .cut(
    cq.Workplane()
    .box(innerSide, innerSide, heightUnderShell))
         .edges("<Z").fillet(0.8))

show_object(brick, options={"color": (64, 164, 223)}, name='luek game brick')

lueck-spare-part-3d-model's People

Contributors

tobsef avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.