GithubHelp home page GithubHelp logo

schoukah / flexifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lucandia/flexifier

0.0 0.0 0.0 116 KB

Web app interface to generate flexi 3D model from images.

Home Page: https://www.printables.com/it/model/505713-flexifier-make-it-flexi/files

License: GNU Affero General Public License v3.0

Python 100.00%

flexifier's Introduction

Flexifier: make it flexi

A simple interface to generate flexi 3D models from images for 3D printing Visit the original Printables page!

Try the web app:

Flexifier web app powered by streamlit

Streamlit App

Convert png to svg

To convert a png to a svg I suggest using 'vectorize bitmap' on Inkscape. On Linux, you can install the packages imagemagick and potrace, and use the terminal commands:

convert YOUR_FILE.png YOUR_FILE.pnm
potrace -s -o YOUR_FILE.svg YOUR_FILE.pnm
rm YOUR_FILE.pnm

Try the OpenScad module:

The generate a hinge in a model from your svg try:

difference(){
  linear_extrude(height = HEIGHT) // extrude the svg
    translate(v=[X_TRAN,Y_TRAN,0]) // translate the svg image
      rotate(a=[0,0,Z_DEG]) // rotate the svg image
        scale([X_SCALE,Y_SCALE,1]) // scale the X and Y axis of the svg
            import(file = "YOUR_PATH/YOUR_FILE.svg", center = true);

translate([X_TRAN_HINGE,Y_TRAN_HINGE,0])
rotate([0,0,ROTATE_HINGE])
diff_hinge(HEIGHT_HING, hinge_diam=HINGE_DIAMETER, hinge_h_thick=HINGE_THICKNESS, break=CUT_THICKNESS, break_len=CUT_LENGTH);
};

translate([X_TRAN_HINGE, Y_TRAN_HINGE,0])
rotate([0,0,ROTATE_HINGE])
uni_hinge(HEIGHT_HING, hinge_diam=HINGE_DIAMETER, hinge_h_thick=HINGE_THICKNESS, break=CUT_THICKNESS);

Replacing the capital variables with your values. The same approach can be used for the ball joint.

Donate

I enjoy working on this project in my free time, if you want to support me with a coffee just click here!

License

Code is licensed under the GNU General Public License v3.0 (GPL-3.0)

License: GPL-3.0

Models are licensed under the Creative Commons Non Commercial Share Alike License 4.0 (CC BY-NC-SA 4.0)

License: CC BY-NC-SA 4.0

flexifier's People

Contributors

lucandia 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.