5300 Commits

Author SHA1 Message Date
db8b0e7bce Change simple quadratic approximation threshold 2023-01-12 19:24:56 -08:00
dcdf74a715 Clean up stroke geometry shader to better function in 3d 2023-01-12 19:24:42 -08:00
9778c3e085 Remove no-longer necessary correction for path ends 2023-01-12 18:29:44 -08:00
644ea41443 Default to simpler quadratic approximation of cubic beziers 2023-01-12 18:29:19 -08:00
9464f83d18 Track indices for fill shader, but prevent ibo usage at the Camera level 2023-01-12 15:56:44 -08:00
a07701e295 Use triangle strip for stroke shader 2023-01-12 15:56:12 -08:00
24afb2a24f Fix angle_between 2023-01-12 14:43:52 -08:00
c6d3a9646c Merge branch 'reduced-bezier-paths' into video-work 2023-01-12 13:38:55 -08:00
64578df603 Don't save SVG Path data to file
It's more trouble than it's worth
2023-01-12 13:23:48 -08:00
e676bd957b Do inner joint angle computation in geom shader 2023-01-12 13:08:35 -08:00
9320dad45f Have get_subpath_end_indices_from_points ask for exact equality between h and a0 2023-01-12 11:54:25 -08:00
ab30f085b4 Simpler VMobject.get_num_curves 2023-01-12 10:40:18 -08:00
f3e91db581 Small comment change 2023-01-12 10:39:50 -08:00
04fd50491e More consistent corners computation for stroke geom shader 2023-01-12 10:14:14 -08:00
7d90a82317 Fix fill shader vert data 2023-01-12 10:13:42 -08:00
1a8e923ef2 Small speed ups 2023-01-12 00:40:27 -08:00
a8fb05a44a Don't use index buffer for fill
It turns out to be strangely slower
2023-01-12 00:23:22 -08:00
c0b3c246de Revert "Revert "Go back to fill shader tracing vertex index manually""
This reverts commit 387de61119ea13b63d68c8e56a776717b99f2a8c.
2023-01-12 00:16:05 -08:00
ae42f6244e Don't use an index buffer for stroke 2023-01-12 00:14:07 -08:00
131e1c2eeb Have corners emitted by stroke geom shader better line up with bezier control points
This is helpful for, say, setting variable stroke width
2023-01-11 21:30:12 -08:00
1f04ba92fb Fix Polygon.round_corners 2023-01-11 20:47:04 -08:00
ed26fdfab8 Have Polyline default to flat stroke 2023-01-11 20:31:38 -08:00
bf84b1933b Remove unnecessary flat stroke specification 2023-01-11 20:31:30 -08:00
5a56a2a5ec Remove bad solution to bevel issue 2023-01-11 20:28:00 -08:00
f04d0ad350 Update add_cubic_bezier_curve 2023-01-11 20:27:37 -08:00
8c435d6181 Default to flat stroke for polygons 2023-01-11 20:27:17 -08:00
31715ec98a Fix Arrow 2023-01-11 20:09:28 -08:00
a17a57825e Fix Annulus and sector 2023-01-11 20:01:54 -08:00
61437b2a7f Remove (no longer used) n_points_per_curve 2023-01-11 19:53:00 -08:00
333db992ed Minor cleanup to Prism 2023-01-11 19:52:45 -08:00
8a08b62f7c Remove n_points_per_curve reference 2023-01-11 19:52:33 -08:00
5d7e923ac6 Remove stray imports 2023-01-11 19:40:21 -08:00
6a18a05a3b Fix arrow for new path behavior 2023-01-11 19:40:15 -08:00
5fac213fee Change crosshair initialization 2023-01-11 19:27:34 -08:00
557e57d95b Change taper width default 2023-01-11 19:27:23 -08:00
d3a40eb1ac Update VShowPassingFlash for new path mode 2023-01-11 16:40:40 -08:00
032a8fd030 Save answer for VMobject.get_outer_vert_indices 2023-01-11 16:25:42 -08:00
387de61119 Revert "Go back to fill shader tracing vertex index manually"
This reverts commit 7847ff1a9db93316cf7ba4985487f82d2836d840.
2023-01-11 16:22:12 -08:00
5e459d57c6 Revert "Don't use index buffer"
This reverts commit d9dc956137df4cc13a17bfda79cc277aa2b7c03b.
2023-01-11 16:21:55 -08:00
d9dc956137 Don't use index buffer
It's strangely longer
2023-01-11 15:59:46 -08:00
7847ff1a9d Go back to fill shader tracing vertex index manually 2023-01-11 15:32:27 -08:00
f2370afea0 Treat stroke indices properly 2023-01-11 15:20:05 -08:00
dba70ceded Clean up Arc init 2023-01-11 14:55:03 -08:00
da125c1072 Add saved outer_vert_indices 2023-01-11 14:42:06 -08:00
c0fba529d9 Update crosshair for new path structure 2023-01-11 14:20:33 -08:00
86b756ab1f No need for subdividing sharp curves 2023-01-11 14:20:20 -08:00
55bc8464b9 Update Arc to make sense with new path structure 2023-01-11 14:19:57 -08:00
21908a48de Change behavior of get_quadratic_approximation_of_cubic to return quintuplets instead of sextuplets 2023-01-11 14:19:33 -08:00
40b9e22b6e Update some type hints in bezier 2023-01-11 14:19:17 -08:00
2808710d60 Add VectNArray 2023-01-11 14:18:57 -08:00