Adrian Mariano
230e7c18b5
fix tests
2021-10-05 18:57:46 -04:00
Adrian Mariano
afe75d0e3f
add starts to threaded rod/nut
...
remove vnf_add_face(s)
add vnf_from_polygon
2021-10-05 18:23:20 -04:00
Adrian Mariano
b0611c0daf
add vnf_slice
2021-10-05 17:15:07 -04:00
Adrian Mariano
0093d10993
use projection before calling is_path_simple in rouinded_prism
...
rewrite vnf_bend so it doesn't rely on pseudo 3d polygon self-intersection
2021-10-05 16:14:36 -04:00
Adrian Mariano
d986db2e1e
vnf_debug update
...
path self intersection speedup
2021-10-03 22:37:57 -04:00
Adrian Mariano
261099e102
fix bug in spherical_random_points (non-uniform)
...
add region support to dashed_stroke
move a bunch of functions around for reorganization
2021-09-30 23:11:01 -04:00
Adrian Mariano
956ae7076c
remove vnf_get_vertex
2021-09-28 21:51:55 -04:00
Adrian Mariano
60c3a99e90
moved some functions around and renamed
2021-09-28 19:08:47 -04:00
Adrian Mariano
ef9f54c369
Fix Examples: that should be Example:
...
Add closed option to path_merge_collinear
Add nonzero to decompose_path
offset() bugfix for paths whose endpoints are equal
vnf doc tweaks
2021-09-20 18:34:22 -04:00
Adrian Mariano
e6a2ee2084
Fix Examples: -> Example: when there's no render
2021-09-16 19:33:55 -04:00
Adrian Mariano
5d0b42b667
switch order of sections in vnf
2021-09-16 16:56:04 -04:00
Adrian Mariano
856f54df32
removed old triangulation.scad
...
other file name changes
2021-09-15 23:12:51 -04:00
Adrian Mariano
d78eb5213e
Add "is" to geometry.scad predicates
2021-09-15 19:01:34 -04:00
Adrian Mariano
eec1d6b08c
bug fix, added tests
2021-09-15 16:36:03 -04:00
Adrian Mariano
33ca0d4a69
Resectioned distributors and vnf.
...
Error msg fix in shapes2d
section tweak in transforms
fixed polygon_line_intersection
2021-09-15 16:30:04 -04:00
Adrian Mariano
4f8ebb2e80
more error messages for star()
...
improve speed and flexibility of apply()
fix triangulation bug
add support for single point 2d solutions in polygon_line_intersection
2021-09-14 20:10:55 -04:00
Adrian Mariano
5a4d9554df
err message tweak in star()
...
rearranged polygon_line_intersection to handle 2d and fixed
but where it didn't test polygon membership correctly. Also
there was a bug with use of the bounded argument.
Added Ronaldo's triangulation.
2021-09-13 22:09:51 -04:00
Adrian Mariano
e807d0e0d6
bug fix
2021-09-11 20:03:33 -04:00
Adrian Mariano
4a463fd8b9
fix tests
2021-09-11 19:35:05 -04:00
Adrian Mariano
2494de9368
reordering and moving for improved docs
...
removed xxrot and xxflip
2021-09-11 18:48:23 -04: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
ce0b4e9d32
internal: can set bevel to true and get non-garbage result
...
bevel is always set by thread depth
acme takes tpi
square threads are at angle 0
added generic_threaded_{rod,nut}
eliminated metric_trapezoidal_*
cleaned up matrices some in generic_threaded_rod
threaded_rod can produce spec-true ISO/UTS profile with a triplet input for the diameter.
Added bevel1 and bevel2 to all modules. Made default uniformly false for every case instead of
sometimes true, sometimes false
Profiles that go over zero are not clipped, and bevels are based on actual profile top, not nominal
When bevel is given to nuts it bevels the outside of the nut by thread depth
higbee looks best with quincunx, but it's more expensive. Select quincunx when higbee is used, min_edge otherwise
Current code uses difference to remove excess length in the rod. This gives faster renders at the cost
of more complex code and green top/bottom surfaces.
Changed slop to 4 * $slop. I got good results printing with $slop=0.05 with this setting.
Don't generate excess threads when starts>1, and don't force threads to be even
2021-08-22 21:53:08 -04:00
RonaldoCMP
d4ebb740f6
Update vnf_merge
2021-06-30 11:22:48 +01:00
Garth Minette
5a355434ce
Tweaks for docs usage lines.
2021-06-26 20:59:33 -07:00
RonaldoCMP
703e582846
removing tabs
2021-05-18 20:10:29 +01:00
RonaldoCMP
fd172c33cd
Unify vnf_merge and vnf_compact
2021-05-18 07:38:30 +01:00
Adrian Mariano
c4ace59ccd
Add vantage point tree for searching vector lists. Add "concave"
...
method to vnf_vertex_array.
2021-05-11 20:51:09 -04:00
Revar Desmera
2f33c673f7
Merge pull request #517 from adrianVmariano/master
...
project_plane & lift_plane update
2021-04-24 14:12:11 -07:00
Adrian Mariano
493ef62826
normalized project_plane and lift_plane to match other transform
...
functions.
2021-04-21 22:49:06 -04:00
Garth Minette
8fd4073d44
Merge branch 'master' into revarbat_dev
2021-04-20 18:58:37 -07:00
Garth Minette
129a0d91b4
Fixed vnf_validate() for reporting errors after warnings.
2021-04-20 18:53:40 -07:00
Adrian Mariano
94abf65857
rewrite vnf_halfspace and fix bugs in half_of functions.
...
remove get_named_args
2021-04-19 16:58:17 -04:00
Adrian Mariano
5ea5e301b8
Handle region face after half space computation
2021-04-14 23:24:53 -04:00
Adrian Mariano
6e805163ab
half space fixes
2021-04-14 21:19:13 -04:00
Revar Desmera
5ed3602391
Merge pull request #500 from adrianVmariano/master
...
Fix face orientation bugs
2021-04-14 15:13:32 -07:00
Adrian Mariano
75b974906d
_UNDEF definition didn't work; moving to constants.scad fixed this.
...
Fixed vnf.scad so that "convex" is efficient and handles degenerate
case in vnf_vertex_array
Fixed skin to correctly handle multi-section "distance" skins.
2021-04-14 16:32:47 -04:00
Adrian Mariano
27928eac70
bug fixes for caps and style
2021-04-13 20:21:19 -04:00
Adrian Mariano
4a179920cf
Speed improvement for vnf_vertex_array by changing deduplicate
...
testing. Add "min_edge" style to vnf vertex array.
eliminate _skin_core, replace with vnf_vertex_array, add style option
to all modules/functions.
fix bug in path_normals (not normalized)
2021-04-13 19:27:42 -04:00
Adrian Mariano
dea5949df8
Fix face orientation bugs in vnf_vertex_array, rounded_prism,
...
bezier_patch_degenerate. Added reverse option to count().
2021-04-12 20:15:01 -04:00
Revar Desmera
0718bcb9be
Merge pull request #496 from adrianVmariano/master
...
vnf_tri_array & bezier_patch_degenerate
2021-04-12 00:38:44 -07:00
RonaldoCMP
c5799d6539
Review of vnf_centroid()
2021-04-11 12:36:05 +01:00
Adrian Mariano
1451b827ec
Moved vnf_tri_array to vnf.scad and added docs
2021-04-09 21:43:41 -04:00
Garth Minette
1745dbbb7f
slice() cleanup tweak.
2021-03-30 16:13:29 -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
2c305ef042
Fixed vnf.scad includes docs.
2021-03-18 19:39:03 -07:00
Garth Minette
d44c140fcb
Improved vnf_validate() face intersection checks.
2021-03-16 00:07:05 -07:00
Garth Minette
5c9162e9f5
Fixed worm() face normals.
2021-03-15 15:14:10 -07:00
Garth Minette
efb7a4fada
Fixes for worm_gear()
2021-03-15 05:10:23 -07:00
Garth Minette
6cfbc538fc
Re-work to use openscad_docsgen package.
2021-02-19 19:56:43 -08:00
Garth Minette
01092713cb
VNF re-re-write of trapezoidal_threaded_rod()
2021-02-04 05:39:00 -08:00
Garth Minette
99a0a23163
Added style="convex" to vnf_vertex_array()
2021-02-02 10:45:12 -08:00
Garth Minette
323a42177d
Fix manifold issues with trapezoidal_threaded_rod().
2021-02-02 02:14:59 -08:00
Garth Minette
320518194f
Various arrays.scad docs updates. Bugfixes.
2021-01-24 23:26:39 -08:00
Garth Minette
98aad31b69
Fixed vnf_get_vertex() for single point.
2021-01-14 00:32:40 -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
Adrian Mariano
e10a70fc98
Add "bad" example
2020-12-19 19:36:15 -05:00
Adrian Mariano
f2bb9bcb4b
Added vnf_wireframe, tweaked reverse error message,
2020-12-19 11:48:05 -05:00
Garth Minette
35e6fdb1aa
Various fixes to get example generation working.
2020-12-14 18:28:26 -08:00
Jerome Plut
245a545b6e
vnf_halfspace: fixed loop detection
2020-12-04 09:06:34 +01:00
Jerome Plut
8b22f3da08
Wrote better documentation for get_named_args()
2020-12-04 00:10:23 +01:00
Jerome Plut
1d324128e4
Added more flexibility to get_named_args(), and all the left_half(), etc. as functions
2020-12-03 21:40:32 +01:00
Jerome Plut
16204c6724
Allowed half_of() to work on paths, regions and surfaces.
2020-12-03 21:40:32 +01:00
Garth Minette
16ee49e8b2
Fixed a bunch of undef math warnings with dev snapshot OpenSCAD builds.
2020-10-03 19:50:29 -07:00
Garth Minette
5d2c45bba0
Merge branch 'master' of github.com:revarbat/BOSL2 into revarbat_dev
2020-08-28 19:19:04 -07:00
Garth Minette
e1b0985afc
Fixed broken line-plane intersections. Attachment enhanced vnf_polyhedron().
2020-08-28 19:07:10 -07:00
Adrian Mariano
c1782f1113
added no_children checks, and attachable to vnf_polyhedron
2020-08-27 19:25:41 -04:00
RonaldoCMP
b4e26c035c
Changes to noncollinear_triple
2020-08-16 23:34:31 +01:00
Garth Minette
b5d465cf1e
docs_gen.py now shows more docs errors.
2020-07-27 15:15:34 -07:00
Adrian Mariano
408833d4ef
speed improvement for vnf_centroid
2020-06-14 09:52:27 -04:00
Adrian Mariano
57034ac955
further vnf_volume speed improvement
2020-06-13 21:56:15 -04:00
Adrian Mariano
39de8491a3
Update vnf_volume and vnf_centroid to avoid vnf_triangulate. Huge
...
speed gain.
2020-06-13 10:15:57 -04:00
Revar Desmera
53c1e25395
Standardize indention on spaces, not tabs.
2020-05-29 19:04:34 -07:00
Adrian Mariano
30c63fd165
Changed vnf_vertex_array to gracefully handle degenerate array inputs,
...
and also switched error checking to use new shape functions so it
will fail on undefs.
2020-05-21 15:50:55 -04:00
Revar Desmera
fdc49bea02
Fixed vnf_bend() examples.
2020-05-18 02:02:24 -07:00
Revar Desmera
476967db6d
vnf_bend_around_y_axis() to vnf_bend(), with support for X, Y, and Z axes.
2020-05-18 01:51:26 -07:00
Revar Desmera
32e0f26fd8
Added vnf_bend_around_y_axis().
2020-05-14 05:14:23 -07:00
Revar Desmera
e32735296c
Various bugfixes found by docs regen.
2020-04-26 04:29:21 -07:00
Revar Desmera
fb3475abef
Various VNF optimizations.
2020-03-31 03:27:07 -07:00
Revar Desmera
258e162f98
Optimized vnf_add_face() and vnf_add_faces()
2020-03-30 23:09:56 -07:00
Adrian Mariano
49603a4fed
Speed improvement for volume and centroid.
2020-03-30 19:17:27 -04:00
Revar Desmera
971c1e795f
Renamed place_copies() to move_copies()
2020-03-24 18:31:22 -07:00
Revar Desmera
a9e72f06da
Merge branch 'master' into master
2020-03-22 21:42:14 -07:00
Revar Desmera
bd407bbfbd
Bugfix for initial vertex adding to VNF via vnf_add_face()
2020-03-22 01:42:14 -07:00
Revar Desmera
b2a2c00604
Fixed issue where would return true for a 2x2 matrix or an N=1 patch.
2020-03-22 01:12:51 -07:00
Adrian Mariano
e67ba766c8
added reference
2020-03-21 10:58:57 -04:00
Adrian Mariano
79358ddf6f
Added clarifying docs to vnf_centroid and vnf_volume. Changed vsqr to sqr
2020-03-21 09:19:02 -04:00
Revar Desmera
e635755528
Added vsqr(), vnf_centroid(), and vnf_volume()
2020-03-20 22:15:41 -07:00
Revar Desmera
f65228f0af
Remove casual quantizing from vnf_add_faces()
2020-03-20 13:54:38 -07:00
Revar Desmera
392b063a0b
Added vnf_quantize(), and zero-area face checks to vnf_validate()
2020-03-19 14:06:11 -07:00
Revar Desmera
4cf033762f
Added face intersection tests to vnf_validate()
2020-03-17 01:16:08 -07:00
Revar Desmera
9257c74236
Lightened vnt_validate polyhedron ghost.
2020-03-16 03:01:07 -07:00
Revar Desmera
39d44cb709
Improved vnf_validate()
2020-03-16 02:57:03 -07:00
Revar Desmera
3ac0be39c2
Fixed examples in vnf_vertex_array()
2020-03-15 11:54:11 -07:00
Revar Desmera
265db9fe5d
Removed affine2d_apply() and affine3d_apply()
2020-03-15 11:50:41 -07:00
Revar Desmera
93cdbf091d
Added size argument to vnf_validate()
2020-03-15 11:20:59 -07:00
Revar Desmera
a4ecbebfe6
Added vnf_compact() and vnf_validate()
2020-03-15 04:25:37 -07:00
Revar Desmera
2551f19939
Added EMPTY_VNF
2020-03-09 18:36:22 -07:00
Revar Desmera
c8e5103db8
Incorrect cols arg in vnf_vertex_array() docs.
2020-02-28 21:42:22 -08:00
Revar Desmera
5ccf1e26bd
Added convexity= to skin() and vnf_polyhedron()
2020-01-09 20:10:46 -08:00
Revar Desmera
5addbe8184
Added vnf.scad regressions and bugfixes.
2019-11-06 16:17:33 -08:00
Revar Desmera
785befb1c1
Added skin.scad
2019-11-03 19:12:50 -08:00
Revar Desmera
4a2fb2ee56
Split VNF structures out into vnf.scad
2019-10-21 16:44:39 -07:00