GithubHelp home page GithubHelp logo

aamks / staircaser Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 1.0 133 KB

Generator of a building's staircase

Python 100.00%
architecture cad 3d building automatic python staircase stairs stairsruns blender

staircaser's Introduction

staircaser

staircaser

Generator of the staircases based on the input cuboid. There are 8 possible staircases orientations to fit the cuboid. The result is a json file with these 8 sets which can be further used in any 3D software (blender, CAD, etc). The resulting json can be found in examples/result.json.

The input cuboid is described by these parameteres:

bottom      : the projection of the staircase onto XY plane
fheight     : floor height
floors      : number of floors
swidth      : single stair width (depth and height are automatic)

The resulting json for the above image is the result of this call:

Staircaser(bottom=[(0,0,0), (7,5,0)], fheight=3, floors=3, swidth=2)

Once the json is produced, blender can draw the geometries with the script examples/blender.py. You need to create a similar script for other 3D software. Basically you just iterate over json and draw each element using, say AutoCad commands.

staircaser's People

Contributors

mimooh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

blendercn-org

staircaser's Issues

License ?

Hello, under what license is this project released under ? Thank-you.

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.