154 Commits

Author SHA1 Message Date
66817c4e2b Add alternate smoothing options 2021-02-05 16:29:07 -08:00
25cd846356 Fix and simplify get_smooth_quadratic_bezier_handle_points so that VMobject.make_smooth works better 2021-02-05 15:25:17 -08:00
f05f94fbf5 spreading the change onto 2 more decorators 2021-02-05 11:52:21 +01:00
5eafed2c31 Make ParametricSurface a subclass of Surface, and reframe other 3d mobjects to subclass Surface instead of ParametricSurface 2021-02-04 12:36:35 -08:00
f13c41bcbb DotCloud improvements 2021-02-03 15:58:27 -08:00
7dffa24acd Only reorient points for triangulation if the normal vector is not OUT 2021-02-03 14:18:58 -08:00
59af903f14 Reorganize the interaction between CameraFrame and shader perspective transforms, along with some keyboard interactions for panning 2021-01-18 16:39:29 -08:00
9c524fe3a7 Be sure Mobject.set_points and Mobject.set_data returns self 2021-01-18 08:06:33 -10:00
86bfa4c39c Improvements to DotCloud 2021-01-17 13:40:52 -10:00
d4c89e520f Reorganize methods and how triangulation gets refreshed 2021-01-15 08:55:19 -10:00
7b67f4556b Reorganize Mobject methods and remove ones that are not longer needed 2021-01-14 14:15:58 -10:00
d53dbba346 Always call super for init_data 2021-01-14 01:01:13 -10:00
38b305bb19 Fix issue with pointwise_become_partial 2021-01-13 09:21:22 -10:00
00333d0a4d Bug fix 2021-01-13 00:09:56 -10:00
d60ec48591 Track/interpolate uniforms the same way data is 2021-01-12 12:15:32 -10:00
ba8fb4a6b7 check_data_alignment by default 2021-01-12 11:21:57 -10:00
ca1c2f7797 Return unit normal as 1d vector 2021-01-12 11:13:41 -10:00
0d238417cb Allow locking data to speed up some animations 2021-01-12 11:09:53 -10:00
ddfc3a6567 Replace lingering .points references 2021-01-12 07:27:32 -10:00
6b29691e0e Allow setting of multiple colors/opacities/stroke_widths 2021-01-11 17:52:48 -10:00
6b451dcc22 Allow Mobject.get_family(recurse) for common recursive methods 2021-01-11 17:03:12 -10:00
4d9498322e Push more color functionality to Mobject 2021-01-11 16:37:51 -10:00
c408adeefa Rework DotCloud and PMobject for new data structure 2021-01-11 12:40:21 -10:00
30dc8176ff Remove append_points from VMobject, as it's now up in Mobject 2021-01-11 12:39:45 -10:00
96fbac85ad Setup Image/Surface for new data formatting 2021-01-11 12:39:14 -10:00
9314dfd933 Reframe Mobject, VMobject and SurfaceMobject with a data map 2021-01-11 10:57:23 -10:00
b3335c65fb Partial progress 2021-01-10 18:51:47 -08:00
bf73938fd1 Move joint type map to constants 2021-01-10 14:10:31 -08:00
9a1e103a7f Introduce flat_stroke uniform 2021-01-08 22:26:47 -08:00
065df65cf1 Reorganize how shader files sit in the shaders folder 2021-01-05 23:14:16 -08:00
dde085094f Refresh triangulation after general functions 2021-01-05 22:00:52 -08:00
349a9c9cea Add VMobject.get_opacity 2021-01-05 18:00:55 -08:00
131794e53c Change DotCloud initialization 2021-01-04 14:55:42 -08:00
a4ea4791e7 Added DotCloud type 2021-01-04 13:26:58 -08:00
31e6aa2ae0 Use super() 2021-01-04 13:25:42 -08:00
156ea11537 Fix the but for transforming between VMobjects with different triangulations. Turns out this is all that's needed 2021-01-03 17:17:20 -08:00
23f7bce427 Bug fix to add_smooth_curve_to 2021-01-01 20:12:34 -08:00
b64875fd55 Typo fix for primitive 2020-12-04 08:12:53 -08:00
2dac041006 Change default smoothing algorithm 2020-08-20 17:16:15 -07:00
537a2c74aa Return self on unlock_triangulation 2020-08-16 09:46:33 -07:00
dd6e99ab2e Make it possible to set a prefered direction for ShowCreation on surfaces 2020-08-16 09:46:08 -07:00
ae590e7fde Add point_to_rgb 2020-08-12 13:23:21 -07:00
72472c5836 Refactor in terms of a ShaderWrapper object 2020-07-22 18:21:42 -07:00
5ee4b94ec3 Not great, but adding an alternate implementation of make_smooth in as a comment just because it's unclear what's best right now 2020-07-22 18:18:29 -07:00
46b52a1bbc Small fix to VMobject.pointwise_become_partial for cases when points array sizes dont' match 2020-06-29 22:53:23 -07:00
5e7913fdd4 Implemented pointwise_become_partial for parametric surfaces 2020-06-29 22:52:27 -07:00
2671817ae9 Refactor away from treating shader_info as a dictionary, and make it a proper type as ShaderWrapper. This also includes some cleanup in hos Camera renders 2020-06-29 18:17:18 -07:00
2b3bd2bfce Use an index buffer for shaders to save memory 2020-06-29 11:05:09 -07:00
8af879236e Make gloss and shadow uniforms 2020-06-28 12:13:25 -07:00
14cac5ce71 Make stroke width array a float 2020-06-28 10:04:40 -07:00