Commit graph

1282 commits

Author SHA1 Message Date
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
470e7bee1e Recompute joint angle at the end of align_points 2023-01-10 16:01:52 -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
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
dcb166e21b Refresh joint_angles on almost any change 2023-01-09 20:30:29 -08:00
Grant Sanderson
98e358f87d Move a line 2023-01-09 20:10:34 -08:00
Grant Sanderson
494e04405c Refresh all family shader data in align_data 2023-01-09 20:10:06 -08:00
Grant Sanderson
d1c765353d Small comment change 2023-01-09 11:56:27 -08:00
Grant Sanderson
fc86bf7f9e Specify that uniforms can be numpy arrays 2023-01-09 11:56:21 -08:00
Grant Sanderson
80c0e88133 Put joint_angle information in VMobject.data 2023-01-09 10:08:03 -08:00
Grant Sanderson
2bf1f5eb40 Make sure pointwise_become_partial doesn't needlessly refresh joint angles 2023-01-08 21:29:35 -05:00
Grant Sanderson
21051ce289 Performance improvement for get_joint_angles 2023-01-08 21:29:08 -05:00
Grant Sanderson
d5fdc75164 Remove the need to track previous and next joints in stroke shader 2023-01-08 20:29:31 -05:00
Grant Sanderson
9b2495abb1 Remove "orientation" from locked_keys when recomputed
Rather than re-reading into fill_data
2023-01-05 08:46:12 -05:00
Grant Sanderson
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
Grant Sanderson
1cf89abf53 No need to track vertex index manually 2023-01-04 16:39:59 -08:00
Grant Sanderson
3aa9eb6372 Add String.get_symbol_substrings and Tex.get_symbol_substrings 2022-12-30 15:07:41 -08:00
Grant Sanderson
66f0a57c6b Clean up looks_identical 2022-12-29 20:58:37 -08:00
Grant Sanderson
7895a2cfee No need to immediately compute triangulation for SVG paths 2022-12-29 20:51:00 -08:00
Grant Sanderson
5d87f3f954 Update parents of new_mob in Mobject.replace 2022-12-29 19:42:54 -08:00
Grant Sanderson
4db01fd221 Fix Mobject.looks_identical 2022-12-29 18:53:06 -08:00
Grant Sanderson
5c33c7e4a8 Remove "None" output type for set_animating_status 2022-12-29 18:52:37 -08:00
Grant Sanderson
0f9adbf91c Add Tex.make_number_changable 2022-12-29 18:52:00 -08:00
Grant Sanderson
d6d75d8f9a Change from np.all(arr) to arr.all() 2022-12-29 15:50:35 -08:00
Grant Sanderson
2dbb9367c4 Default to removing null curves 2022-12-29 15:40:32 -08:00
Grant Sanderson
4bc7e3a8f2 Remove redundant long_line specification 2022-12-29 15:40:18 -08:00
Grant Sanderson
13fc8daba9 Extend StringMobject.select_unisolated_substring to work for regular expressions 2022-12-29 14:18:46 -08:00
Grant Sanderson
3165a28cd0 Clean up and fix VMobject.get_shader_wrapper_list 2022-12-29 12:04:01 -08:00
Grant Sanderson
3738f0a48e Add Mobject.has_same_shape_as 2022-12-29 12:02:28 -08:00
Grant Sanderson
9018357d20 Fix Mobject.looks_identical 2022-12-29 12:02:20 -08:00
Grant Sanderson
53f19b6620 Remove @staticmethod from @wraps functions 2022-12-28 21:36:21 -08:00
Grant Sanderson
4c39c1abd6 Use arr.all() instead of np.all(arr) 2022-12-28 21:06:51 -08:00
Grant Sanderson
d6b308ed47 Update elements of VMobject.shader_wrapper_list with depth_test and appropriate uniforms 2022-12-28 19:40:33 -08:00
Grant Sanderson
cc9a4501ad Have **kwargs in matrix pass on to elements 2022-12-28 19:40:02 -08:00
Grant Sanderson
a6ee54488b Add deep option to VMobject.copy 2022-12-28 19:22:41 -08:00
Grant Sanderson
4f37486655 Have VMobject keep track of a shader_wrapper_list 2022-12-28 19:18:20 -08:00
Grant Sanderson
a92a506224 Don't distinguish stroke uniforms from fill uniforms 2022-12-28 19:17:52 -08:00
Grant Sanderson
8fc243e398 Make anti_alias_width a Mobject uniform, rather than a camera attribute 2022-12-28 18:52:05 -08:00
Grant Sanderson
c7ba775845 In StringMobject.select_parts, default to using select_unisolated_substring if substring was not explicitly isolated 2022-12-28 13:39:13 -08:00
Grant Sanderson
6204011fe4 Don't check point equality in triggers_refreshed_triangulation 2022-12-28 10:15:03 -08:00
Grant Sanderson
a6e21b2ccd Change Mobject.append_points
For future plans, it may be nicest for data["points"] to only ever get redefined by Mobject.resize_points
2022-12-28 09:22:22 -08:00
Grant Sanderson
97be203b57 Add type hint 2022-12-28 08:45:18 -08:00