82 v2 = [4, 2, 1] * s/10;
91 [ [sh, [sf, 1]], sh, [sh, [1, sf]] ];
93 translate( [0, 0,
select_ci([0, -h1/2, -h1, v1/2-s], a,
false)] )
96 fn =
"Liberation Sans:style=Italic";
104 color(c?
"slategray":undef)
105 translate( [0, 0, -
eps*2] )
106 cone( h=s, r=s, vr=v1 );
109 color(c?
"gainsboro":undef)
126 color(c?
"slategray":undef)
127 translate([
third(ts) * 4/5, 0])
129 text(text="omdl", size=s, font=fn, halign="center", valign="center", direction=td);
eps
<decimal> Epsilon, small distance to deal with overlapping shapes.
function third(v)
Return the third element of an iterable value.
function select_ci(v, i, l=true)
Select specified element from list or return a default.
function is_defined(v)
Test if a value is defined.
function polygon_round_eve_all_p(c, vr=0, vrm=1, vfn, w=true, cw=true)
Compute coordinates that round all of the vertices between each adjacent edges in 2D.
function triangle_centroid(c, d=2)
Compute the centroid of a triangle.
function triangle2d_sss2ppp(v, a=x_axis_ci, cw=true)
Compute a set of vertex coordinates for a triangle given its side lengths in 2D.
module omdl_logo(r=5, c=false, b=false, t=false, td="ltr", a=0, d)
Standard omdl logo.
module cone(r=1, h, d, vr)
A cone.
function angle(a, from=angle_unit_default, to=angle_unit_base)
Convert an angle from some units to another.