1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00
Files
dotSCAD/src/paths2sections.scad
Justin Lin 9577f68d13 deprecated
2021-11-22 09:32:36 +08:00

23 lines
574 B
OpenSCAD

/**
* paths2sections.scad
*
* @copyright Justin Lin, 2017
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-paths2sections.html
*
**/
function paths2sections(paths) =
let(
_ = echo("`paths2sections` is deprecated since 3.2. Use `rails2sections` instead."),
leng_path = len(paths[0]),
leng_paths = len(paths)
)
[
for(i = 0; i < leng_path; i = i + 1)
[
for(j = 0; j < leng_paths; j = j + 1)
paths[j][i]
]
];