supermerill / freepyscad Goto Github PK
View Code? Open in Web Editor NEWLike openscad but in python inside freecad
License: GNU General Public License v3.0
Like openscad but in python inside freecad
License: GNU General Public License v3.0
Kudos on this, amazing what you did in about 2000 lines of code!
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
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)
])
The convex hull operation from OpenSCAD is extremely useful for quickly drawing up simple (and not-so-simple) mounting-plates and whatnot. Examples at https://hackaday.com/2018/02/13/openscad-tieing-it-together-with-hull/.
can't y, and y=z
move(x=10,y=10)(rotate_extrude()(polygon([[0,0],[ray2,0],[ray,2.2],[0,2.2]])))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.