317 Commits

Author SHA1 Message Date
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
f04d0ad350 Update add_cubic_bezier_curve 2023-01-11 20:27:37 -08:00
61437b2a7f Remove (no longer used) n_points_per_curve 2023-01-11 19:53:00 -08:00
5d7e923ac6 Remove stray imports 2023-01-11 19:40:21 -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
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
da125c1072 Add saved outer_vert_indices 2023-01-11 14:42:06 -08:00
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
b967c04c2c Actually ensure get_joint_angle works for start_new_path case 2023-01-10 18:33:49 -08:00
0205a37209 More tiny tweaks for joint_angles 2023-01-10 17:02:12 -08:00
eccaa8681e Ensure get_joint_angles works in start-new-path case 2023-01-10 16:48:08 -08:00
9d9e000c63 Remove stray line 2023-01-10 16:41:12 -08:00
886fd193f0 Use three shader wrappers to account for backstroke 2023-01-10 16:41:03 -08:00
470e7bee1e Recompute joint angle at the end of align_points 2023-01-10 16:01:52 -08:00
22420b7724 Ensure joint angles are computed (if need be) during interpolation 2023-01-10 15:32:31 -08:00
e189df81b1 Change default endpoint angle to be 0 2023-01-10 15:32:05 -08:00
6ec3d9f4a5 Add 'no_joint' to joint types 2023-01-10 11:06:41 -08:00
ab1227a908 Ensure joint angles are up to date in align_points 2023-01-10 10:26:30 -08:00
dcb166e21b Refresh joint_angles on almost any change 2023-01-09 20:30:29 -08:00
98e358f87d Move a line 2023-01-09 20:10:34 -08:00
d1c765353d Small comment change 2023-01-09 11:56:27 -08:00
80c0e88133 Put joint_angle information in VMobject.data 2023-01-09 10:08:03 -08:00
2bf1f5eb40 Make sure pointwise_become_partial doesn't needlessly refresh joint angles 2023-01-08 21:29:35 -05:00
21051ce289 Performance improvement for get_joint_angles 2023-01-08 21:29:08 -05:00
d5fdc75164 Remove the need to track previous and next joints in stroke shader 2023-01-08 20:29:31 -05:00
9b2495abb1 Remove "orientation" from locked_keys when recomputed
Rather than re-reading into fill_data
2023-01-05 08:46:12 -05:00
0d433b075e Fix bug associated with orientation data not always getting written
This might reflect a deeper issue with the locked_data sometimes being _too_ locked.
2023-01-04 17:18:10 -08:00
1cf89abf53 No need to track vertex index manually 2023-01-04 16:39:59 -08:00
3165a28cd0 Clean up and fix VMobject.get_shader_wrapper_list 2022-12-29 12:04:01 -08:00
53f19b6620 Remove @staticmethod from @wraps functions 2022-12-28 21:36:21 -08:00
4c39c1abd6 Use arr.all() instead of np.all(arr) 2022-12-28 21:06:51 -08:00
d6b308ed47 Update elements of VMobject.shader_wrapper_list with depth_test and appropriate uniforms 2022-12-28 19:40:33 -08:00
a6ee54488b Add deep option to VMobject.copy 2022-12-28 19:22:41 -08:00
4f37486655 Have VMobject keep track of a shader_wrapper_list 2022-12-28 19:18:20 -08:00
a92a506224 Don't distinguish stroke uniforms from fill uniforms 2022-12-28 19:17:52 -08:00
8fc243e398 Make anti_alias_width a Mobject uniform, rather than a camera attribute 2022-12-28 18:52:05 -08:00
6204011fe4 Don't check point equality in triggers_refreshed_triangulation 2022-12-28 10:15:03 -08:00
966e2c9790 Update VMobject.has_fill and has_stroke 2022-12-27 22:18:54 -08:00
816f6eb297 Use ShaderWrapper.read_in instead of combine_with
Improves speed
2022-12-27 21:40:34 -08:00
6044e475a4 Tiny VMobject.has_stroke update 2022-12-27 19:12:55 -08:00
8c44834554 Compute triangulation before replicating 2022-12-27 19:12:36 -08:00
6d50be55d3 Small inconsequential edits to get_triangulation 2022-12-27 15:54:12 -08:00
f2859a9a8c Give default curve orientation of 1 2022-12-27 15:53:24 -08:00
62c9e2b58f Fix data["orientation"] alignment issue a separate way 2022-12-23 18:09:09 -07:00
580d57a45c Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:44:00 -07:00
dd2fb6ae74 Delete refresh_unit_normal 2022-12-23 10:23:57 -07:00