Commit graph

281 commits

Author SHA1 Message Date
Adrian Mariano
1a22305191 Fix missing reference, add figure for 2d directions 2022-02-12 20:05:30 -05:00
Garth Minette
8e0a51a30c Fixed references to old atext() 2022-01-18 23:14:32 -08:00
Revar Desmera
676f13cb48
Merge pull request #752 from adrianVmariano/master
debug function rename, etc
2022-01-09 18:06:14 -08:00
Adrian Mariano
f5d0854549 debug function rename
attachment function reorder
add axes to egg examples
2022-01-08 23:08:34 -05:00
Revar Desmera
00df38a83b
Merge pull request #749 from adrianVmariano/master
doc tweaks, path_chamfer_rounding fix
2022-01-07 19:28:37 -08:00
Adrian Mariano
d8aa4ced71 misc doc fixes and organization
beziers reorg
arc bug fix for endpoint=false and N=undef
2022-01-07 14:23:01 -05:00
Garth Minette
592e367cfb Tweaks to shapes2d tutorial. 2022-01-01 16:35:11 -08:00
Garth Minette
c4aa61fc20 Fixed orient() for 2D dir= 2021-12-26 18:39:10 -08:00
Revar Desmera
f9c5dc2cb9 Fixes for rect(center=) 2021-12-13 16:31:14 -08:00
Revar Desmera
aa109de9d7 Merge branch 'master' of github.com:revarbat/BOSL2 into revarbat_dev 2021-12-13 15:51:06 -08:00
Revar Desmera
59bf523908 Lots of docs tweaks for openscad-docsgen v2 2021-12-13 15:48:30 -08:00
Garth Minette
21083277b0 Various documentation fixes. 2021-12-06 14:28:04 -08:00
Adrian Mariano
dd3542c748 Fix references to changed subsections 2021-11-19 22:33:16 -05:00
Adrian Mariano
3d93795e7e tweaks 2021-11-19 22:23:04 -05:00
Adrian Mariano
e653be471f Move edges.scad content to attachments.scad
Add subsections to attachments.scad
2021-11-19 22:20:01 -05:00
Adrian Mariano
475129fd95 revamp extruded region attachables and apply to linear_sweep. 2021-11-17 13:38:07 -05:00
Adrian Mariano
2bfb4e39e7 more fixes 2021-11-16 23:12:03 -05:00
Adrian Mariano
d576526b60 VNF interface update skin.scad and shapes2d.scad 2021-11-16 18:49:37 -05:00
Adrian Mariano
6b20232f99 remove nil and noop 2021-11-15 23:55:57 -05:00
Adrian Mariano
886d316532 fix circle attachment bug 2021-11-14 10:06:04 -05:00
Adrian Mariano
b671a0c37d add attachments to region()
rewrite "circle" attachment to use line intersection
2021-11-13 10:47:51 -05:00
Adrian Mariano
477dd55781 remove polygon_shift, hide noncollinear_triple
modify glued circle to not produce duplicate points
2021-11-11 18:50:26 -05:00
Adrian Mariano
a105c05182 doc fixes 2021-11-10 20:28:06 -05:00
Adrian Mariano
727bc43401 doc fixes 2021-11-10 19:58:47 -05:00
Adrian Mariano
2a3a22ade7 hide contents of edges.scad
edges.scad holds new 4 section docs for how to specify cube parts
2021-11-10 16:34:10 -05:00
Garth Minette
b71d6619be Added asserts for attachment vectors. 2021-10-29 23:13:26 -07:00
Adrian Mariano
a75a368dd5 Move linear algebra to linalg.scad
columns->column because the multiindex case is handled by submatrix
and also it never occurs in the code.
2021-10-26 16:45:14 -04:00
Garth Minette
622a13952b Anchor calculation fixes. Added wedge() and make right_triangle() be 2D. 2021-10-26 00:42:27 -07:00
Garth Minette
cbab1b9a61 Added octahedron(), fixed bug in VNF extent anchoring. 2021-10-24 15:26:27 -07:00
Garth Minette
1b000705e3 masks.scad reworkings. 2021-10-23 20:28:40 -07:00
Adrian Mariano
5ad1fb3620 remove debug echo 2021-10-21 18:15:09 -04:00
Adrian Mariano
d5ce3615cf Make linear_sweep center in z direction with center option by adding
"zcenter" named anchor.
2021-10-21 11:31:32 -04:00
Adrian Mariano
76272d9d9a add region centroid capability and consolidate into one centroid
function for polygons, regions and VNFs.
Fix bug with anchors for linear_sweep (due to centerpoint issues)
Fix intersection anchors for vnfs when anchor vector intersects
in a path instead of a single point.
2021-10-20 22:44:55 -04:00
Adrian Mariano
2d205a2568 subarray -> columns 2021-10-15 22:39:10 -04:00
Adrian Mariano
bb77faa0c9 assorted doc fixes
eliminate trace_path
_path_self_intersections fix
2021-10-06 21:16:39 -04:00
Adrian Mariano
6e3efd68a4 big function re-org to eliminate debug.scad and hide affine.scad from docs 2021-10-01 00:30:28 -04:00
Adrian Mariano
9ca77eed1b path.scad cleanup (hid/removed several functions) 2021-09-18 19:11:08 -04:00
Adrian Mariano
bf23e067bd set default color to prevent error 2021-09-16 22:39:45 -04:00
Adrian Mariano
935a113fcf Examples fix
merge primitives stuff into shapes*.scad
move text commands to shapes3d.scad
rename common.scad
2021-09-16 21:50:12 -04:00
Adrian Mariano
fd0bcc0903 rename anchorpt to named_anchor 2021-09-16 18:32:12 -04:00
Garth Minette
a2c3c3916b Small docs link fix in attachments.scad. 2021-09-11 02:33:28 -07:00
Adrian Mariano
14ae1795bb fix permutation docs
consolidate "line/segment/ray" functions to just "line" with bounded option
add RAY, LINE and SEGMENT constants
2021-09-09 18:32:58 -04:00
Adrian Mariano
a651e191b4 add section heading 2021-09-09 06:42:36 -04:00
Adrian Mariano
814a3981ce fix doc errors
extend path_text to 2d
2021-09-07 22:49:15 -04:00
Adrian Mariano
c7fd5d05fa fix internal function headings 2021-09-07 21:00:19 -04:00
Adrian Mariano
32fbcff915 added section for atext 2021-09-07 20:48:13 -04:00
Adrian Mariano
77cd7ac63c Reorder attachments.scad for user friendly docs.
Make "internal" several functions that users don't need to
reduce confusion.
2021-09-07 20:35:55 -04:00
Garth Minette
d11068cec9 Added orient() attachments module. 2021-07-31 18:21:39 -07:00
Garth Minette
cebb35af34 Explain using tags-based operations with non-attachable shapes. 2021-07-21 19:32:04 -07:00
Braden Mars
ae61b1c4b1
fix(attachments): utilize font parameter in atext 2021-07-08 23:30:37 -05:00
Garth Minette
11b4151f74 Added Extruded Path geometry to attachable() and reorient(). 2021-06-28 18:02:13 -07:00
Garth Minette
5a355434ce Tweaks for docs usage lines. 2021-06-26 20:59:33 -07:00
Garth Minette
a748c77077 vmul() to v_mul(), etc. 2021-06-14 20:28:49 -07:00
Garth Minette
c7073a47b2 Fixed anchoring of cubetruss_corner() 2021-06-07 20:46:50 -07:00
Garth Minette
d7ee1cee09 Added atext() 2021-05-27 23:26:31 -07:00
Garth Minette
9afae8f1e4 Fix for issue #512 2021-05-23 18:55:14 -07:00
Garth Minette
bbfe46e1da Fixed use of attach(overlap=) for 2D cases. 2021-05-20 01:35:25 -07:00
Adrian Mariano
e82483ba79 Modified $overlap to default to zero and made some tweaks to clips and
dovetails because of this. Fixed bug in rabbit clip with lock=true.
2021-05-16 20:29:04 -04:00
Garth Minette
1335bd1e5a Added Attachments Tutorial links to attachments.scad docs. 2021-05-07 16:05:34 -07:00
Garth Minette
22b85610ec Enable axis= for cuboid/prismoid attachable() 2021-04-20 18:55:33 -07:00
Garth Minette
0b17bf5930 Brought slice() in line with select() indexing, without wrapping. Replaced a lot of select() and slice() calls with last(), list_head(), and list_tail() calls. 2021-03-30 00:46:59 -07:00
Garth Minette
17efb079d9 Fixes for various example bugs. 2021-03-16 14:46:11 -07:00
Garth Minette
a346a0cbf0 Added Topics/SeeAlso to affine, arrays, attachments, beziers, common, constants, gears 2021-03-01 22:44:00 -08:00
Garth Minette
1a7f7ef953 Reworked docs for primitives.scad and shapes2d.scad 2021-02-25 02:16:55 -08:00
Garth Minette
6cfbc538fc Re-work to use openscad_docsgen package. 2021-02-19 19:56:43 -08:00
Garth Minette
2db8133029 Corrected anchor asserts. 2021-01-31 15:52:00 -08:00
Garth Minette
0a6b899404 Allow passing of undef in anchor, spin, and orient to get default values. 2021-01-31 15:41:19 -08:00
Garth Minette
320518194f Various arrays.scad docs updates. Bugfixes. 2021-01-24 23:26:39 -08:00
Garth Minette
1ebe6115a9 Various attachments.scad docs fixes. 2021-01-07 21:22:31 -08:00
Garth Minette
f9aa81e178 Improved docs gen script for Returns:, Custom:, Includes:, Topics:, and positional/named args spits. 2021-01-05 01:20:01 -08:00
Garth Minette
b518763d6f Fixed shift handling for rect geometries. 2020-12-27 21:48:16 -08:00
Garth Minette
bf80c1193a Fixups for hulling() 2020-11-16 15:43:45 -08:00
Garth Minette
914e57cc6e Fix for nested diff()s, issue #270 2020-11-11 17:45:12 -08:00
Garth Minette
5bfd3bee4d Added axis= to attachable() and reorient(). 2020-09-22 00:22:48 -07:00
Garth Minette
e1b0985afc Fixed broken line-plane intersections. Attachment enhanced vnf_polyhedron(). 2020-08-28 19:07:10 -07:00
Kelvie Wong
e5a0a3cad7 Fix diff/intersect when some tags are hidden
When the first operand is hidden, some strange things happen, so this guards
against that.

Example:

    include <BOSL2/std.scad>

    part_to_show = "A"; // [A,B,C]
    part_to_hide = "B"; // [A,B,C]

    module my_part() {
        tags("A") left(10) cuboid(10);
        tags("B") diff("neg", "B") right(10) {
            cuboid(10);
            cyl(d=10, h=10, $tags="neg");
        }
        tags("C") fwd(10) cuboid(10);
    }

    show(part_to_show) hide(part_to_hide) my_part();

Tag "B" here acts very strangely when it is supposed to be hidden, and never
hides completely.
2020-08-22 16:19:39 -07:00
Garth Minette
7daa16f238 Fixed VNF attachment normal vector. 2020-08-17 18:11:49 -07:00
Garth Minette
25841bda73 Fixed attachable() anchors for vnf's with extent=false. 2020-08-16 23:10:43 -07:00
Garth Minette
e56f953c1c Fixed calls to vmul() with heteerogenous vector sizes. 2020-08-02 23:23:50 -07:00
Garth Minette
b5d465cf1e docs_gen.py now shows more docs errors. 2020-07-27 15:15:34 -07:00
Garth Minette
14e013cd13 Bugfix for unit() changes in attachment 2020-07-19 05:49:05 -07:00
Garth Minette
dde616dad5 unit() now asserts error for zero-length vector unless dflt= arg is given. 2020-07-10 00:03:55 -07:00
Garth Minette
efa76fe9f5 Added cp= to attachable. Added "origin" standard named anchor. 2020-07-06 17:07:20 -07:00
Revar Desmera
53c1e25395 Standardize indention on spaces, not tabs. 2020-05-29 19:04:34 -07:00
Revar Desmera
4f622a16b8 Corrected incorrect default in attachable() docs. 2020-05-22 00:00:15 -07:00
Revar Desmera
ef7acd1c10 Added "sideN" named anchors for Ngons. 2020-05-06 17:17:45 -07:00
Revar Desmera
c03570ce3b Enhanced oval() to allow actual oval shapes. 2020-05-06 01:36:06 -07:00
Revar Desmera
ff96db86d2 Removed overrides for square() and circle() builtin modules. 2020-04-25 04:00:16 -07:00
Revar Desmera
e2b02ba6a5 Added face_profile() 2020-04-11 22:49:50 -07:00
Revar Desmera
82aaa28471 Added teardrop_corner_mask(), corner_profile() 2020-04-11 01:22:04 -07:00
Revar Desmera
f2decb3873 Bugfix for vec3 spin values. 2020-03-30 14:46:30 -07:00
Revar Desmera
b22cd9e1d8 vec3 spin values failed assert. 2020-03-29 23:44:22 -07:00
Revar Desmera
00f69ba95b Removed translate_points(), scale_points(), rotate_points2d() and rotate_points3d() 2020-03-22 05:11:19 -07:00
Revar Desmera
1df6dcff2b Made polygon_area() work with 3D polygons as well. 2020-03-19 14:04:40 -07:00
Revar Desmera
c1e3f5d60a Added strings.scad to std.scad 2020-03-13 20:07:24 -07:00
Revar Desmera
4b5e0835cc Added region_faces() and linear_sweep(). 2020-03-11 22:26:43 -07:00
Revar Desmera
5f37eddc1b Fixed . 2020-03-10 00:17:40 -07:00
Revar Desmera
f5cb79ab7a Bugfix for named attachment anchors. 2020-03-09 21:29:22 -07:00
Revar Desmera
ab6f59867e Fix attachable(). Again. For real this time. 2020-03-09 21:15:04 -07:00
Revar Desmera
7e69100a53 Rolled back bugfix for hiding grandchildren of hidden child. 2020-03-09 19:35:46 -07:00
Revar Desmera
ff4c3146e8 Improved asserts in attachable(). 2020-03-07 22:26:39 -08:00
Revar Desmera
6ec5013835 Reworked attachable() internals, and provided geometry only function equivalent called reorient(). 2020-03-06 15:32:53 -08:00
Revar Desmera
07bfcd6a57 Renamed normalize() to unit() 2020-03-02 19:30:20 -08:00
Revar Desmera
6651e1be42 Renamed orient_and_anchor() to attachable() and refactored arguments and internals. 2020-02-29 13:16:15 -08:00
Revar Desmera
a3d9c9bdba Added corner_mask() 2020-02-13 00:30:37 -08:00
Revar Desmera
9736ec48f5 Added edge_profile(), edge_mask(), and various 2D mask shapes. 2020-02-11 20:11:59 -08:00
Revar Desmera
9d84c33af6 Fixed 2D attachments issue That rotated shapes vertically. 2020-01-15 14:18:11 -08:00
Revar Desmera
9d9225f9f3 Reoriented default right_triangle() and interior_fillet() to more intuitively work with spin. 2020-01-13 19:06:56 -08:00
Revar Desmera
9ed027a0cd Removed unused args from position() 2019-08-29 18:43:44 -07:00
Revar Desmera
a4fb0f1c8d fixed orient_and_anchor() for offset with spherical geometry. 2019-08-01 18:29:33 -07:00
Revar Desmera
e81c942f3e Changed offset in anchoring to special-case CENTER 2019-07-31 18:48:26 -07:00
Revar Desmera
3306f1d66b Renamed PRINTER_SLOP to 2019-07-17 18:54:35 -07:00
Revar Desmera
c13a8fe40a Added cubetruss.scad libfile. 2019-06-24 23:53:22 -07:00
Revar Desmera
6180771cf1 Fixed edge case orient_and_align() with 0 height. 2019-06-23 17:42:57 -07:00
Revar Desmera
f378b70151 Added in range step of 1 to avoid errors. 2019-05-26 22:34:46 -07:00
Revar Desmera
bb10d40dc7 Fixed docs links. 2019-05-26 12:47:50 -07:00
Revar Desmera
16919f39c3 Reworked orientation to use vectors. Added spin. 2019-05-25 23:31:05 -07:00
Revar Desmera
88ea4c94d9 Fixed and simplified anchoring. 2019-05-17 14:41:45 -07:00
Revar Desmera
9a3e2b71f2 Renamed affine[23]d_mult to affine[23]d_chain 2019-05-14 14:38:54 -07:00
Revar Desmera
9645aef2a9 Renamed matrix[34]_* -> affine[23]d_*. 2019-05-13 23:11:55 -07:00
Revar Desmera
cad2b074ca Fixed hulling() example image 2019-05-12 18:07:47 -07:00
Revar Desmera
a0f17009c0 Added hulling() 2019-05-10 04:03:30 -07:00
Revar Desmera
3c0ab0795a Reworked edge descriptors, first pass. 2019-05-07 22:42:44 -07:00
Revar Desmera
7c32fb2927 Fix orient_and_anchor() orig_anchor argument for named anchors. 2019-05-03 16:09:14 -07:00
Revar Desmera
c79e887612 Removed per-file copyright messages in favor of the LICENSE file. 2019-05-03 12:30:20 -07:00
Revar Desmera
c3b81ce27f Updated attachment examples. 2019-04-26 02:15:53 -07:00
Revar Desmera
52eab0e9bb Removed debug echo 2019-04-23 19:15:34 -07:00
Revar Desmera
76fb8ffac5 Enable use of attach with 2D shapes. 2019-04-23 19:13:43 -07:00
Revar Desmera
06a460f757 Removed usage of upcube() 2019-04-23 15:59:43 -07:00
Revar Desmera
5a16152416 Renamed align to anchor. 2019-04-22 20:55:03 -07:00
Revar Desmera
7e1598d66d Fixed corner and top/bottom edge orientations. 2019-04-22 01:08:41 -07:00