285 Commits

Author SHA1 Message Date
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
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
d8deec8f81 Revert back from the needs_new_unit_normal change in favor of recomputation 2022-12-19 18:17:25 -08:00
f158d3e751 Give unit_normal refreshing the same behavior as triangulation
That is, don't actually compute it until it needs to be. This is necessary so that VMobject.append_points can refresh both of those, without effecting SVG initialization.
2022-12-19 14:41:06 -08:00
07feb33cbb Merge pull request #1932 from 3b1b/kill-config
Kill config
2022-12-18 10:27:15 -08:00
26ff1a9716 Fix bug associated with GlowDot having None points list 2022-12-17 19:49:04 -08:00
3e8738de2a Fix output type of VMobject.get_subpaths_from_points 2022-12-17 18:04:55 -08:00
0e558db122 Add a few type hints to specify VMobject family always consists of VMobjects 2022-12-17 17:03:34 -08:00
534770180d Remove stray import 2022-12-17 13:16:55 -08:00
97f28b34f3 Distinguish Vect3 from Vect3Array types 2022-12-17 13:16:48 -08:00
dec11a4b17 Rename np_vector type to Vect3 or Vect4 to make context clearer 2022-12-16 20:35:26 -08:00
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00
2bab16133d Fix textured path bug 2022-12-16 15:04:15 -08:00
123f7e5a30 Better default color behavior 2022-12-16 14:48:13 -08:00
c6fc8dcf45 Remove stray import 2022-12-16 11:41:49 -08:00
880aaf913f Change default fill from WHITE to GREY_C 2022-12-16 09:56:29 -08:00
72aaed57d5 Push depth_test into __init__ args 2022-12-16 09:56:17 -08:00
37786edc99 Small type fix 2022-12-15 18:18:44 -08:00
00403fe5b4 Change default stroke color 2022-12-15 16:46:51 -08:00
da90c5e297 Allow for multivalued style arguments 2022-12-15 15:40:36 -08:00
588c3fce02 Allow style configuration to be None 2022-12-15 12:48:43 -08:00
d4b6bf40e5 Small type fixes 2022-12-15 10:17:57 -08:00
002129e7a2 Remove stray import 2022-12-15 10:17:43 -08:00
1aaa3b4ad5 Remove unnecessary import 2022-12-15 10:12:10 -08:00
6c4e028eab Kill CONFIG in surface.py 2022-12-15 10:11:50 -08:00
3a65eb4d2c Kill CONFIG in ImageMobject 2022-12-15 09:56:01 -08:00