346 Commits

Author SHA1 Message Date
f4c50f61b8 Change rgbas -> rgba 2023-01-15 16:46:03 -08:00
2815f60616 First pass at changing data to structure numpy array
This doesn't yet tackle Surface
2023-01-15 16:05:18 -08:00
286b8fb6c3 Set the stage for data to be treated as a structure numpy array 2023-01-15 12:34:59 -08:00
da15eb4ad2 Remove a few direct references to data["points"] 2023-01-15 10:00:05 -08:00
4582f5d331 Clean up sort_faces_back_to_front 2023-01-14 16:03:27 -08:00
3555936c4d Check for valid inputs to arccos 2023-01-13 21:42:54 -08:00
dae51abc17 Allow for a clip plane with Surface 2023-01-13 21:42:34 -08:00
12c3af9647 Update to get_subpath_end_indices_from_points 2023-01-13 20:35:54 -08:00
071e7f1a74 Small tweak for get_joint_angles 2023-01-13 20:33:36 -08:00
e832bb775f Fix small bug with null triangles 2023-01-13 16:53:22 -08:00
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
cbfe82579f Make sure VMobject.reverse_points works with new path convention 2023-01-13 14:16:04 -08:00
a88b56bb04 Be sure get_triangulation is called before orientation data is read in 2023-01-13 13:22:06 -08:00
42d612f253 Clean up VMobject.get_joint_angles 2023-01-13 09:57:22 -08:00
c9a2971433 Remove stray constant 2023-01-12 23:58:49 -08:00
a12b5cca67 Add angle check in addition to use_simple_quadratic_approx 2023-01-12 23:58:43 -08:00
aa8fba5b02 Change subdivide_intersections default to one subdivision, remove second check 2023-01-12 23:58:19 -08:00
a44fc2e6d5 Add optional number of subdivision to subdivide_intersections 2023-01-12 23:45:03 -08:00
190b9e4603 Tiny tweak 2023-01-12 21:24:34 -08:00
9f1ab09749 Make usage of simpler quadratic approximations an option for VMobject 2023-01-12 21:06:35 -08:00
a2f3758a7a Add VMobject.subdivide_intersections 2023-01-12 21:05:19 -08:00
a47b95044d Add assertions to assure VMobject has a valid number of points 2023-01-12 19:31:08 -08:00
db8b0e7bce Change simple quadratic approximation threshold 2023-01-12 19:24:56 -08:00
644ea41443 Default to simpler quadratic approximation of cubic beziers 2023-01-12 18:29:19 -08:00
9464f83d18 Track indices for fill shader, but prevent ibo usage at the Camera level 2023-01-12 15:56:44 -08:00
a07701e295 Use triangle strip for stroke shader 2023-01-12 15:56:12 -08:00
9320dad45f Have get_subpath_end_indices_from_points ask for exact equality between h and a0 2023-01-12 11:54:25 -08:00
ab30f085b4 Simpler VMobject.get_num_curves 2023-01-12 10:40:18 -08:00
7d90a82317 Fix fill shader vert data 2023-01-12 10:13:42 -08:00
a8fb05a44a Don't use index buffer for fill
It turns out to be strangely slower
2023-01-12 00:23:22 -08:00
c0b3c246de Revert "Revert "Go back to fill shader tracing vertex index manually""
This reverts commit 387de61119ea13b63d68c8e56a776717b99f2a8c.
2023-01-12 00:16:05 -08:00
ae42f6244e Don't use an index buffer for stroke 2023-01-12 00:14:07 -08:00
f04d0ad350 Update add_cubic_bezier_curve 2023-01-11 20:27:37 -08:00
61437b2a7f Remove (no longer used) n_points_per_curve 2023-01-11 19:53:00 -08:00
5d7e923ac6 Remove stray imports 2023-01-11 19:40:21 -08:00
032a8fd030 Save answer for VMobject.get_outer_vert_indices 2023-01-11 16:25:42 -08:00
387de61119 Revert "Go back to fill shader tracing vertex index manually"
This reverts commit 7847ff1a9db93316cf7ba4985487f82d2836d840.
2023-01-11 16:22:12 -08:00
7847ff1a9d Go back to fill shader tracing vertex index manually 2023-01-11 15:32:27 -08:00
f2370afea0 Treat stroke indices properly 2023-01-11 15:20:05 -08:00
da125c1072 Add saved outer_vert_indices 2023-01-11 14:42:06 -08:00
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
b967c04c2c Actually ensure get_joint_angle works for start_new_path case 2023-01-10 18:33:49 -08:00
0205a37209 More tiny tweaks for joint_angles 2023-01-10 17:02:12 -08:00
eccaa8681e Ensure get_joint_angles works in start-new-path case 2023-01-10 16:48:08 -08:00
9d9e000c63 Remove stray line 2023-01-10 16:41:12 -08:00
886fd193f0 Use three shader wrappers to account for backstroke 2023-01-10 16:41:03 -08:00
470e7bee1e Recompute joint angle at the end of align_points 2023-01-10 16:01:52 -08:00
22420b7724 Ensure joint angles are computed (if need be) during interpolation 2023-01-10 15:32:31 -08:00
e189df81b1 Change default endpoint angle to be 0 2023-01-10 15:32:05 -08:00
6ec3d9f4a5 Add 'no_joint' to joint types 2023-01-10 11:06:41 -08:00