Merge branch 'master' into master

This commit is contained in:
Revar Desmera 2020-03-01 14:20:32 -08:00 committed by GitHub
commit 46b1625c1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View file

@ -12,6 +12,7 @@
include <BOSL2/beziers.scad> include <BOSL2/beziers.scad>
include <BOSL2/strings.scad> include <BOSL2/strings.scad>
include <BOSL2/structs.scad> include <BOSL2/structs.scad>
include <BOSL2/skin.scad>
// CommonCode: // CommonCode:
@ -884,7 +885,7 @@ function os_profile(points, extra,check_valid, quality, offset_maxstep, offset)
// Example: If you give a non-convex input you get a convex hull output // Example: If you give a non-convex input you get a convex hull output
// right(50) linear_extrude(height=7) star(5,r=22,ir=13); // right(50) linear_extrude(height=7) star(5,r=22,ir=13);
// convex_offset_extrude(bottom = os_chamfer(height=-2), top=os_chamfer(height=1), height=7) // convex_offset_extrude(bottom = os_chamfer(height=-2), top=os_chamfer(height=1), height=7)
// star(5,r=22,ir=13) // star(5,r=22,ir=13);
module convex_offset_extrude( module convex_offset_extrude(
height, h, l, height, h, l,
top=[], bottom=[], top=[], bottom=[],

View file

@ -149,7 +149,7 @@ def run_openscad_script(libfile, infile, imgfile, imgsize=(320,240), eye=None, s
p = subprocess.Popen(scadcmd, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) p = subprocess.Popen(scadcmd, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
(stdoutdata, stderrdata) = p.communicate(None) (stdoutdata, stderrdata) = p.communicate(None)
res = p.returncode res = p.returncode
if res != 0 or b"ERROR:" in stderrdata or b"WARNING:" in stderrdata: if res != 0 or b"ERROR:" in stderrdata or b"TRACE:" in stderrdata:
print("\n\n{}".format(stderrdata.decode('utf-8'))) print("\n\n{}".format(stderrdata.decode('utf-8')))
print("////////////////////////////////////////////////////") print("////////////////////////////////////////////////////")
print("// {}: {} for {}".format(libfile, infile, imgfile)) print("// {}: {} for {}".format(libfile, infile, imgfile))

View file

@ -17,7 +17,7 @@ done
if [[ "$FILES" != "" ]]; then if [[ "$FILES" != "" ]]; then
PREVIEW_LIBS="$FILES" PREVIEW_LIBS="$FILES"
else else
PREVIEW_LIBS="version common errors attachments math arrays vectors affine coords geometry triangulation quaternions strings stacks queues structs vnf skin hull constants edges transforms primitives shapes masks shapes2d paths beziers rounding walls cubetruss metric_screws threading partitions involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra knurling cubetruss debug" PREVIEW_LIBS="affine arrays attachments beziers bosl1compat bottlecaps common constants coords cubetruss debug distributors edges errors geometry hingesnaps hull involute_gears joiners knurling linear_bearings masks math metric_screws mutators nema_steppers partitions paths phillips_drive polyhedra primitives quaternions queues regions rounding shapes shapes2d skin sliders stacks std strings structs threading torx_drive transforms triangulation vectors version vnf walls wiring"
fi fi
dir="$(basename $PWD)" dir="$(basename $PWD)"

View file

@ -967,13 +967,13 @@ module sweep(shape, transformations, closed=false, caps, convexity=10) {
// yzcircle = yrot(90,p=circle($fn=64, r=30)); // yzcircle = yrot(90,p=circle($fn=64, r=30));
// ushape = [[-10, 0],[-10, 10],[ -7, 10],[ -7, 2],[ 7, 2],[ 7, 7],[ 10, 7],[ 10, 0]]; // ushape = [[-10, 0],[-10, 10],[ -7, 10],[ -7, 2],[ 7, 2],[ 7, 7],[ 10, 7],[ 10, 0]];
// path_sweep(ushape, yzcircle, method="manual", normal=UP, closed=true); // path_sweep(ushape, yzcircle, method="manual", normal=UP, closed=true);
// Examples: The "natural" method will introduce twists when the curvature changes direction. A warning is displayed. // Example: The "natural" method will introduce twists when the curvature changes direction. A warning is displayed.
// arc1 = path3d(arc(angle=90, r=30)); // arc1 = path3d(arc(angle=90, r=30));
// arc2 = xrot(-90, cp=[0,30],p=path3d(arc(angle=[90,180], r=30))); // arc2 = xrot(-90, cp=[0,30],p=path3d(arc(angle=[90,180], r=30)));
// two_arcs = simplify_path(concat(arc1,arc2)); // two_arcs = simplify_path(concat(arc1,arc2));
// ushape = [[-10, 0],[-10, 10],[ -7, 10],[ -7, 2],[ 7, 2],[ 7, 7],[ 10, 7],[ 10, 0]]; // ushape = [[-10, 0],[-10, 10],[ -7, 10],[ -7, 2],[ 7, 2],[ 7, 7],[ 10, 7],[ 10, 0]];
// path_sweep(ushape, two_arcs, method="natural"); // path_sweep(ushape, two_arcs, method="natural");
// Examples: The only simple way to get a good result is the "incremental" method: // Example: The only simple way to get a good result is the "incremental" method:
// arc1 = path3d(arc(angle=90, r=30)); // arc1 = path3d(arc(angle=90, r=30));
// arc2 = xrot(-90, cp=[0,30],p=path3d(arc(angle=[90,180], r=30))); // arc2 = xrot(-90, cp=[0,30],p=path3d(arc(angle=[90,180], r=30)));
// arc3 = apply( translate([-30,60,30])*yrot(90), path3d(arc(angle=[270,180], r=30))); // arc3 = apply( translate([-30,60,30])*yrot(90), path3d(arc(angle=[270,180], r=30)));

View file

@ -8,7 +8,7 @@
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,138]; BOSL_VERSION = [2,0,140];
// Section: BOSL Library Version Functions // Section: BOSL Library Version Functions