Bezier Heart in OpenScad
Description
This thing is constructed from Bezier curves. It is actually inspired from some Processing code. It demonstrates how easy it is to translate from some graphics system that has Bezier support, to using the new Bezier functions within OpenScad.
The Processing code came from here: local-guru.net/blog/2010/09/19/pulsating-heart-made-from-bezier-curves-in-processing
There are many heart things on Thingiverse as evidenced by this: thingiverse.com/tag:Heart
So, add one more to the list. Of course, this one is fully parametric, even in a math sense, so you can easily change the size, shape, height, whatever.
And, on top of that, it's a simple example of how you can use the Bezier function to construct something simple.
Instructions
2) Change some things to change the curves
3) Press 'F5'
4) Print them out if you like
5) Mashup up with other items if you like
6) Rejoice!
You must be logged in to post a comment.
This is really amazing stuff you are doing!
I thought I would mention that what you have here is very close to how I modeled http://www.thingiverse.com/thi... using high-end professional software. If you are able to make that line going through the center of the heart into a bezier curve on the XZ plane, and the line going across into
a bezier on the ZY plane, and join them with a 3 dimensional curve, things start to get really interesting!
I have no idea how challenging that is to code, but as I'm sure you know, it would enable you to create very unique geometry that goes way above and beyond working with primitives.
If there
is anyone here that seems willing and able, it is probably you. The stuff you have been contributing to OpenSCAD has literally been blowing my mind.
Thanks for the compliment. I actually looked at your heart as inspiration for what would be interesting to show people how easy it would be to use Bezier curves for modeling in OpenScad.
If I get you, what you're saying is, if we had Bezier Surfaces (even if they were limited), that would be very nifty.
Well, it just so happens that's exactly what I'm working on.
Basically, I'm viewing OpenScad as if it were a graphics card with some primitives. Then you just build up a 3D libr
ary from there, and it's all fairly well troden ground. Nost the most efficient thing in the world, and it would be better if OpenScad had the primitives directly, but perhaps this stuff will be inspiring enough to get them incoroporated over time.


I can't get the demo heart.scad file to work. I get the following messages in openscad:
WARNING: Ignoring Unknown module 'bezcubicfilletcolored'.
I'm sure I'm doing something wrong.
I am using openscad 2011.12.30
I noticed the demo uses bezier.scad, which I did not have, so I downoaded the public domain openscad bezier function by WilliamAAdams listed as the thing this was derived from and put that in my library. perhaps there is a different bezier.scad file I need?
I uploaded a bezier.scad that seems to work. OpenScad has changed since I first created this thing, so there is now an error related to linear_extrude. It seemed to render anyway. I don't know if it will actually print though.
Oh... that's a hard one. It looks like I didn't include the specific version of the bezier library with this particular thing, and the library moved along.
I haven't touched this in almost two years, but I'll try to find the appropriate version of the bezier library to go with it.