<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- generator="FeedCreator 1.7.2-ppt (info@mypapit.net)" -->
<rss version="2.0">
    <channel>
        <title>Thingiverse - Things Tagged With 'bezier'</title>
        <description><![CDATA[Cool things we think you'll like from Thingiverse.com]]></description>
        <link>http://www.thingiverse.com/tag:bezier</link>
        <lastBuildDate>Sun, 19 May 2013 01:28:54 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt (info@mypapit.net)</generator>
        <language>en-us</language>
        <copyright>Copyright 2013, Thingiverse.com</copyright>
        <item>
            <title>Bezier Library for OpenScad</title>
            <link>http://www.thingiverse.com/thing:86713</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:86713"><img src="http://thingiverse-production.s3.amazonaws.com/renders/a9/6f/b4/7e/1d/5_9_13_9_01_PM-3_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>See <a href="http://github.com/uplake/BezierScad" target="_blank" rel="nofollow">github.com/uplake/BezierScad</a>   <br />
<br />
Updated 5/10/13--fixed triangle winding in centered BezWall; use polyhedron for variable-height BezArc.  <br />
<br />
I wanted a bezier library that could handle an arbitrary number of control points. When working on <a href="http://thingiverse.com/thing:77586" target="_blank" rel="nofollow">thingiverse.com/thing:77586</a>, I also wanted to rotate extrude a "wall" defined by a bezier path and a width.   <br />
<br />
BezWall is the workhorse function. The "ctlPts" parameter accepts between 1-8 bezier control points.   <br />
<br />
The parameters "width" and "height" accept static values (e.g., 5) specifying the width and height of the wall. If height is 0, it will generate a 2d object you can extrude yourself.   <br />
<br />
The alternate parameters "widthCtls" and "heightCtls" accept an array of values that will be bezier-interpolated along the length of the wall.   <br />
<br />
If the "centered" parameter is "true", the wall is centered on the path defined by "ctlPts". Otherwise, one edge of the wall is defined by "ctlPts".   <br />
<br />
At the moment, there is no documentation! But there is a test file that runs through most of the available features.
</div>]]></description>
            <author>ckirby</author>
            <pubDate>Fri, 10 May 2013 04:29:11 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:86713</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/45/36/f0/05/a9/BezierTest.stl" length="177247" type="application/sla"/>
        </item>
        <item>
            <title>Set of 6 French Curves</title>
            <link>http://www.thingiverse.com/thing:79244</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:79244"><img src="http://thingiverse-production.s3.amazonaws.com/renders/5f/23/3f/38/b5/frenchcurves_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>If you draw or are into drafting, then you know the value of having a set of French Curves!  <br />
<br />
These print at 3mm thick.  <br />
<br />
***UPDATED*** Added a zipped folder of .DWG files so you can laser cut these.
</div>]]></description>
            <author>christinachun</author>
            <pubDate>Wed, 24 Apr 2013 09:15:08 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:79244</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/ab/95/fc/b8/c0/FrenchCurve5.STL" length="640884" type="application/sla"/>
        </item>
        <item>
            <title>TuDelft 3D Logo (keychain+bottleopener)</title>
            <link>http://www.thingiverse.com/thing:30770</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:30770"><img src="http://thingiverse-production.s3.amazonaws.com/renders/ad/87/35/94/5e/IMG_20120919_182210_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>This is perfect for your keychain, if you simply love your university! (Can be used as a bottleopener, too!)<br />
<br />
Made by a student of Aerospaceengineering.
</div>]]></description>
            <author>MaximFilms</author>
            <pubDate>Wed, 19 Sep 2012 12:35:57 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:30770</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/7c/f4/1b/48/2b/Tu_Delft_Logo2.stl" length="320084" type="application/sla"/>
        </item>
        <item>
            <title>Princess Heart Crown</title>
            <link>http://www.thingiverse.com/thing:9803</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9803"><img src="http://thingiverse-production.s3.amazonaws.com/renders/10/aa/b1/7d/6e/5894384440_7443fabe73_o_preview_large.jpg" alt="Heart Crown" class="render" style="width: 240px; height: 180px" /></a><br/>Heart Crown</div><div>For those of us with a Princess in our lives, and the need to be forgiven for the state of the living-room-slash-mad-scientist-laboratory and the ABS fumes... the ability to print a crown made of hearts can go a long way to securing continued forbearance. ;-)<br />
<br />
Thank you MakeALot for the original of which this is just a quick hack.
</div>]]></description>
            <author>syvwlch</author>
            <pubDate>Sat, 02 Jul 2011 11:23:23 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9803</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/8b/18/bf/43/5c/HeartCrown.scad" length="1780" type="application/octet-stream"/>
        </item>
        <item>
            <title>OpenScad Revoloids version 0.8</title>
            <link>http://www.thingiverse.com/thing:9779</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9779"><img src="http://thingiverse-production.s3.amazonaws.com/renders/81/92/07/22/20/revoloid_shell_partial_bezier_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Not being able to leave well enough alone, I found that I needed to have partial surfaces of revolution.<br />
<br />
This thing adds the ability to specify starting and ending angles for the revolution (defaults to 0 to 360).<br />
<br />
That's kind of nice because for the simple cases where you are not intersecting with something at odd angles, you can simply generate the exact surface that you need, and call it a day.<br />
<br />
Included in this revision is an experiment to see if the built-in 'rotate_extrude' could do a better job of things.  Although it does play nicely with the CSG operations while viewing, it does not generate 2-manifold structures (and thus, no .stl files).  I'm thinking maybe I need to overlap surfaces or something, rather than calculating exact vertices.<br />
<br />
At any rate, I thought of adding rotation about an arbitrary line, as a final step, but really, that's easily achieved in OpenScad, so this might be the end of the line for these routines.<br />
<br />
Isn't it amazing what can be done with OpenScad!!<br />
<br />
Blog Entry: <a href="http://williamaadams.wordpress.com/2011/07/01/revolutionary-surfaces-with-openscad/" target="_blank" rel="nofollow">williamaadams.wordpress.com/2011/07/01/revolutionary-surfaces-with-openscad/</a>
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Fri, 01 Jul 2011 08:43:55 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9779</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/1f/a6/bb/ae/b1/revolid_shell_partial_bezier.stl" length="274252" type="application/sla"/>
        </item>
        <item>
            <title>OpenScad Revoloids version 0.7</title>
            <link>http://www.thingiverse.com/thing:9623</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9623"><img src="http://thingiverse-production.s3.amazonaws.com/renders/66/f9/f2/54/97/revoloid_shell_bezier_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Inching closer to perfection.<br />
<br />
This thing is an update to the revoloids library.<br />
<br />
This time around, I've gotten the normals calculated correctly, so that a 'shell_extrude' can be performed.  So, now there are two methods in the revoloids.scad file: linear_extrude_revoloid, shell_extrude_revoloid<br />
<br />
The first one will 'intrude' towards the center of rotation.  that's a nice valid way of doing things, but the ends must be relatively flat or things will get messed up.<br />
<br />
The shell_extrude, which is new here, will 'do the needful' and extrude inward, or outward, based on the normals at the points on the curves (circule, and cubic curve).  That's useful in some cases, and you'll get a uniform thickness across the piece.<br />
<br />
There's some nice 'visual debug' support, so you can see fancy colors, wireframes, normals, and the like (exhibited in the attached pictures).  And yes, it does in fact generate valid .stl files (exhibited in the attached .stl files).<br />
<br />
What more can be done with this?  Well, I took the opportunity to remove the implementation of the bezier surface of revolution, because it is now redundant.  I would like to do piecewise curves with C0/C1 continuity.  It's just a matter of stitching them together.  That will allow for more complex shapes.  Other than that, not much other than some more simplifications, and rotation around an arbitrary axis.  But, perhaps that can wait for a 2.0 version.<br />
<br />
Still need to work on convenient end caps<br />
<br />
Ultimately I'll merge this into the Renderer.scad file<br />
<br />
BEWARE:<br />
Your ends should NOT be totally vertical <br />
Hermite curves still don't come out quite correctly<br />
<br />
UPDATE: 270611<br />
I figured out my Hermite problem.  The actual problem relates to the cheap way in which I am still calculating the normal to the circle.  You absolutely MUST create your curve in the x-y plane.  It will be interesting at some point to add the ability to do it more free form, but for now, it's best if your curve is planar in the x-y<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Sat, 25 Jun 2011 17:53:41 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9623</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/9d/76/12/89/6a/revolid_shell_bezier.stl" length="404135" type="application/sla"/>
        </item>
        <item>
            <title>OpenScad Revoloids version 0.6</title>
            <link>http://www.thingiverse.com/thing:9564</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9564"><img src="http://thingiverse-production.s3.amazonaws.com/renders/1c/13/be/50/02/revolids_thimble_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Well, revoloids (slight change in name) are really nifty cool, easy to generate surfaces in a mathematical sense, but for them to be relevant to 3D printing, they need some volume.<br />
<br />
This thing adds the ability to specify a thickness on your revoloid so that you can actually export as a .stl and print it.<br />
<br />
I whimped out (and thus still not 1.0) and just used the normal of the circle to calculate the second quad.  The actual normal is a cross between the tangent of the circle, and the tangent of the curve at that point.  Next version.<br />
<br />
I also want to come up with a nice scheme for printing flats for 'bottoms' and 'tops'.
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Thu, 23 Jun 2011 12:40:46 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9564</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/d8/71/b0/6f/e1/revolids.scad" length="9301" type="application/octet-stream"/>
        </item>
        <item>
            <title>OpenScad Revolids version 0.5</title>
            <link>http://www.thingiverse.com/thing:9469</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9469"><img src="http://thingiverse-production.s3.amazonaws.com/renders/6f/5c/8a/7b/48/revolids_surf1_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>There are lots of interesting cubic curves in the world.  They're interesting because with just 4 points, you can describe very interesting shapes.  These curves make for nice revolutionary solids, but with OpenScad, it's kind of a challenge.<br />
<br />
This thing generalizes the surface of revolution based on a cubic curve.<br />
<br />
How simple is it?<br />
<br />
The following will generate that bell shaped picture based on a Catmull-Rom cubic curve.<br />
<br />
surface_rotationx_cubic(anglesteps = 36, stacksteps = 12,<br />
	umult = 0.5, A = cubic_catmullrom_M(), <br />
	cps = [[0, 1, 0],[2,3,0], [4,1,0],[5,2,0]]);<br />
<br />
And this one will do the same for a standard Bezier curve based on the same control points<br />
<br />
surface_rotationx_cubic(anglesteps = 24, stacksteps = 12,<br />
	umult = 1, A = cubic_bezier_M(), <br />
	cps = [[0, 1, 0],[2,3,0], [4,1,0],[5,2,0]]);<br />
<br />
And the same can be done for a Hermite, or any other 'cubic' curve you can think of.  The two key components are the blending function 'A', which is a 4x4 matrix, and the control points 'cps', which are simply the geometry of your control points.<br />
<br />
The routine, found in the revolids.scad file, will take care of all the dirty work.<br />
<br />
I marked this as version '0.5' because although it will show pretty pictures, right now it's not doing the surface normal calculations, or anything else really necessary to make solids, so a couple more iterations.  But, it's fun to play with.<br />
<br />
I've really been wracking my brain on the lack of function pointers in OpenScad, but this essentially provides the same capability, utilizing the matrices, which are the essence of these things anyway.<br />
<br />
At any rate, something to play with.<br />
<br />
UPDATE: 220611<br />
Added a picture of a Hermite revolid with debugging normals (showing the circular normals to be incorrect).
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Mon, 20 Jun 2011 09:53:33 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9469</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/96/c0/25/c8/c3/revolids.scad" length="8528" type="application/octet-stream"/>
        </item>
        <item>
            <title>OpenScad Revolids</title>
            <link>http://www.thingiverse.com/thing:9323</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9323"><img src="http://thingiverse-production.s3.amazonaws.com/renders/01/8e/a7/73/41/onionhat2_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>I've wanted to see how much can be done with OpenScad to generate more basic solids.  Now that I've gotten my 100th design out of the way, here's more OpenScad mayhem.<br />
<br />
This thing is a little library of 'Solids of Revolution' (revolids).<br />
<br />
It's simple stuff that you can easily do with OpenScad (torus, ellipsoid, bezier curves rotated.  In this case, I'm doing my own math though, and utilizing the Renderer that I did for the Bezier surface stuff.<br />
<br />
This library allows me to play with different methods of rendering different shapes, to see what I can make 2-manifold, what will still work as a CSG form when combined with other primitives, and whatnot.  These closed polyhedra will work standalone, but to combine them with other things in a CSG way would require some more work.<br />
<br />
One goal I have is to get more solids integrated into a tool like RapCAD.  And ultimately, I'd like to get a machine to be able to read .scad files directly, rather than slicing .stl files.  But that's another story, these are just raw bits.<br />
<br />
At any rate, if you're at all curious about how these various forms are put together from scratch, here's a library for you.<br />
<br />
UPDATE: The blog posting to go with it<br />
<a href="http://williamaadams.wordpress.com/2011/06/11/reconsidering-openscad-extensions/" target="_blank" rel="nofollow">williamaadams.wordpress.com/2011/06/11/reconsidering-openscad-extensions/</a><br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Tue, 14 Jun 2011 10:41:46 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9323</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/c2/ca/42/66/78/maths.scad" length="11464" type="application/octet-stream"/>
        </item>
        <item>
            <title>Cobra Chair</title>
            <link>http://www.thingiverse.com/thing:9011</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:9011"><img src="http://thingiverse-production.s3.amazonaws.com/renders/60/8d/f4/b0/4f/PatronChair_01_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>I saw the original Patron one piece chair, and I thought 'that would be a perfect thing to try and model with a Bezier surface'.<br />
<br />
This thing is an attempt to model the patron chair it derives from using the Bezier surface library.<br />
<br />
It's just fun to play with.  You can fiddle about with the vertices of the curves, and see how the curve reacts.  It would probably be much easier to model with a different type of curve, but here it is.<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Fri, 03 Jun 2011 12:25:58 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:9011</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/91/6c/4b/c0/aa/cobrachair.stl" length="145176" type="application/sla"/>
        </item>
        <item>
            <title>OpenScad Surface Solids 1.1</title>
            <link>http://www.thingiverse.com/thing:8983</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8983"><img src="http://thingiverse-production.s3.amazonaws.com/renders/bb/ad/55/21/af/Bezier_Surface_v10_5_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>The previous incarnations of the library have been good for laying down generic Bezier surfaces, but it was very picky when it came to actually turning them into .stl files that are printable.<br />
<br />
This thing will more readily turn your surfaces into .stl files.  It makes a modification to the Renderer.scad file.  Specifically, the DisplayQuadShards() routine.  It now takes an array which tells it which of the 'edge' faces to generate.<br />
<br />
Thus, instead of generating all the triangles as polyhedra, it will actually generate a full 'shell'.  The 'top' is complete, and the 'bottom' is complete, but only the outside edges of the entire surface are complete.  So, there are no interior walls, which end up causing problems for the shape being 2-manifold.<br />
<br />
What this means is there is essentially one giant solid to process rather than a whole bunch of little ones.  This makes CGAL much happier, and pieces that would not be printable before are now printable, as evidenced by the included .stl files here.<br />
<br />
A couple more 'debugging' improvements.  You can now specify your own opacity when you utilize the shell_extrude_bezier() module.  You can also specify whether you want to see the curve frame, instead of looking at the actual polyhedron rendering.  This is useful so you can just look at the true surface, without the walls getting in the way.<br />
<br />
The picture is an optical illusion.  I'm using an opacity of 0.75 to see the interior.  Those internal 'walls' aren't actually there.<br />
<br />
There are still issues with compound objects.  That fancy shoe for instance: <a href="http://www.thingiverse.com/thing:8937" target="_blank" rel="nofollow">thingiverse.com/thing:8937</a><br />
<br />
This renderer is now capable of dealing with the individual parts, but if you try to put them all together as a single object, it will not be able to generate a .stl.  This is progress as you could glue the individual parts together at least.<br />
<br />
At any rate, one more step along the path...<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Thu, 02 Jun 2011 10:38:12 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8983</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/a6/54/e3/2a/cd/curve_section.stl" length="68963" type="application/sla"/>
        </item>
        <item>
            <title>OpenSCAD Conic Bezier Curve</title>
            <link>http://www.thingiverse.com/thing:8931</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8931"><img src="http://thingiverse-production.s3.amazonaws.com/renders/ca/e2/11/e5/1d/delme_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Conic Bézier Curve for OpenSCAD<br />
also known as Quadratic Bezier Curve<br />
also known as Bezier Curve with 3 control points <br />
also known as 'Conic Arcs' or 'Parabolic Segments'<br />
By Don B, 2011, released into the Public Domain<br />
<br />
<b>What's it for</b><br />
<br />
Bezier curves allow you to pick a small number of 'control points', then let the computer fill in a pretty curve between them. In this thing, 3 control points are used. <br />
 <br />
<b>Notes</b><br />
<br />
This is for 3-point bezier curves; there is another popular type, the 4-point 'Cubic', that this code doesn't do. <br />
<br />
This is inspired by William Adam's cubic bezier Thingiverse OpenSCAD code. His code now also handles Conics; I guess I will leave this thing here as a sort of 'super simple' 'for dummies' version.<br />
<br />
The first sample image shows a simple 3 control-point curved polygon, and a rod around which it can be rotated. The result of this rotation is shown in the big smooth object. <br />
<br />
The next sample image shows the code itself; the module is only about 10 lines long thanks to OpenSCAD's built-in vector math.<br />
<br />
<b>Please see also</b><br />
<br />
<a href="http://www.thingiverse.com/thing:8443" target="_blank" rel="nofollow">thingiverse.com/thing:8443</a> by William A Adams (Cubic Beziers)<br />
<a href="http://en.wikipedia.org/wiki/File:Bezier_2_big.gif" target="_blank" rel="nofollow">en.wikipedia.org/wiki/File:Bezier_2_big.gif</a> by Phil Tregoning<br />
<a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve" target="_blank" rel="nofollow">en.wikipedia.org/wiki/B%C3%A9zier_curve</a> by Wikipedia editors<br />
<a href="http://www.freetype.org/freetype2/docs/glyphs/glyphs-6.html" target="_blank" rel="nofollow">freetype.org/freetype2/docs/glyphs/glyphs-6.html</a> David Turner + Freetype team<br />
<br />
<b>Using the code</b><br />
<br />
1. download the .scad file, below<br />
2. copy/paste the BezConic module to your own code<br />
3. call it like this:<br />
<br />
p0=[15,0];<br />
p1=[1,14];<br />
p2=[7,30];<br />
linear_extrude() BezConic(p0,p1,p2,steps=20);<br />
<br />
<b>Fun Facts</b><br />
<br />
Bézier are named after Pierre Bézier, who used the work of Paul de Casteljau to make curves on car bodies. Casteljau worked at Citroen and Bezier worked at Renault. <br />
<br />
They are named 'conic' because 3-point Bezier's are basically parabolas. A parabola is basically the intersection of a cone with a plane (i.e. a conic section). Please see wikipedia for more info. <br />
<br />
Conic Arc Bézier Curves (3 control points) are used by TrueType fonts. <br />

</div>]]></description>
            <author>donb</author>
            <pubDate>Mon, 30 May 2011 12:03:22 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8931</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/ca/30/ea/d0/aa/bezconic.stl" length="1753909" type="application/sla"/>
        </item>
        <item>
            <title>OpenScad Surface Solids</title>
            <link>http://www.thingiverse.com/thing:8907</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8907"><img src="http://thingiverse-production.s3.amazonaws.com/renders/93/c5/75/9c/90/surfaceSolids_v1_1_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>The 1.0 version of the Bezier library included a simple linear extrusion of the bezier surface.  The things this derives from added a quick and easy 'shell extrusion', which took into account the normals on the quads to create true 'inner' and 'outer' quads.<br />
<br />
This thing makes a few improvements to both the normal calculations, and rearranges the libraries slightly to accomodate for future curved surface/solid things.<br />
<br />
As a bonus, the hermite.scad file is thrown in.  At the moment, it only has basic Hermite calculations.  It even has a surface thing.  So, if you want to play with that, here it is.<br />
<br />
Also, in terms of library function naming, I've switched to being more explicit and rational.<br />
<br />
linear_extrude_bezier - extrusion in the z-axis<br />
shell_extrude_bezier - extrusion along the normals<br />
<br />
So, for Hermite, it would be linear_extrude_hermite, shell_extrude_hermite<br />
<br />
One of the cool features is the ability to show the normals, per vertex.  This is extremely handy for debugging purposes.  This, combined with being able to show the control mesh, makes for some nice visualization.  I was actually able to spot a bug in my derivatives calculations by looking at which way a couple of normals were pointing.<br />
<br />
Also, I've combined the bezier functions into the maths.scad library, so there is just one fewer files to download.<br />
<br />
UPDATE: One more change I forgot to mention.  I introduced the terms 'berp' and 'berpm'.  Bezier Interpolation (berp - formerly PtOnBez).  Bezier Interpolation of Mesh (berpm).  I thought they would be fun names, and in line with the classic Linear Interpolation (lerp).<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Sun, 29 May 2011 11:18:46 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8907</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/9f/73/26/49/10/maths.scad" length="11464" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Boat</title>
            <link>http://www.thingiverse.com/thing:8799</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8799"><img src="http://thingiverse-rerender.s3.amazonaws.com/renders/a9/d3/a6/7f/34/bezier_boat_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>So, what are Bezier curves good for if you're not going to do much with them?<br />
<br />
This thing is a simple boat created out of Bezier surfaces.  I define a bow, and a midship section, and a stern, then just stitch a few of them together.  In the picture can be seen how the control mesh looks.<br />
<br />
This particular one shows how you have to print in a couple of halves and bring them together.  This is an artifact of the linear extrusion offered by the OpenScad bezier library.<br />
<br />
This model takes about 3 minutes to generate the .stl from the .scad.  Not too bad.
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Thu, 26 May 2011 00:12:15 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8799</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/09/20/08/ce/b6/demo_boat.scad" length="5287" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Mesh Surface V1.0</title>
            <link>http://www.thingiverse.com/thing:8786</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8786"><img src="http://thingiverse-production.s3.amazonaws.com/renders/d1/c6/e9/4b/40/Bezier_Surface_v10_1_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Well, I started out wanting to do some nicer fillets on my OpenScad designs, and suddenly, I have a full blown Bezier surface/solids library!<br />
<br />
This thing is the Version 1.0 for this stuff.  I think it's actually good enough to produce some nice looking objects. <br />
<br />
The technique used here is a linear extrusion of a bezier surface.  The surface itself is described by 16 control points in a mesh.  The machinery then takes care of rendering that to the thickness that you want.  <br />
<br />
The workhorse module can be found in the Renderer.scad file: DisplaySurfaceMesh()<br />
<br />
This will generate a surface, according to your mesh, and extruded to the thickness that you specify (default 1mm).  It is a solid, so it will play nicely with the other CSG functions in OpenScad.<br />
<br />
There are a few demo/test/samples provided in the .scad files, so it should be fairly easy to make up your own examples.<br />
<br />
I use colors in the examples because it makes for some pretty pictures.  They don't affect the rendering process at all.  If you don't like the color ramps, you can select your own.<br />
<br />
Although this version provides only one mechanism for doing solids from the Bezier surface mesh, it has all the fundamentals for you to do other forms as well.  you don't even have to use the Bezier functions for bezier surfaces, you can use them for anything where you'd like something to vary in a parametric sort of way in your designs.  The color ramps are another example of how the Bezier curves can be used.<br />
<br />
At any rate, there are other forms of curves, and more rendering methods to be pursued.  RapCAD is doing some interesting work, and hopefully Bezier shows up as a core feature of these various text based tools.<br />
<br />
But, until that day... enjoy!<br />
<br />
UPDATE: Blog entry to go with it:<br />
<a href="http://williamaadams.wordpress.com/2011/05/26/linear-extrusion-of-bezier-surfaces/" target="_blank" rel="nofollow">williamaadams.wordpress.com/2011/05/26/linear-extrusion-of-bezier-surfaces/</a><br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Wed, 25 May 2011 12:24:54 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8786</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/79/df/0b/9f/88/maths.scad" length="5342" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Mesh Surface V0.9</title>
            <link>http://www.thingiverse.com/thing:8764</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8764"><img src="http://thingiverse-production.s3.amazonaws.com/renders/3f/05/58/98/fc/thick_curve2_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>One step closer to the world.  The virtuous cycle of innovation is a very good thing.  I have received much support and ideas from syvwlch <a href="http://www.thingiverse.com/syvwlch" target="_blank" rel="nofollow">thingiverse.com/syvwlch</a>  I have been inspired by the printable clock, and his recent curvy work.  Doing free form solids in OpenScad has been a challenging endeavor.  There is some math involved, and a lot of head scratching.<br />
<br />
This thing is one step closer to providing Bezier surfaces that are actually printable.<br />
<br />
In the last iteration, I had the Bezier surface rendering, but it was a pure graphic construct, which was not printable.  Now that I've discovered fire (polyhedron), I have been able to get one step closer to making the thing actually solid.  In this particular case, you can now specify the thickness of your surface, and the routine will 'do the needful'.<br />
<br />
I haven't done any experimentation with polyhedra and CSG commands in OpenScad, so I don't know what happens when you cut out a cylinder from the thing, for example.  but, again, one step closer.<br />
<br />
The way this thing is done is to use the normals at each vertex, and project 'inward' in the opposite direction for the length of 'thickness' to get a new set of vertices.  This new set represents a triangle which is inward from the 'outer' surface.  From there, it's a matter of constructing a new surface, and the interjoining quads to seal the edges.<br />
<br />
The approach is right for a triangle in isolation, but as can be seen from the image, leaves a lot of gaps.  The final solution there is to actually calculate a new surface inward from the original control points, and calculate the appropriate points between the surfaces directly.  But, that will be the final step.<br />
<br />
Blah, blah, blah<br />
<br />
At any rate, solid Bezier surfaces are one step closer.<br />
<br />
UPDATE: Added a .stl file: bezier_surface_polyhedra1<br />
This file represents using the polyhedron technique to its fullest.  So, it shows that you can in fact generate manifold solids from closed polyhedra.<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Tue, 24 May 2011 10:20:40 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8764</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/b6/14/ae/79/a6/test_bezier.scad" length="5838" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Mesh Surface V0.8</title>
            <link>http://www.thingiverse.com/thing:8742</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8742"><img src="http://thingiverse-production.s3.amazonaws.com/renders/e4/82/58/0d/ae/BezSurface2_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>You know in those Japanese anime movies where the character gets question marks above their head, and their cheeks go red when they're embarrassed?  I had a smack your head moment as I realized that OpenScad has a polyhedron object!<br />
<br />
This thing is a very slight modification to the test_bezier.scad file.  It includes a DisplayBezSurface(mesh) routine which will actually draw the surface using polyhedron to place the triangle patches.<br />
<br />
That makes the final stage a whole lot easier.  Now, instead of trying to use the polygon, and project it into position, I can simply use the polyhedron, and construct an appropriately shaped polyhedron to get the patches at the desired thickness!<br />
<br />
So, once I do that, I'll go to version 0.9, and 1.0 will be when it's all nicely packaged up into a couple of clean library files.<br />
<br />
One more step, one more pretty picture.<br />
<br />
With this technique, now any parametric surface is possible, including b-spline and the like.
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Mon, 23 May 2011 16:29:39 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8742</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/5a/21/9c/92/c6/bezier.scad" length="2494" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Mesh Surface V0.7</title>
            <link>http://www.thingiverse.com/thing:8705</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8705"><img src="http://thingiverse-production.s3.amazonaws.com/renders/26/7e/ab/a4/ab/Bezier_Wireframe2_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>The best thing about development tools is they usually get better as you discover what's really useful to you.  In the last iteration of this stuff, a 'debugger' showed up, which allowed you to visualize the Bezier mesh.  That thing was a good step forward, but very rudimentary, still relying on 'granules' of a sort to do the drawing.<br />
<br />
This thing makes the drawing process a bazillion (officially measured scale) times faster.  I finally pulled enough graphics books off the shelf to figure out my vector rotation problem.  It's much easier if you think in terms of polar coordinates. (shy grin)<br />
<br />
At any rate, the primary changes are in the maths, bezier, and test_maths files, so those are uploaded here.  <br />
<br />
Now the drawing of wireframes comes from placing cylinders in the positions of lines.  The benefit here is that you can dial in both the radius, and the number of faces, to reduce the amount of drawing time. A bonus benefit is that if you make the lines thick enough, and use enough of them, you might actually be able to print a surface directly from the wireframe.<br />
<br />
On the other hand, what this also does is make things fast enough that you can actually rapidly visualize how your bezier is turning out.  You can see both the control points, and the wireframe of the map in short order, and easily rotate and move it around.  <br />
<br />
I tell you, this is pretty exciting even for me.<br />
<br />
With figuring out the math for the cylinder placement, I have a new lease on life, and have figured out the placement for the quad patches as well.  So, I'd say one more experimental session away from actually producing the surfaces.<br />
<br />
Final note.  If you want to play around with the line drawing, it's in the test_bezier.scad file.  It's the 'PlaceLine()' module.  There is also a nifty little thing called a segment parser.  It takes the endpoints for a line, and returns an 'array' which is essentially a data structure, containing, origin, rotations, length.  That's all you need for the line placer to do its thing.<br />
<br />
phew...
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Sun, 22 May 2011 11:07:24 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8705</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/fe/de/bd/52/8c/maths.scad" length="4830" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Mesh Surface V0.6</title>
            <link>http://www.thingiverse.com/thing:8687</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8687"><img src="http://thingiverse-production.s3.amazonaws.com/renders/a4/1a/4f/ff/41/Bezier_Wireframe_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>As the Bezier functions are essentially a development tool, I find myself in need of a 'debugger'.<br />
<br />
This 'thing' is an update of the Bezier library.  The primary additions are a couple of debugging aids.  Specifically, the ability to draw the control points as a wireframe, and the ability to do the same with the quad lines that make up the actual surface.<br />
<br />
I have also refactored the various files.  The maths.scad files contains some additional functions that were useful, including some more matrix routines (determinant).<br />
<br />
This release does not require the granules functions at all.  So, there is a new file "Renderer.scad", which is meant to encapsulate whatever rendering routines you're going to do.<br />
<br />
I've also started moving down a path whereby parameters to functions and modules are provided as arrays, rather than as individual parameters.  I'm doing this because OpenScad reads like a functional language.  As such, I assume that every function returns a meaningful value which can then be used directly by another function.  This makes tying things together very much simpler.<br />
<br />
And finally, in the bezier and maths and Renderer files, you will find things like being able to get a quad by simply calling a function and passing in the mesh control points, and your 'u' and 'v' values.<br />
<br />
I still have not solved the normals pointing in the wrong direction for all cases, nor the short leg syndrome on the triangles, but one step closer now.<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Sat, 21 May 2011 16:34:04 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8687</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/87/be/06/40/1d/test_bezier.scad" length="4028" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Mesh Surface V0.5</title>
            <link>http://www.thingiverse.com/thing:8643</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8643"><img src="http://thingiverse-production.s3.amazonaws.com/renders/3f/37/9e/5e/34/Bezier_Surface_v05_1_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>The ultimate in Bezier curviness in OpenScad is to have thickness of surface, without having to use a bazillion granules to render an object.<br />
<br />
This thing is some updating of the bezier functions to deal with the mesh better.  Specifically, you can hand the BezierMesh() module a set of 4 Bezier curves, and it will do the surface interpolation/tesselation, and generate a mesh of triangle patches that will represent the surface.<br />
<br />
I labelled this as version '0.5' because there are some pretty horrible bugs.  As can be seen in the first picture, those blue dots are the calculated surface normals for each of the quad faces.  There is a flaw in the rotation angle calculations such that there is a bias, which causes the normals to point off axis in the wrong direction depending on this and that.  On more interesting meshes, this will show up even worse.<br />
<br />
Also, there are still cracks between the 'rows' as I am not properly calculating the lengths of the sides to match up properly.  I know what needs to be done, but I was trying to get the normals right first.<br />
<br />
I'm releasing this now, even though it's not quite functional, because I want other people to take a look and possibly do the math better than I am.  It's all really straight forward actually.  Nothing too harry other than getting some trig right.  The rest is just multiplication and addition.  Easy optimizations abound, particularly in the BezierMesh() module.  The first, to speed up processing, would be to separate the Bezier coefficient calculations from the general 'pointoncurve' calculation.  That would be way efficient.<br />
<br />
There are some updated functions in the 'maths.scad' file, as well as the 'Render2D.scad' file.<br />
<br />
For the final, I'll separate out the "render" stuff for granules from the core drawing.  The ideal would be that you could drop in your own renderer, and get totally different behavior.  I think that's a fairly easy way to extend OpenScad.<br />
<br />
At any rate, just a step along the path...<br />
<br />
UPDATE: Here's a blog entry to go with it...<br />
<a href="http://williamaadams.wordpress.com/2011/05/19/mr-beziers-new-perspective/" target="_blank" rel="nofollow">williamaadams.wordpress.com/2011/05/19/mr-beziers-new-perspective/</a><br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Thu, 19 May 2011 09:21:57 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8643</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/85/f7/d4/b9/78/demo_bezmesh.scad" length="972" type="application/octet-stream"/>
        </item>
        <item>
            <title>Granule Bezier Mesh</title>
            <link>http://www.thingiverse.com/thing:8551</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8551"><img src="http://thingiverse-production.s3.amazonaws.com/renders/eb/df/2b/4d/33/DSC00696_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>There have been tons of graphics rendering programs developed over the years.  Likewise, there are tons of graphics books out there in the world showing you how to use those systems.  One such system is OpenGL.  As OpenGL is utilized for everything from game development to rendering of body tissue, there are plenty of examples, and models, demonstrating how to do very interesting things.<br />
<br />
This thing uses the current version of the Granule rendering system being developed in OpenScad, and renders one of the well known samples from OpenGL called "bezmesh".<br />
<br />
I found an article here: <a href="http://www.opengl.org/resources/code/samples/mjktips/grid/index.html" target="_blank" rel="nofollow">opengl.org/resources/code/samples/mjktips/grid/index.html</a> and used the bezier mesh control points, unchanged, to render this thing.<br />
<br />
The picture includes the entirety of the source code needed to render this thing, of course, not including the libraries files.  The key function is the bezierMeshSurface() module.  It takes 4 bezier control point curves, and does interpolation between them.<br />
<br />
For the math hearted, the function evaluates along the curves simultaniously (u=0:1), and at each step forms a new curves from the 4 evaluated points, and then renders that curve.<br />
<br />
Along the way, the bezier.scad library gained a couple more new modules to help render bezier curves using arrays, and honoring all three axis.<br />
<br />
The other picture, of the arch thing is just another set of control points calling the same Bezier Mesh function.  For creating that one, I was thinking of what kind of curves I would need to make something to fit within the web of my hand.  It's essentially a saddle.  Saddles are good for many things, including joints between bones.  So, this shows how easy they are to create with just a few curves.<br />
<br />
At the current iteration, the library relies on the granule renderer, which is about the slowest way in the world to do things.  Thus, it creates a bazillion vertices and polygons, which makes it fairly impractical for printing, although it can be done.<br />
<br />
The next version will use faces, and thus reduce the vertex and polygon count.  Then this tool will be practical.  But for now, you can see pretty pictures.<br />
<br />
UPDATE: Added a couple of pictures of a piece that I actually printed.  The .stl is included.  It is 3Mb!  I don't know how the Thingiverse renderer will handle that.  It's an interesting point to me.  Perhaps for things that are generated, the .scad file is a better transport mechanism than .stl.  Since OpenScad is available everywhere, it's just one step away from 'uncompressing' a design from the .scad to the .stl.<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Sun, 15 May 2011 11:16:18 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8551</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/40/8a/fc/9d/58/demo_bezmesh.scad" length="859" type="application/octet-stream"/>
        </item>
        <item>
            <title>Bezier Heart Bracelet in OpenScad</title>
            <link>http://www.thingiverse.com/thing:8521</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8521"><img src="http://thingiverse-production.s3.amazonaws.com/renders/db/61/a0/ee/cb/018_3_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Hearts placed around a plain bracelet
</div>]]></description>
            <author>MakeALot</author>
            <pubDate>Sat, 14 May 2011 11:12:13 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8521</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/76/ea/4b/f4/fc/heartBracelet.stl" length="1229086" type="application/sla"/>
        </item>
        <item>
            <title>Bezier Heart in OpenScad</title>
            <link>http://www.thingiverse.com/thing:8483</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8483"><img src="http://thingiverse-production.s3.amazonaws.com/renders/27/7d/b0/ce/d1/HeartColored_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>The question is, what good are Bezier curves?<br />
<br />
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.<br />
<br />
The Processing code came from here: <a href="http://www.local-guru.net/blog/2010/09/19/pulsating-heart-made-from-bezier-curves-in-processing" target="_blank" rel="nofollow">local-guru.net/blog/2010/09/19/pulsating-heart-made-from-bezier-curves-in-processing</a><br />
<br />
There are many heart things on Thingiverse as evidenced by this: <a href="http://www.thingiverse.com/tag:Heart" target="_blank" rel="nofollow">thingiverse.com/tag:Heart</a><br />
<br />
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.<br />
<br />
And, on top of that, it's a simple example of how you can use the Bezier function to construct something simple.
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Fri, 13 May 2011 00:21:27 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8483</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/fa/4b/dc/10/ac/demo_heart.scad" length="1115" type="application/octet-stream"/>
        </item>
        <item>
            <title>PolyBot Swooped Effector Base</title>
            <link>http://www.thingiverse.com/thing:8456</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8456"><img src="http://thingiverse-production.s3.amazonaws.com/renders/30/07/46/bc/e7/EffectorSwooped_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Now that I have a Bezier tool: <a href="http://www.thingiverse.com/thing:8454" target="_blank" rel="nofollow">thingiverse.com/thing:8454</a> Everything looks like it needs some swoopy smooth lines on it.<br />
<br />
This thing is an experimental variant of the effector tool base for the PolyBot.<br />
<br />
One of the things I was after was being able to print without too much warping.  The previous design has a lot of surface area in contact with the platform, so it tends to warp.<br />
<br />
I think this one might work out well enough, but it needs some mounting holes.  It is somewhat parametric.  You can choose how long the arms are, and the size of the axle mounts.  It is a bit hacky though.
</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Wed, 11 May 2011 21:11:10 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8456</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/bc/69/56/f2/08/effector_swooped.stl" length="457925" type="application/sla"/>
        </item>
        <item>
            <title>OpenScad Bezier Function with Ribbons</title>
            <link>http://www.thingiverse.com/thing:8454</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8454"><img src="http://thingiverse-production.s3.amazonaws.com/renders/f4/8f/14/65/c5/BellStrip_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>Perhaps it's bad form to create a derivative of your own thing when it's just a code update rather than an actual 'thing' but...<br />
<br />
This thing incorporates a couple more changes to the Bezier functions.  First, it adds a 3 element version of the PointOnBezCubic() function.  So, there's now 2D and 3D.  The 3D version can be used for x,y,z values, or for r,g,b values, as demonstrated in the pictures.<br />
<br />
Speaking of pictures, I've added an example of how to use color with the bezier curve to give your images that groovy ramped color goodness.  I expect to do very bad things with this.<br />
<br />
Some more factoring and commenting of the code should make it fairly easy to understand.<br />
<br />
But, all that goodness was added so that I could actually create BezierStrips!  Just think of it.  You give the function two sets of control points (4 points each), and it will generate an extruded strip that is 'in between' the two curves.  Curve1 is on 'top' and Curve2 is on 'bottom', but actually it doesn't matter what their orientation is.<br />
<br />
This is really great for creating things like handles for cups, or funky looking springy feet, or vert ramps for skateboard parks.<br />
<br />
Just more Bezier goodness.<br />
<br />
One of the pictures shows a bell shaped thing.  that's just a Bezier strip rotated around the z-axis an appropriate number of times.  Can be used to make very interesting other shapes no doubt.<br />
<br />
And who knew OpenScad was able to render things so nicely!<br />
<br />
UPDATE: If you're interested in more words on this design, you can take a look here: <a href="http://williamaadams.wordpress.com/2011/05/12/mr-bezier-goes-to-openscad/" target="_blank" rel="nofollow">williamaadams.wordpress.com/2011/05/12/mr-bezier-goes-to-openscad/</a><br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Wed, 11 May 2011 18:47:20 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8454</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/f3/41/3d/ae/c7/bezier.scad" length="5306" type="application/octet-stream"/>
        </item>
        <item>
            <title>Public Domain OpenScad Bezier Function</title>
            <link>http://www.thingiverse.com/thing:8443</link>
            <description><![CDATA[<div style="margin: 5px;"><a href="http://www.thingiverse.com/thing:8443"><img src="http://thingiverse-production.s3.amazonaws.com/renders/1d/64/5a/70/9f/FilletColored_preview_large.jpg" alt="" class="render" style="width: 240px; height: 180px" /></a><br/></div><div>After playing around with fillets on this thing: <a href="http://www.thingiverse.com/thing:8416" target="_blank" rel="nofollow">thingiverse.com/thing:8416</a>  I was determined to create a generalized Bezier function for usage in OpenScad.<br />
<br />
This thing, or rather the OpenScad file, is public domain code for creating Bezier curves within OpenScad.<br />
<br />
It is a foundational piece.  It will only create Bezier curves defined by 4 control points.  Those are typically the most useful in hand constructed graphics as found in OpenScad.<br />
<br />
Hopefully this little piece of goodness will enable people to create very curvacious things in OpenScad.  Extending the function to 3D can be easily done.<br />
<br />
UPDATE: Added a couple more pictures that show different ways of using the beast.  Perhaps the coolest is using a Bezier curve to change color over the surface of the object.<br />

</div>]]></description>
            <author>WilliamAAdams</author>
            <pubDate>Wed, 11 May 2011 11:18:50 +0100</pubDate>
            <guid>http://www.thingiverse.com/thing:8443</guid>
            <enclosure url="http://thingiverse-production.s3.amazonaws.com/assets/43/2c/a1/8b/9f/bezier.scad" length="2533" type="application/octet-stream"/>
        </item>
    </channel>
</rss>
