mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
Synopsis tweaks and cleanups.
This commit is contained in:
parent
7f850271e7
commit
a414922967
4 changed files with 41 additions and 7 deletions
|
@ -95,7 +95,6 @@ module chamfer_corner_mask(chamfer=1, anchor=CENTER, spin=0, orient=UP) {
|
|||
// Module: chamfer_cylinder_mask()
|
||||
// Synopsis: Creates a shape to chamfer the end of a cylinder.
|
||||
// Topics: Masking, Chamfers, Cylinders
|
||||
|
||||
// Usage:
|
||||
// chamfer_cylinder_mask(r|d=, chamfer, [ang], [from_end]) [ATTACHMENTS];
|
||||
// Description:
|
||||
|
@ -290,7 +289,7 @@ module rounding_corner_mask(r, d, style="octa", excess=0.1, anchor=CENTER, spin=
|
|||
|
||||
|
||||
// Module: rounding_angled_edge_mask()
|
||||
// Creates a shape to round edges of any angle.
|
||||
// Synopsis: Creates a shape to round edges of any angle.
|
||||
// Topics: Masks, Rounding
|
||||
// See Also: rounding_angled_corner_mask(), rounding_edge_mask(), rounding_corner_mask()
|
||||
// Usage:
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
// Module: bounding_box()
|
||||
// Synopsis: Creates the smallest bounding box that contains all the children.
|
||||
// Topics: Mutators, Bounds, Bounding Boxes
|
||||
// See Also: pointlist_bounds()
|
||||
// Usage:
|
||||
// bounding_box([excess],[planar]) CHILDREN;
|
||||
// Description:
|
||||
|
@ -105,6 +106,7 @@ module bounding_box(excess=0, planar=false) {
|
|||
// Module: chain_hull()
|
||||
// Synopsis: Performs the union of hull operations between consecutive pairs of children.
|
||||
// Topics: Mutators
|
||||
// See Also: hull()
|
||||
// Usage:
|
||||
// chain_hull() CHILDREN;
|
||||
//
|
||||
|
@ -270,6 +272,7 @@ module path_extrude2d(path, caps=false, closed=false, s, convexity=10) {
|
|||
// Module: cylindrical_extrude()
|
||||
// Synopsis: Extrudes 2D children outwards around a cylinder.
|
||||
// Topics: Mutators, Extrusion, Rotation
|
||||
// See Also: heightfield(), cylindrical_heightfield(), cyl()
|
||||
// Usage:
|
||||
// cylindrical_extrude(ir|id=, or|od=, [size=], [convexity=], [spin=], [orient=]) 2D-CHILDREN;
|
||||
// Description:
|
||||
|
@ -331,6 +334,7 @@ module cylindrical_extrude(ir, or, od, id, size=1000, convexity=10, spin=0, orie
|
|||
// Module: extrude_from_to()
|
||||
// Extrudes 2D children between two points in 3D space.
|
||||
// Topics: Extrusion, Mutators
|
||||
// See Also: path_sweep(), path_extrude2d()
|
||||
// Usage:
|
||||
// extrude_from_to(pt1, pt2, [convexity=], [twist=], [scale=], [slices=]) 2D-CHILDREN;
|
||||
// Description:
|
||||
|
@ -471,7 +475,7 @@ module minkowski_difference(planar=false) {
|
|||
// Module: offset3d()
|
||||
// Synopsis: Expands or contracts the surface of a 3D object.
|
||||
// Topics: Mutators
|
||||
// See Also: minkowski_difference()
|
||||
// See Also: minkowski_difference(), round3d()
|
||||
// Usage:
|
||||
// offset3d(r, [size], [convexity]) CHILDREN;
|
||||
// Description:
|
||||
|
@ -513,6 +517,7 @@ module offset3d(r, size=100, convexity=10) {
|
|||
// Module: round3d()
|
||||
// Synopsis: Rounds arbitrary 3d objects.
|
||||
// Topics: Rounding, Mutators
|
||||
// See Also: offset3d(), minkowski_difference()
|
||||
// Usage:
|
||||
// round3d(r) CHILDREN;
|
||||
// round3d(or) CHILDREN;
|
||||
|
|
37
paths.scad
37
paths.scad
|
@ -20,6 +20,7 @@
|
|||
// Function: is_path()
|
||||
// Synopsis: Returns True if 'list' is a path.
|
||||
// Topics: Paths
|
||||
// See Also: is_region(), is_vnf()
|
||||
// Usage:
|
||||
// is_path(list, [dim], [fast])
|
||||
// Description:
|
||||
|
@ -204,6 +205,9 @@ function path_segment_lengths(path, closed) =
|
|||
|
||||
|
||||
// Function: path_length_fractions()
|
||||
// Synopsis: Returns the fractional distance of each point along the length of a path.
|
||||
// Topics: Paths
|
||||
// See Also: path_length(), path_segment_lengths()
|
||||
// Usage:
|
||||
// fracs = path_length_fractions(path, [closed]);
|
||||
// Description:
|
||||
|
@ -456,6 +460,9 @@ function subdivide_path(path, n, refine, maxlen, closed=true, exact, method) =
|
|||
|
||||
|
||||
// Function: resample_path()
|
||||
// Synopsis: Returns an equidistant set of points along a path.
|
||||
// Topics: Paths
|
||||
// See Also: subdivide_path()
|
||||
// Usage:
|
||||
// newpath = resample_path(path, n|spacing=, [closed=]);
|
||||
// Description:
|
||||
|
@ -516,6 +523,9 @@ function resample_path(path, n, spacing, closed=true) =
|
|||
// Section: Path Geometry
|
||||
|
||||
// Function: is_path_simple()
|
||||
// Synopsis: Returns true if a path has no self intersections.
|
||||
// Topics: Paths
|
||||
// See Also: is_path()
|
||||
// Usage:
|
||||
// bool = is_path_simple(path, [closed], [eps]);
|
||||
// Description:
|
||||
|
@ -546,15 +556,18 @@ function is_path_simple(path, closed, eps=EPSILON) =
|
|||
|
||||
|
||||
// Function: path_closest_point()
|
||||
// Synopsis: Returns the closest place on a path to a given point.
|
||||
// Topics: Paths
|
||||
// See Also: point_line_distance(), line_closest_point()
|
||||
// Usage:
|
||||
// index_pt = path_closest_point(path, pt);
|
||||
// Description:
|
||||
// Finds the closest path segment, and point on that segment to the given point.
|
||||
// Returns `[SEGNUM, POINT]`
|
||||
// Arguments:
|
||||
// path = path of any dimension or a 1-region
|
||||
// pt = the point to find the closest point to
|
||||
// closed =
|
||||
// path = Path of any dimension or a 1-region.
|
||||
// pt = The point to find the closest point to.
|
||||
// closed = If true, the path is considered closed.
|
||||
// Example(2D):
|
||||
// path = circle(d=100,$fn=6);
|
||||
// pt = [20,10];
|
||||
|
@ -575,6 +588,9 @@ function path_closest_point(path, pt, closed=true) =
|
|||
|
||||
|
||||
// Function: path_tangents()
|
||||
// Synopsis: Returns tangent vectors for each point along a path.
|
||||
// Topics: Paths
|
||||
// See Also: path_normals()
|
||||
// Usage:
|
||||
// tangs = path_tangents(path, [closed], [uniform]);
|
||||
// Description:
|
||||
|
@ -611,6 +627,9 @@ function path_tangents(path, closed, uniform=true) =
|
|||
|
||||
|
||||
// Function: path_normals()
|
||||
// Synopsis: Returns normal vectors for each point along a path.
|
||||
// Topics: Paths
|
||||
// See Also: path_tangents()
|
||||
// Usage:
|
||||
// norms = path_normals(path, [tangents], [closed]);
|
||||
// Description:
|
||||
|
@ -653,6 +672,9 @@ function path_normals(path, tangents, closed) =
|
|||
|
||||
|
||||
// Function: path_curvature()
|
||||
// Synopsis: Returns the estimated numerical curvature of the path.
|
||||
// Topics: Paths
|
||||
// See Also: path_tangents(), path_normals(), path_torsion()
|
||||
// Usage:
|
||||
// curvs = path_curvature(path, [closed]);
|
||||
// Description:
|
||||
|
@ -678,6 +700,9 @@ function path_curvature(path, closed) =
|
|||
|
||||
|
||||
// Function: path_torsion()
|
||||
// Synopsis: Returns the estimated numerical torsion of the path.
|
||||
// Topics: Paths
|
||||
// See Also: path_tangents(), path_normals(), path_curvature()
|
||||
// Usage:
|
||||
// torsions = path_torsion(path, [closed]);
|
||||
// Description:
|
||||
|
@ -704,8 +729,9 @@ function path_torsion(path, closed=false) =
|
|||
|
||||
|
||||
// Function: path_cut()
|
||||
// Synopsis: Cuts a path into subpaths at various points.
|
||||
// Topics: Paths, Path Subdivision
|
||||
// See Also: split_path_at_self_crossings()
|
||||
// See Also: split_path_at_self_crossings(), path_cut_points()
|
||||
// Usage:
|
||||
// path_list = path_cut(path, cutdist, [closed]);
|
||||
// Description:
|
||||
|
@ -766,6 +792,7 @@ function _path_cut_getpaths(path, cutlist, closed) =
|
|||
// Function: path_cut_points()
|
||||
// Synopsis: Returns a list of cut points at a list of distances from the first point in a path.
|
||||
// Topics: Paths, Path Subdivision
|
||||
// See Also: path_cut(), split_path_at_self_crossings()
|
||||
// Usage:
|
||||
// cuts = path_cut_points(path, cutdist, [closed=], [direction=]);
|
||||
//
|
||||
|
@ -903,6 +930,7 @@ function _cut_to_seg_u_form(pathcut, path, closed) =
|
|||
// Function: split_path_at_self_crossings()
|
||||
// Synopsis: Split a 2D path wherever it crosses itself.
|
||||
// Topics: Paths, Path Subdivision
|
||||
// See Also: path_cut(), path_cut_points()
|
||||
// Usage:
|
||||
// paths = split_path_at_self_crossings(path, [closed], [eps]);
|
||||
// Description:
|
||||
|
@ -972,6 +1000,7 @@ function _tag_self_crossing_subpaths(path, nonzero, closed=true, eps=EPSILON) =
|
|||
// Function: polygon_parts()
|
||||
// Synopsis: Parses a self-intersecting polygon into a list of non-intersecting polygons.
|
||||
// Topics: Paths, Polygons
|
||||
// See Also: split_path_at_self_crossings(), path_cut(), path_cut_points()
|
||||
// Usage:
|
||||
// splitpolys = polygon_parts(poly, [nonzero], [eps]);
|
||||
// Description:
|
||||
|
|
|
@ -2470,6 +2470,7 @@ function spheroid(r, style="aligned", d, circum=false, anchor=CENTER, spin=0, or
|
|||
// Function&Module: torus()
|
||||
// Synopsis: Creates an attachable torus, or returns a vnf.
|
||||
// Topics: Shapes (3D), Attachable, VNF Generators
|
||||
// See Also: spheroid(), cyl()
|
||||
//
|
||||
// Usage: As Module
|
||||
// torus(r_maj|d_maj, r_min|d_min, [center], ...) [ATTACHMENTS];
|
||||
|
|
Loading…
Reference in a new issue