A tool was made to generate gears from aribtrary 3d periodic surfaces. It has so far been tuned for a specific column geometry, but could be made to work with arbitrary surfaces or even STL files. The idea is that a periodic structure could act as a rack and a custom pinion gear could be generated to roll along the surface.
There are two versions of the tool to play with. Neither of which are fully user-friendly at the moment. Do note, that there are substantial load times to generate the structures. I have not yet made use of webworkers, although I did spend some time looking into reducing the geometry passing during the constructive solid geometry boolean operations.
- Generate the gears, adjust resolutionm, roll the parts around
- Fit splines onto the surface of the custom gear profile, output curve data to be imported into SW or as an STL
Cell is used to carve away material.
Gear demonstrates rolling along surface.
Gear, column, slicing triangle, segment that is patterned.
Full view of geometry generated in three.js application.
Screen gui allows varying resolution of slices, ie number of steps to take with cutting geometry.
Note, the current involute profile the cutter follows is not quite accurate. This needs and can be tuned for more accurate representation.
A ray is cast up and down the y and z axes to generate points on the x-z plane. Face intersection is used to identify location of points. Some measures are used to reject the unwanted faces, this includes counting intersections and rejecting certain normals. Splines are then fit to the new points, and then uniform points are taken from the spline equations.
Higher resolution of steps gets more face intersections.
Larger step sizes acts as a crude low-pass filter. Also importing curves into SW was a manual process, so fewer Y-layers were easier to manage.
Points imported into SW as curves, and lofted.