Commit graph

66 commits

Author SHA1 Message Date
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