Bezier Mesh Surface V0.6

Bezier Mesh Surface V0.6

Description

As the Bezier functions are essentially a development tool, I find myself in need of a 'debugger'. 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. I have also refactored the various files. The maths.scad files contains some additional functions that were useful, including some more matrix routines (determinant). 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. 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. 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. 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.

Statistics

Likes

23

Downloads

2137

Category

Other