1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-22 14:23:23 +02:00

add comments

This commit is contained in:
Justin Lin
2019-06-09 10:48:45 +08:00
parent 8f8e1f717a
commit 576470477a
8 changed files with 79 additions and 1 deletions

View File

@@ -1,3 +1,13 @@
/**
* bend_extrude.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-bend_extrude.html
*
**/
module bend_extrude(size, thickness, angle, frags = 24) {
x = size[0];
y = size[1];

View File

@@ -1,3 +1,13 @@
/**
* in_polyline.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-in_polyline.html
*
**/
include <__private__/__to3d.scad>;
include <__private__/__in_line.scad>;

View File

@@ -1,4 +1,13 @@
include <__private__/__to3d.scad>;
/**
* in_shape.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-in_shape.html
*
**/
include <__private__/__lines_from.scad>;
include <__private__/__in_line.scad>;

View File

@@ -1,3 +1,13 @@
/**
* midpt_smooth.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-midpt_smooth.html
*
**/
function _midpt_smooth_sub(points, iend, i, closed = false) =
i == iend ? (
closed ? [(points[i] + points[0]) / 2]

View File

@@ -1,3 +1,12 @@
/**
* triangulate.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-triangulate.html
*
**/
function _triangulate_in_triangle(p0, p1, p2, p) =
let(

View File

@@ -1,3 +1,13 @@
/**
* trim_shape.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-trim_shape.html
*
**/
include <__private__/__to3d.scad>;
include <__private__/__line_intersection.scad>;
include <__private__/__in_line.scad>;

View File

@@ -1,3 +1,13 @@
/**
* voronoi2d.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-voronoi2d.html
*
**/
module voronoi2d(points, spacing = 1, r = 0, delta = 0, chamfer = false, region_type = "square") {
xs = [for(p = points) p[0]];
ys = [for(p = points) abs(p[1])];

View File

@@ -1,3 +1,13 @@
/**
* voronoi3d.scad
*
* @copyright Justin Lin, 2019
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib-voronoi3d.html
*
**/
include <__private__/__angy_angz.scad>;
// slow but workable