mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-22 06:13:10 +02:00
add comments
This commit is contained in:
@@ -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) {
|
module bend_extrude(size, thickness, angle, frags = 24) {
|
||||||
x = size[0];
|
x = size[0];
|
||||||
y = size[1];
|
y = size[1];
|
||||||
|
@@ -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__/__to3d.scad>;
|
||||||
include <__private__/__in_line.scad>;
|
include <__private__/__in_line.scad>;
|
||||||
|
|
||||||
|
@@ -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__/__lines_from.scad>;
|
||||||
include <__private__/__in_line.scad>;
|
include <__private__/__in_line.scad>;
|
||||||
|
|
||||||
|
@@ -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) =
|
function _midpt_smooth_sub(points, iend, i, closed = false) =
|
||||||
i == iend ? (
|
i == iend ? (
|
||||||
closed ? [(points[i] + points[0]) / 2]
|
closed ? [(points[i] + points[0]) / 2]
|
||||||
|
@@ -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) =
|
function _triangulate_in_triangle(p0, p1, p2, p) =
|
||||||
let(
|
let(
|
||||||
|
@@ -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__/__to3d.scad>;
|
||||||
include <__private__/__line_intersection.scad>;
|
include <__private__/__line_intersection.scad>;
|
||||||
include <__private__/__in_line.scad>;
|
include <__private__/__in_line.scad>;
|
||||||
|
@@ -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") {
|
module voronoi2d(points, spacing = 1, r = 0, delta = 0, chamfer = false, region_type = "square") {
|
||||||
xs = [for(p = points) p[0]];
|
xs = [for(p = points) p[0]];
|
||||||
ys = [for(p = points) abs(p[1])];
|
ys = [for(p = points) abs(p[1])];
|
||||||
|
@@ -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>;
|
include <__private__/__angy_angz.scad>;
|
||||||
|
|
||||||
// slow but workable
|
// slow but workable
|
||||||
|
Reference in New Issue
Block a user