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

use m_transpose

This commit is contained in:
Justin Lin
2022-03-30 21:29:40 +08:00
parent a65a8e60cb
commit 0af33f4008
4 changed files with 10 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
use <ellipse_extrude.scad>;
use <curve.scad>;
use <sweep.scad>;
use <rails2sections.scad>;
use <matrix/m_transpose.scad>;
use <shape_trapezium.scad>;
use <ptf/ptf_rotate.scad>;
@@ -52,7 +52,7 @@ module dragon_head() {
translate([0, 0, -2])
rotate([90, 0, -90])
sweep(rails2sections([path1, path2, path3, path4, path5]));
sweep(m_transpose([path1, path2, path3, path4, path5]));
translate([0, 0, -3.25])
rotate([90, 0, -90])

View File

@@ -1,7 +1,7 @@
use <polyline_join.scad>;
use <bezier_curve.scad>;
use <ptf/ptf_rotate.scad>;
use <rails2sections.scad>;
use <matrix/m_transpose.scad>;
use <experimental/hollow_out_sweep.scad>;
use <experimental/tri_bisectors.scad>;
@@ -27,7 +27,7 @@ module hollow_out_vase(ctrl_pts, t_step, line_diameter, fn, line_style) {
fpt = ctrl_pts[len(ctrl_pts) - 1];
a_step = 360 / fn;
sects = rails2sections([
sects = m_transpose([
for(a = [0:a_step:360 - a_step])
[for(p = bezier) ptf_rotate(p, [0, 0, a])]
]);

View File

@@ -4,7 +4,7 @@ use <polyhedra/icosahedron.scad>;
use <shear.scad>;
use <polyline_join.scad>;
use <bezier_curve.scad>;
use <rails2sections.scad>;
use <matrix/m_transpose.scad>;
use <sweep.scad>;
use <experimental/worley_sphere.scad>;
use <curve.scad>;
@@ -164,7 +164,7 @@ module owl(detail, head_angles) {
points4, points3, points2, points
];
sections = rails2sections(rails);
sections = m_transpose(rails);
sweep(sections);
}

View File

@@ -18,3 +18,6 @@ new:
- util/count
- lemniscate_curve?
- perlin_sphere?
deprecated:
rails2sections: use m_transpose