Commit graph

2604 commits

Author SHA1 Message Date
Grant Sanderson
e832bb775f Fix small bug with null triangles 2023-01-13 16:53:22 -08:00
Grant Sanderson
31cc2671e5 Have line_intersects_path not assume closed path 2023-01-13 16:35:18 -08:00
Grant Sanderson
937b894826 Clean up find_intersection 2023-01-13 16:35:01 -08:00
Grant Sanderson
599f74c749 Refresh bounding boxes after selection 2023-01-13 14:59:53 -08:00
Grant Sanderson
91f976f7e9 Don't include bounding box in Mobject.data
In principle, Mobject.data should just carry information that will pass to shaders
2023-01-13 14:58:52 -08:00
Grant Sanderson
cbfe82579f Make sure VMobject.reverse_points works with new path convention 2023-01-13 14:16:04 -08:00
Grant Sanderson
ae99c8cd2e Go back to use_simple_quadratic_approx being set at the Text level 2023-01-13 14:08:29 -08:00
Grant Sanderson
da2b13aee9 Fix triangulation issue for Annulus 2023-01-13 13:22:26 -08:00
Grant Sanderson
a88b56bb04 Be sure get_triangulation is called before orientation data is read in 2023-01-13 13:22:06 -08:00
Grant Sanderson
73a894c136 Set selection animating status after adding mobjects 2023-01-13 13:07:29 -08:00
Grant Sanderson
c820cb4775 Don't propagate animating status to full extended family 2023-01-13 13:06:50 -08:00
Grant Sanderson
69ac946e63 Simpler get_gl_Position 2023-01-13 12:41:09 -08:00
Grant Sanderson
42d612f253 Clean up VMobject.get_joint_angles 2023-01-13 09:57:22 -08:00
Grant Sanderson
440138aac5 Allow for tracking which data keys should always have the same size as points 2023-01-13 09:47:06 -08:00
Grant Sanderson
108bb3da44 Have SVGs default to use_simple_quadratic_approx 2023-01-13 08:16:46 -08:00
Grant Sanderson
e1abae1d96 Fix typo 2023-01-13 00:24:26 -08:00
Grant Sanderson
c8a77a352f Fix Piano 2023-01-13 00:24:19 -08:00
Grant Sanderson
d2800b6c96 Make sure cross behaves as expected on 2d arrays 2023-01-13 00:05:29 -08:00
Grant Sanderson
c9a2971433 Remove stray constant 2023-01-12 23:58:49 -08:00
Grant Sanderson
a12b5cca67 Add angle check in addition to use_simple_quadratic_approx 2023-01-12 23:58:43 -08:00
Grant Sanderson
aa8fba5b02 Change subdivide_intersections default to one subdivision, remove second check 2023-01-12 23:58:19 -08:00
Grant Sanderson
2c6e8692ce Add condition for calling subdivide_intersections 2023-01-12 23:45:26 -08:00
Grant Sanderson
a44fc2e6d5 Add optional number of subdivision to subdivide_intersections 2023-01-12 23:45:03 -08:00
Grant Sanderson
190b9e4603 Tiny tweak 2023-01-12 21:24:34 -08:00
Grant Sanderson
f39fd92e9e Add condition to account for end of string 2023-01-12 21:24:27 -08:00
Grant Sanderson
f0edc6628b Push default of use_simple_quadratic_approx being True to Text 2023-01-12 21:24:03 -08:00
Grant Sanderson
9f1ab09749 Make usage of simpler quadratic approximations an option for VMobject 2023-01-12 21:06:35 -08:00
Grant Sanderson
a2f3758a7a Add VMobject.subdivide_intersections 2023-01-12 21:05:19 -08:00
Grant Sanderson
de4a56849e Add line_intersects_path 2023-01-12 21:04:46 -08:00
Grant Sanderson
923066db2b Minor style changes to stroke geom shader 2023-01-12 19:54:32 -08:00
Grant Sanderson
de5198196b Fix anti-alias width bug on DotCloud 2023-01-12 19:44:10 -08:00
Grant Sanderson
a47b95044d Add assertions to assure VMobject has a valid number of points 2023-01-12 19:31:08 -08:00
Grant Sanderson
db8b0e7bce Change simple quadratic approximation threshold 2023-01-12 19:24:56 -08:00
Grant Sanderson
dcdf74a715 Clean up stroke geometry shader to better function in 3d 2023-01-12 19:24:42 -08:00
Grant Sanderson
9778c3e085 Remove no-longer necessary correction for path ends 2023-01-12 18:29:44 -08:00
Grant Sanderson
644ea41443 Default to simpler quadratic approximation of cubic beziers 2023-01-12 18:29:19 -08:00
Grant Sanderson
9464f83d18 Track indices for fill shader, but prevent ibo usage at the Camera level 2023-01-12 15:56:44 -08:00
Grant Sanderson
a07701e295 Use triangle strip for stroke shader 2023-01-12 15:56:12 -08:00
Grant Sanderson
24afb2a24f Fix angle_between 2023-01-12 14:43:52 -08:00
Grant Sanderson
64578df603 Don't save SVG Path data to file
It's more trouble than it's worth
2023-01-12 13:23:48 -08:00
Grant Sanderson
e676bd957b Do inner joint angle computation in geom shader 2023-01-12 13:08:35 -08:00
Grant Sanderson
9320dad45f Have get_subpath_end_indices_from_points ask for exact equality between h and a0 2023-01-12 11:54:25 -08:00
Grant Sanderson
ab30f085b4 Simpler VMobject.get_num_curves 2023-01-12 10:40:18 -08:00
Grant Sanderson
f3e91db581 Small comment change 2023-01-12 10:39:50 -08:00
Grant Sanderson
04fd50491e More consistent corners computation for stroke geom shader 2023-01-12 10:14:14 -08:00
Grant Sanderson
7d90a82317 Fix fill shader vert data 2023-01-12 10:13:42 -08:00
LucaCappelletti94
1708fbd672 Updated tqdm to support also notebooks 2023-01-12 12:03:14 +01:00
Grant Sanderson
1a8e923ef2 Small speed ups 2023-01-12 00:40:27 -08:00
Grant Sanderson
a8fb05a44a Don't use index buffer for fill
It turns out to be strangely slower
2023-01-12 00:23:22 -08:00
Grant Sanderson
c0b3c246de Revert "Revert "Go back to fill shader tracing vertex index manually""
This reverts commit 387de61119.
2023-01-12 00:16:05 -08:00