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

add comment

This commit is contained in:
Justin Lin
2020-03-30 09:30:46 +08:00
parent 6361fe889d
commit d53b573be5

View File

@@ -1,12 +1,15 @@
/**
* ptf_torus.scad
*
* @copyright Justin Lin, 2020
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-ptf_torus.html
*
**/
use <ptf/ptf_rotate.scad>; use <ptf/ptf_rotate.scad>;
/*
size: The size of a rectangle.
point: A point in the rectangle.
radius: torus [R, r]
angle: torus [A, a].
twist: The number of degrees of through which the rectangle is twisted.
*/
function ptf_torus(size, point, radius, angle = [360, 360], twist = 0) = function ptf_torus(size, point, radius, angle = [360, 360], twist = 0) =
let( let(
xlen = size[0], xlen = size[0],