1257 Commits

Author SHA1 Message Date
66f0a57c6b Clean up looks_identical 2022-12-29 20:58:37 -08:00
7895a2cfee No need to immediately compute triangulation for SVG paths 2022-12-29 20:51:00 -08:00
5d87f3f954 Update parents of new_mob in Mobject.replace 2022-12-29 19:42:54 -08:00
4db01fd221 Fix Mobject.looks_identical 2022-12-29 18:53:06 -08:00
5c33c7e4a8 Remove "None" output type for set_animating_status 2022-12-29 18:52:37 -08:00
0f9adbf91c Add Tex.make_number_changable 2022-12-29 18:52:00 -08:00
d6d75d8f9a Change from np.all(arr) to arr.all() 2022-12-29 15:50:35 -08:00
2dbb9367c4 Default to removing null curves 2022-12-29 15:40:32 -08:00
4bc7e3a8f2 Remove redundant long_line specification 2022-12-29 15:40:18 -08:00
13fc8daba9 Extend StringMobject.select_unisolated_substring to work for regular expressions 2022-12-29 14:18:46 -08:00
3165a28cd0 Clean up and fix VMobject.get_shader_wrapper_list 2022-12-29 12:04:01 -08:00
3738f0a48e Add Mobject.has_same_shape_as 2022-12-29 12:02:28 -08:00
9018357d20 Fix Mobject.looks_identical 2022-12-29 12:02:20 -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
cc9a4501ad Have **kwargs in matrix pass on to elements 2022-12-28 19:40:02 -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
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
6204011fe4 Don't check point equality in triggers_refreshed_triangulation 2022-12-28 10:15:03 -08:00
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
97be203b57 Add type hint 2022-12-28 08:45:18 -08:00
61155f5c72 Simplify Mobject.set_points 2022-12-28 08:45:05 -08:00
966e2c9790 Update VMobject.has_fill and has_stroke 2022-12-27 22:18:54 -08:00
e73ae78987 Update Mobject.has_points 2022-12-27 22:18:41 -08:00
816f6eb297 Use ShaderWrapper.read_in instead of combine_with
Improves speed
2022-12-27 21:40:34 -08:00
49d4472e7e Add StringMobject.get_specified_substrings 2022-12-27 19:13:09 -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
3bf5ce5776 Fix TexMobject.select_unisolated_substring for substrings with escape characters 2022-12-26 09:02:00 -07:00
db0770a4fd Remove **kwargs from Mobject.__init__ 2022-12-26 07:58:40 -07:00
a2bdf54025 Remove unused parameter 2022-12-26 07:58:30 -07:00
62c9e2b58f Fix data["orientation"] alignment issue a separate way 2022-12-23 18:09:09 -07:00
db52d0a73f Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:45:35 -07:00
580d57a45c Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:44:00 -07:00
7f203d1611 Remove triangulation cachine 2022-12-23 13:33:07 -07:00
dd2fb6ae74 Delete refresh_unit_normal 2022-12-23 10:23:57 -07:00
40bf1fd6a9 Stop tracking unit_normal in data
Track orientation of each curve instead
2022-12-23 10:08:23 -07:00
ef04b9eb01 Revert "Simplify get_unit_normal to always recompute"
This reverts commit 96d391d9fda4d692ba51cebc4ba4e802ec2d2ea0.
2022-12-22 18:07:46 -07:00
c36d178856 Trigger unit normal refresh for all bounding_box refreshes 2022-12-22 17:51:59 -07:00
96d391d9fd Simplify get_unit_normal to always recompute 2022-12-22 17:51:22 -07:00
8c5d4db411 Ensure VMobject.get_area_vector works with uneven number of points 2022-12-22 12:09:54 -07:00
b7d473ff43 Revert "Revert back from the needs_new_unit_normal change in favor of recomputation"
This reverts commit d8deec8f813166b9bf42960acb0f6da4349712e7.
2022-12-22 12:03:33 -07:00
5af4b9cc65 No need to refresh triangulation in flip 2022-12-22 11:52:30 -07:00
ff090c016f Use only anchors to compute area vector 2022-12-22 11:46:51 -07:00