sdf
BOSL2
sdf | BOSL2 | |
---|---|---|
18 | 36 | |
1,485 | 775 | |
- | 3.4% | |
0.0 | 9.6 | |
3 months ago | about 15 hours ago | |
Python | OpenSCAD | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sdf
- Sdf – Generate 3D meshes based on SDFs
-
FreeCAD User Book (2019)
I used to like OpenSCAD for its simple approach but then I discovered SDF-based modelling with Python made possible with this neat library: [1]. This is perfect if you are a programmer that doesn't know anything about CAD-Software.
1.: https://github.com/fogleman/sdf
-
CAD Sketcher, free and open-source project bringing CAD like tools to Blender3d
>these the the central core that understands BREP and implements the geometric operations.
I've seen people quote a good modern CAD kernal as a 100 man year project. It's probably not going to happen, maybe there's some avenue for government funding?
Alternatively Signed-Distance-Functions are pretty nice. They're not BREP, but they're a lot easier to implement, and it might be possible to shove them into a BREP-shaped hole.
Here's a signed-distance-function based CAD kernal written in a few thousand lines of python+numpy, that seems to be about as fast as openscad. Maybe faster. https://github.com/fogleman/sdf
-
Signed distance functions in 46 lines of Python
Excellent. You might be interested in a Python library that I wrote for generating 3D meshes (STL files) from SDFs : https://github.com/fogleman/sdf
It just uses marching cubes for triangulation but the SDFs are all numpy'd and the SDF is evaluated in batches on multiple threads so it's relatively fast.
-
Plot of triangle mesh with py5
I used the SDF repo by Michael Fogleman. Check out his website, there's a ton of useful stuff on there. He contributes a lot to the open source community and has been mentioned in r/PlotterArt before.
-
10 ways to get the best out of OpenSCAD
Try out fogleman/sdf[1]. It is like OpenSCAD in many ways but the distance field model gives you offsets and fillets more easily.
[1] https://github.com/fogleman/sdf
-
Is it possible to 3d print signed distance functions?
https://github.com/fogleman/sdf this python project can create mesh from sdf
- Curated Code CAD
-
Guerrilla guide to CNC machining, mold making, and resin casting (2015)
> https://github.com/fogleman/sdf
Holy crap, why have I not seen this before?!?!!? I was even planning to start coding something like this myself. This is awesome!
- I am planning on creating a programming language for my Informatics Bachelor Thesis. What are your ideas for such a project?
BOSL2
- The Belfry OpenScad Library
-
My first project with the BOSL2 library
The BOSL2 equivalent is https://github.com/BelfrySCAD/BOSL2/wiki/CheatSheet
- Polygon paths using logo like commands?
- Bend Lines (machining reference) - DXF.
- Is there a more efficient way to make rounded cubes and cylinders?
-
New Bypass Valve for My Old Water Softener.
I used the BOSL2 library for the threads. Much easier that way!
-
Squeeze Tube Organizer in one (long) line of OpenSCAD
https://www.thingiverse.com/thing:5905001 - Thanks to BOSL2, once I've defined a few constant, the entire source code is one (long) line:
-
How to control decimal precision/places on text( str=($number) )
I was heading down this path, but stumbled across this library that has a TON of really great functions: BOSL2. Lot's of useful stuff here and not just strings and math. I used format_fixed() to solve my problem. It doesn't seem to accept math functions in the call, but that is easily solved with an intermediate variable.
-
Help modeling fire fighter helmet.
It won't be easy, but try using this: https://github.com/revarbat/BOSL2/wiki/beziers.scad
-
How to slightly bend object?
BOSL2 has a function for bending a polyhedron around a given radius but it's one of those functions that are super powerful but not very clear about how to use effectively (maybe that's just me).
What are some alternatives?
meshlab - The open source mesh processing system
BOSL - The Belfry OpenScad Library - A library of tools, shapes, and helpers to make OpenScad easier to use.
trimesh - Python library for loading and using triangular meshes.
Round-Anything - A set of OpenSCAD utilities for adding radii and fillets, that embodies a robust approach to developing OpenSCAD parts.
sdfx - A simple CAD package using signed distance functions
dotSCAD - Reduce the burden of mathematics when playing OpenSCAD
meshio - :spider_web: input/output for many mesh formats
threads-scad - OpenSCAD threading library
vedo - A python module for scientific analysis of 3D data based on VTK and Numpy
SolidPython - A python frontend for solid modelling that compiles to OpenSCAD
opencascade-emscripten-port - Open CASCADE - Emscripten / Webassembly port
cadquery - A python parametric CAD scripting framework based on OCCT