mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
Tweak to centroid() docs.
This commit is contained in:
parent
8373b2db38
commit
214d382e1b
2 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue