From 90c05523ceff96f7e053b27e5bd3f1d3f0146fa9 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 2 Jul 2019 15:43:23 +0800 Subject: [PATCH] add comments --- src/pixel/px_circle.scad | 10 ++++++++++ src/pixel/px_cylinder.scad | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/pixel/px_circle.scad b/src/pixel/px_circle.scad index 0b47c423..45982054 100644 --- a/src/pixel/px_circle.scad +++ b/src/pixel/px_circle.scad @@ -1,3 +1,13 @@ +/** +* px_circle.scad +* +* @copyright Justin Lin, 2019 +* @license https://opensource.org/licenses/lgpl-3.0.html +* +* @see https://openhome.cc/eGossip/OpenSCAD/lib2-px_circle.html +* +**/ + function _px_circle_y(f, y) = f >= 0 ? y - 1 : y; function _px_circle_ddf_y(f, ddf_y) = f >= 0 ? ddf_y + 2 : ddf_y; function _px_circle_f(f, ddf_y) = f >= 0 ? f + ddf_y : f; diff --git a/src/pixel/px_cylinder.scad b/src/pixel/px_cylinder.scad index 43f6cff9..7f7309fd 100644 --- a/src/pixel/px_cylinder.scad +++ b/src/pixel/px_cylinder.scad @@ -1,3 +1,13 @@ +/** +* px_cylinder.scad +* +* @copyright Justin Lin, 2019 +* @license https://opensource.org/licenses/lgpl-3.0.html +* +* @see https://openhome.cc/eGossip/OpenSCAD/lib2-px_cylinder.html +* +**/ + function _px_cylinder_px_circle(radius, filled, thickness) = let(range = [-radius: radius - 1]) filled ? [