Git Product home page Git Product logo

freepyscad's People

Contributors

luzpaz avatar supermerill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

freepyscad's Issues

Kudos

Kudos on this, amazing what you did in about 2000 lines of code!

How to Determin Width and Height of Text?

I am sure I am mising something Basic but say I make this command...

text("Hello world!",45, "arial.ttf")

how would I know its width and Height?
I would like to create a name bade for example so I need to know where to put the surrounding rectangle

Feature: Add slicing modifiers to the generated 3MF

I would like to be able to output slicer modifiers from my FreePySCAD scripts, this would make writing generators for custom calibration routines really simple.

For example, my typical extrusion multiplier routine could be something like this:

minimum_flow = 95
maximum_flow = 102
flow_step = 1

scene().redraw(*[
    union(
        name="flow_test_{}".format(flow),
        layer_height=0.2,
        first_layer_extrusion_width='140%',
        bottom_solid_layers=0,
        perimeters=2,
        top_solid_layers=8,
        fill_density=0.25,
        fill_pattern='Rectilinear',
        print_extrusion_multiplier='{}%'.format(flow),
    )(
        cube(20,20,2),
        cut()(
            cube(20,28,0.2),
            linear_extrude(0.2, 0, 0)(text(str(flow), 6)).move(1,1),
        ).move(0,-8,0),
    )
    for flow in range(minimum_flow, maximum_flow+flow_step, step=flow_step)
])

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.