mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fix some rounding docs formatting and examples.
This commit is contained in:
parent
f3c69eb673
commit
4fc24ef939
2 changed files with 62 additions and 63 deletions
|
@ -64,7 +64,7 @@ include <skin.scad>
|
|||
// can specify a list to round each corner with different parameters. If the curve is not closed then the first and last points
|
||||
// of the curve are not rounded. In this case you can specify a full list of points anyway, and the endpoint values are ignored,
|
||||
// or you can specify a list that has length len(path)-2, omitting the two dummy values.
|
||||
|
||||
//
|
||||
// Examples:
|
||||
// * `method="circle", radius=2`:
|
||||
// Rounds every point with circular, radius 2 roundover
|
||||
|
@ -134,21 +134,19 @@ include <skin.scad>
|
|||
// polygon(round_corners(shape, method="chamfer", cut=1));
|
||||
// color("red") down(.1) polygon(shape);
|
||||
// Example(Med3D): 3D printing test pieces to display different curvature shapes. You can see the discontinuity in the curvature on the "C" piece in the rendered image.
|
||||
// $fn=96;
|
||||
// ten = square(50);
|
||||
// cut = 5;
|
||||
// linear_extrude(height=14){
|
||||
// linear_extrude(height=14) {
|
||||
// translate([25,25,0])text("C",size=30, valign="center", halign="center");
|
||||
// translate([85,25,0])text("5",size=30, valign="center", halign="center");
|
||||
// translate([85,85,0])text("3",size=30, valign="center", halign="center");
|
||||
// translate([25,85,0])text("7",size=30, valign="center", halign="center");
|
||||
// }
|
||||
// linear_extrude(height=13)
|
||||
// {
|
||||
// linear_extrude(height=13) {
|
||||
// polygon(round_corners(ten, cut=cut), $fn=96*4);
|
||||
// translate([60,0,0])polygon(round_corners(ten, method="smooth", cut=cut));
|
||||
// translate([60,60,0])polygon(round_corners(ten, method="smooth", cut=cut, k=0.32));
|
||||
// translate([0,60,0])polygon(round_corners(ten, method="smooth", cut=cut, k=0.7));
|
||||
// translate([60,0,0])polygon(round_corners(ten, method="smooth", cut=cut, $fn=96));
|
||||
// translate([60,60,0])polygon(round_corners(ten, method="smooth", cut=cut, k=0.32, $fn=96));
|
||||
// translate([0,60,0])polygon(round_corners(ten, method="smooth", cut=cut, k=0.7, $fn=96));
|
||||
// }
|
||||
// Example(Med2D): Rounding a path that is not closed in a three different ways.
|
||||
// $fs=.1;
|
||||
|
@ -889,8 +887,8 @@ function os_profile(points, extra,check_valid, quality, offset_maxstep, offset)
|
|||
// - "steps" - number of vertical steps to use for the roundover. Default: 16.
|
||||
// - "offset" - select "round" (r=) or "delta" (delta=) offset type for offset. Default: "round"
|
||||
//
|
||||
// Note that unlike `offset_sweep`, because the offset operation is always performed from the base shape, using chamfered offsets does not increase the
|
||||
// number of vertices or lead to any special complications.
|
||||
// Note that unlike `offset_sweep`, because the offset operation is always performed from the base shape, using chamfered offsets does not increase the
|
||||
// number of vertices or lead to any special complications.
|
||||
//
|
||||
// Arguments:
|
||||
// height / l / h = total height (including rounded portions, but not extra sections) of the output. Default: combined height of top and bottom end treatments.
|
||||
|
@ -1758,7 +1756,8 @@ function _circle_mask(r) =
|
|||
|
||||
|
||||
// Module: bent_cutout_mask()
|
||||
// Usage: bent_cutout_mask(r|radius,thickness,path)
|
||||
// Usage:
|
||||
// bent_cutout_mask(r|radius, thickness, path)
|
||||
// Description:
|
||||
// Creates a mask for cutting a round-edged hole out of a vertical cylindrical shell. The specified radius
|
||||
// is the center radius of the cylindrical shell. The path needs to be sampled finely enough
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,318];
|
||||
BOSL_VERSION = [2,0,319];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue