156 module construct_shape()
166 else if ( type == 2 )
178 else if ( type == 3 )
189 else if ( type == 4 )
198 else if ( type == 5 )
209 else if ( type == 6 )
218 else if ( type == 7 )
235 else if ( type == 8 )
252 else if ( type == 9 )
261 else if ( type == 10 )
273 else if ( type == 50 )
274 select_common_2d_shape_50(size=size, vr=vr, vrm=vrm, fn=fn, center=center);
275 else if ( type == 51 )
276 select_common_2d_shape_51(size=size, vr=vr, vrm=vrm, fn=fn, center=center);
277 else if ( type == 52 )
278 select_common_2d_shape_52(size=size, vr=vr, vrm=vrm, fn=fn, center=center);
279 else if ( type == 53 )
280 select_common_2d_shape_53(size=size, vr=vr, vrm=vrm, fn=fn, center=center);
281 else if ( type == 54 )
282 select_common_2d_shape_54(size=size, vr=vr, vrm=vrm, fn=fn, center=center);
299 log_info(
strl([
"type=", type,
", argv=", argv,
", center=", center]));
302 echo(size=size, vr=vr, vrm=vrm, fn=fn, sm=sm);
module log_info(m)
Output information message to console.
origin2d
<point-2d> The origin point coordinate in 2d Euclidean space.
x_axis2d_uv
<vector-2d> The unit vector of the positive x-axis in 2d Euclidean space.
y_axis2d_uv
<vector-2d> The unit vector of the positive y-axis in 2d Euclidean space.
function defined_e_or(v, i, d)
Returns an element from an iterable if it exists, or a default value if not.
function defined_eon_or(v, i, d)
Returns the list element or scalar numeric value if defined, otherwise returns the default value.
function strl(v)
Convert a list of values to a concatenated string.
module star2d(size=1, n=5, vr)
A two-dimensional star.
module pg_rectangle_rs(size=1, o, sr, center=false)
A polygon rectangle with side rounding.
module pg_corner_round(r=1, m=1, o=origin2d, v1=x_axis2d_uv, v2=y_axis2d_uv)
A polygon edge round with constant radius between two vectors.
module pg_rhombus(size=1, o, vr, vrm=1, vfn, center=false)
A polygon rhombus with vertex rounding.
module pg_ngon(n=5, r=1, o, vr, vrm=1, vfn, center=true)
A n-sided regular polygon with vertex rounding.
module pg_elliptical_sector(r=1, o=origin2d, v1=x_axis2d_uv, v2=x_axis2d_uv, s=true)
A polygon elliptical sector.
module pg_rectangle(size=1, o, vr, vrm=1, vfn, center=false)
A polygon rectangle with vertex rounding.
module pg_triangle_sss(v, a=x_axis_ci, o, vr, vrm=1, vfn, cm=0)
A polygon triangle specified by three side lengths with vertex rounding.
module pg_triangle_ppp(c, o, vr, vrm=1, vfn, cm=0)
A polygon triangle specified by three coordinate points with vertex rounding.
module select_common_2d_shape(type=0, argv, center=false, verb=0)
Select configure and construct one of the available 2d shapes.