Commit graph

2492 commits

Author SHA1 Message Date
Grant Sanderson
8a08b62f7c Remove n_points_per_curve reference 2023-01-11 19:52:33 -08:00
Grant Sanderson
5d7e923ac6 Remove stray imports 2023-01-11 19:40:21 -08:00
Grant Sanderson
6a18a05a3b Fix arrow for new path behavior 2023-01-11 19:40:15 -08:00
Grant Sanderson
5fac213fee Change crosshair initialization 2023-01-11 19:27:34 -08:00
Grant Sanderson
557e57d95b Change taper width default 2023-01-11 19:27:23 -08:00
Grant Sanderson
d3a40eb1ac Update VShowPassingFlash for new path mode 2023-01-11 16:40:40 -08:00
Grant Sanderson
032a8fd030 Save answer for VMobject.get_outer_vert_indices 2023-01-11 16:25:42 -08:00
Grant Sanderson
387de61119 Revert "Go back to fill shader tracing vertex index manually"
This reverts commit 7847ff1a9d.
2023-01-11 16:22:12 -08:00
Grant Sanderson
5e459d57c6 Revert "Don't use index buffer"
This reverts commit d9dc956137.
2023-01-11 16:21:55 -08:00
Grant Sanderson
d9dc956137 Don't use index buffer
It's strangely longer
2023-01-11 15:59:46 -08:00
Grant Sanderson
7847ff1a9d Go back to fill shader tracing vertex index manually 2023-01-11 15:32:27 -08:00
Grant Sanderson
f2370afea0 Treat stroke indices properly 2023-01-11 15:20:05 -08:00
Grant Sanderson
da125c1072 Add saved outer_vert_indices 2023-01-11 14:42:06 -08:00
Grant Sanderson
c0fba529d9 Update crosshair for new path structure 2023-01-11 14:20:33 -08:00
Grant Sanderson
86b756ab1f No need for subdividing sharp curves 2023-01-11 14:20:20 -08:00
Grant Sanderson
55bc8464b9 Update Arc to make sense with new path structure 2023-01-11 14:19:57 -08:00
Grant Sanderson
21908a48de Change behavior of get_quadratic_approximation_of_cubic to return quintuplets instead of sextuplets 2023-01-11 14:19:33 -08:00
Grant Sanderson
40b9e22b6e Update some type hints in bezier 2023-01-11 14:19:17 -08:00
Grant Sanderson
2808710d60 Add VectNArray 2023-01-11 14:18:57 -08:00
Grant Sanderson
c4e1db7f9d Don't draw paths where the handle equals the first anchor 2023-01-11 14:18:45 -08:00
Grant Sanderson
2a7b787ef6 Test the orientation in the middle of the curve 2023-01-11 14:18:12 -08:00
Grant Sanderson
681fa513a7 First pass at changing VMobject use simpler path strings
Remove the redundancy of treating each quadratic bezier triplet separately, where most ends overlap the next beginning
2023-01-11 14:17:56 -08:00
Grant Sanderson
b967c04c2c Actually ensure get_joint_angle works for start_new_path case 2023-01-10 18:33:49 -08:00
Grant Sanderson
0205a37209 More tiny tweaks for joint_angles 2023-01-10 17:02:12 -08:00
Grant Sanderson
eccaa8681e Ensure get_joint_angles works in start-new-path case 2023-01-10 16:48:08 -08:00
Grant Sanderson
9d9e000c63 Remove stray line 2023-01-10 16:41:12 -08:00
Grant Sanderson
886fd193f0 Use three shader wrappers to account for backstroke 2023-01-10 16:41:03 -08:00
Grant Sanderson
bfaf81c6b3 Refresh shader data at the start of an animation 2023-01-10 16:40:31 -08:00
Grant Sanderson
470e7bee1e Recompute joint angle at the end of align_points 2023-01-10 16:01:52 -08:00
Grant Sanderson
e5b17aad69 Small bug fix for TransformMatchingShape 2023-01-10 16:01:34 -08:00
Grant Sanderson
22420b7724 Ensure joint angles are computed (if need be) during interpolation 2023-01-10 15:32:31 -08:00
Grant Sanderson
e189df81b1 Change default endpoint angle to be 0 2023-01-10 15:32:05 -08:00
Grant Sanderson
0c3367f27b First-pass fix for joints in 3d 2023-01-10 15:17:08 -08:00
Grant Sanderson
131ecce7c4 Add rotate function 2023-01-10 15:16:41 -08:00
Grant Sanderson
7212a98d65 Small clean up 2023-01-10 12:59:10 -08:00
Grant Sanderson
802bd58aa7 Small cleanup 2023-01-10 12:26:16 -08:00
Grant Sanderson
116d6fe244 Revert emit_pentagon to work on 3d vectors 2023-01-10 11:51:05 -08:00
Grant Sanderson
6ec3d9f4a5 Add 'no_joint' to joint types 2023-01-10 11:06:41 -08:00
Grant Sanderson
ab1227a908 Ensure joint angles are up to date in align_points 2023-01-10 10:26:30 -08:00
Grant Sanderson
27db1c5987 Add arrays_match function 2023-01-10 10:25:59 -08:00
Grant Sanderson
8cd59f852d Add small comments 2023-01-10 09:55:06 -08:00
Grant Sanderson
8175c2d408 Rename quadratic_bezier_geometry_functions to get_xy_to_uv 2023-01-10 09:53:17 -08:00
Grant Sanderson
b31ad49850 A little clean up to fill shader 2023-01-10 09:49:51 -08:00
Grant Sanderson
70113d5a48 Tiny cleanup 2023-01-10 08:58:08 -08:00
Grant Sanderson
4b652be492 Delete get_xyz_to_uv 2023-01-10 08:57:38 -08:00
Grant Sanderson
05796654f4 Replace "bezier_degree" with "is_linear" 2023-01-10 08:54:02 -08:00
Grant Sanderson
2b90f0b244 Add condition for auto-miter joints 2023-01-09 20:30:49 -08:00
Grant Sanderson
dcb166e21b Refresh joint_angles on almost any change 2023-01-09 20:30:29 -08:00
Grant Sanderson
02a0ffe04e Delete quadratic_bezier_distance.glsl 2023-01-09 20:17:10 -08:00
Grant Sanderson
98e358f87d Move a line 2023-01-09 20:10:34 -08:00