diff --git a/geometry.scad b/geometry.scad index 507393f..a32ea24 100644 --- a/geometry.scad +++ b/geometry.scad @@ -1386,7 +1386,9 @@ function polygon_area(poly, signed=false) = // If you provide a non-planar or collinear polygon you will get an error. For self-intersecting // polygons you may get an error or you may get meaningless results. // . -// If object is a manifold VNF then returns the 3d centroid of the polyhedron. The VNF must +// Given a [[region|regions.scad]], returns the 2D coordinates of the region's centroid. +// . +// Given a manifold [[VNF|vnf.scad]] then returns the 3D centroid of the polyhedron. The VNF must // describe a valid polyhedron with consistent face direction and no holes in the mesh; otherwise // the results are undefined. // Arguments: diff --git a/paths.scad b/paths.scad index 1d68f97..9af7a71 100644 --- a/paths.scad +++ b/paths.scad @@ -1142,7 +1142,7 @@ function _assemble_a_path_from_fragments(fragments, rightmost=true, startfrag=0, /// fragments = List of paths to be assembled into complete polygons. /// eps = The epsilon error value to determine whether two points coincide. Default: `EPSILON` (1e-9) function _assemble_path_fragments(fragments, eps=EPSILON, _finished=[]) = - len(fragments)==0? _finished : + len(fragments)==0? _finished : let( minxidx = min_index([ for (frag=fragments) min(column(frag,0))