doc fixes & bugfix

This commit is contained in:
Adrian Mariano
2025-03-26 06:32:03 -04:00
parent 15f07e1ac4
commit c4492e07ee
2 changed files with 9 additions and 2 deletions

View File

@@ -5270,6 +5270,13 @@ function transform_desc(T,desc) =
// See the last examples in {{prism_connector()}} for examples using this module. // See the last examples in {{prism_connector()}} for examples using this module.
// Arguments: // Arguments:
// transforms = list of transformation matrices to apply to the children // transforms = list of transformation matrices to apply to the children
// Side Effect:
// `$count` is set to the number of transformations
// `$idx` is set to the index number of the current transformation
// `$is_last` is set to true if this is the last copy and false otherwise
// `$next()` is set to a function literal that produces the next description (see above)
// `$prev()` is set to a function literal that produces the previous description (see above)
// `$desc()` is set to a function literal that produces the description at a specified index (see above)
module desc_copies(transforms) module desc_copies(transforms)
{ {

View File

@@ -3560,7 +3560,8 @@ function join_prism(polygon, base, base_r, base_d, base_T=IDENT,
assert(!in_list(aux,["sphere","cyl","cylinder"]) || (is_num(aux_r) && !approx(aux_r,0)), str("Must give nonzero aux_r with base ",base)) assert(!in_list(aux,["sphere","cyl","cylinder"]) || (is_num(aux_r) && !approx(aux_r,0)), str("Must give nonzero aux_r with base ",base))
assert(!short || (in_list(base,["sphere","cyl","cylinder"]) && base_r<0), "You can only set short to true if the base is a sphere or cylinder with radius<0") assert(!short || (in_list(base,["sphere","cyl","cylinder"]) && base_r<0), "You can only set short to true if the base is a sphere or cylinder with radius<0")
let( let(
base_r=default(base_r,0), base_r=default(base_r,1),
aux_r=default(aux_r,1),
polygon=clockwise_polygon(polygon), polygon=clockwise_polygon(polygon),
start_center = CENTER, start_center = CENTER,
aux_T_horiz = submatrix(aux_T,[0:2],[0:2]) == ident(3) && aux_T[2][3]==0, aux_T_horiz = submatrix(aux_T,[0:2],[0:2]) == ident(3) && aux_T[2][3]==0,
@@ -3972,7 +3973,6 @@ function _prism_fillet_prism(name, basepoly, bot, top, d, k, N, overlap, uniform
// See Also: parent(), join_prism(), linear_sweep() // See Also: parent(), join_prism(), linear_sweep()
// Usage: // Usage:
// prism_connector(desc1, anchor1, desc2, anchor2, [spin_align=]); // prism_connector(desc1, anchor1, desc2, anchor2, [spin_align=]);
// Description: // Description:
// Given descriptions and anchors for two objects, construct a filleted prism that connects the // Given descriptions and anchors for two objects, construct a filleted prism that connects the
// anchor points on those objects, with a filleted joint at each end. This is an alternative interface // anchor points on those objects, with a filleted joint at each end. This is an alternative interface