omdl
v0.6.1
OpenSCAD Mechanical Design Library
|
Shape alignment tools. More...
Files | |
file | tools_align.scad |
Shape alignment tools. | |
Functions | |
module | orient_ll (l=z_axis3d_ul, rl=z_axis3d_ul, r=0) |
Orient a line or vector to a reference line or vector. More... | |
module | align_ll (l=z_axis3d_ul, rl=z_axis3d_ul, ap=0, rp=0, r=0, to=origin3d, ro=zero3d) |
Align a line or vector to a reference line or vector. More... | |
module | align_l (rl=z_axis3d_ul, rp=0, r=0, to=origin3d, ro=zero3d, d=z_axis_ci) |
Align a shapes' x, y, or z Cartesian axis to reference line or vector. More... | |
Shape alignment tools.
module align_l | ( | rl | = z_axis3d_ul , |
rp | = 0 , |
||
r | = 0 , |
||
to | = origin3d , |
||
ro | = zero3d , |
||
d | = z_axis_ci |
||
) |
Align a shapes' x, y, or z Cartesian axis to reference line or vector.
rl | <line-3d|line-2d> The reference line or vector. |
rp | <integer> The reference-line alignment point (see table). |
r | <decimal> Roll about axis rl (in degrees). |
to | <vector-3d|vector-2d> Translation offset about rl . |
ro | <decimal-list-1:3|decimal> Rotation offset about rl (in degrees). |
d | <integer> The Cartesian axis index to align (0, 1, or 2). |
The origin will be a translated to the specified alignment point for the reference line rl
.
ap, rp | alignment point |
---|---|
0 | none (no translation) |
1 | initial |
2 | median |
3 | termination |
4 | initial + termination |
See Lines and vectors for argument specification and conventions.
Definition at line 170 of file tools_align.scad.
module align_ll | ( | l | = z_axis3d_ul , |
rl | = z_axis3d_ul , |
||
ap | = 0 , |
||
rp | = 0 , |
||
r | = 0 , |
||
to | = origin3d , |
||
ro | = zero3d |
||
) |
Align a line or vector to a reference line or vector.
l | <line-3d|line-2d> The line or vector to align. |
rl | <line-3d|line-2d> The reference line or vector. |
ap | <integer> The line alignment point (see table). |
rp | <integer> The reference-line alignment point (see table). |
r | <decimal> Roll about axis rl (in degrees). |
to | <vector-3d|vector-2d> Translation offset about rl . |
ro | <decimal-list-1:3|decimal> Rotation offset about rl (in degrees). |
The specified alignment point for the line l
will be a translated to the specified alignment point for the reference line rl
.
ap, rp | alignment point |
---|---|
0 | none (no translation) |
1 | initial |
2 | median |
3 | termination |
4 | initial + termination |
See Lines and vectors for argument specification and conventions.
Definition at line 102 of file tools_align.scad.
module orient_ll | ( | l | = z_axis3d_ul , |
rl | = z_axis3d_ul , |
||
r | = 0 |
||
) |
Orient a line or vector to a reference line or vector.
l | <line-3d|line-2d> The line or vector to align. |
rl | <line-3d|line-2d> The reference line or vector. |
r | <decimal> Roll about axis rl (in degrees). |
See Lines and vectors for argument specification and conventions.
Definition at line 58 of file tools_align.scad.