Commit graph

2753 commits

Author SHA1 Message Date
Grant Sanderson
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
Grant Sanderson
1f04ba92fb Fix Polygon.round_corners 2023-01-11 20:47:04 -08:00
Grant Sanderson
ed26fdfab8 Have Polyline default to flat stroke 2023-01-11 20:31:38 -08:00
Grant Sanderson
bf84b1933b Remove unnecessary flat stroke specification 2023-01-11 20:31:30 -08:00
Grant Sanderson
5a56a2a5ec Remove bad solution to bevel issue 2023-01-11 20:28:00 -08:00
Grant Sanderson
f04d0ad350 Update add_cubic_bezier_curve 2023-01-11 20:27:37 -08:00
Grant Sanderson
8c435d6181 Default to flat stroke for polygons 2023-01-11 20:27:17 -08:00
Grant Sanderson
31715ec98a Fix Arrow 2023-01-11 20:09:28 -08:00
Grant Sanderson
a17a57825e Fix Annulus and sector 2023-01-11 20:01:54 -08:00
Grant Sanderson
61437b2a7f Remove (no longer used) n_points_per_curve 2023-01-11 19:53:00 -08:00
Grant Sanderson
333db992ed Minor cleanup to Prism 2023-01-11 19:52:45 -08:00
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