502 Commits

Author SHA1 Message Date
43f1704f69 Fix computation of joint_angles to handle zero division case 2024-08-21 13:44:00 -05:00
941513d68c Only recompute VMobject.get_unit_normal as needed 2024-08-21 12:26:42 -05:00
9a5386b022 Instead of passing in joint_products to stroke shader, just track joint_angles and pass in global unit normal 2024-08-21 11:59:48 -05:00
748780378b Have stroke_behind default to True for VMobjects with fill and no stroke 2024-08-21 08:43:57 -05:00
d0cb5b4eea Fix normal orientation on Surface 2024-08-20 14:47:47 -05:00
910f28f52e Don't have a default flat stroke in set_style 2024-08-20 12:13:18 -05:00
7474ae17b0 Change default to flat stroke, except in 3d situations 2024-08-20 11:52:05 -05:00
0414f8786c Use Mobject.set_uniform to reassign flat_stroke 2024-08-20 11:35:42 -05:00
e0191d81d9 Instead of tracking _shaders_initialized, just check if self.shader_wrapper is None 2024-08-20 10:48:43 -05:00
b9645ad196 Only update shader wrapper when stroke_behind genuinely changes 2024-08-20 10:00:52 -05:00
f12b143d16 Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids 2024-08-20 08:53:51 -05:00
b288d5301e Get rid of cached _has_stroke and _has_fill parameters 2024-08-19 17:27:47 -05:00
c064b11e2a Interleave base_point and unit_normal in the same array 2024-08-19 16:50:49 -05:00
09d147c8ef Set default border width to 0.5, and keep it for opacities < 1 2024-08-19 14:35:19 -05:00
a12fa0c03d Remove attributes from VMobject which are now handled in VShaderWrapper 2024-08-19 10:04:28 -05:00
4174f314b4 Reorganize, and ensure get_shader_wrapper_list works for general Groups 2024-08-19 09:17:58 -05:00
f2bca0045f Add border width and backstroke 2024-08-19 08:18:45 -05:00
24b160f9f9 Update VMobject shader wrapper
Use a combined VBO
Render with TRIANGLE_STRIP, and ignore every other
2024-08-19 08:05:32 -05:00
0efa96e399 Just use L-inf norm for point equality 2024-08-16 16:18:37 -05:00
bb42b66201 Include fill border width in style 2024-08-16 15:21:20 -05:00
108db87087 Rather than ignoring border with for non-one opacity, go back to having set_fill default to setting 0 border width for intermediate opacities 2024-08-16 12:38:11 -05:00
902a4f264e Add white space after assert statements 2024-08-16 12:15:55 -05:00
3f15715ff1 Use _data_defaults for initializing fill border width 2024-08-16 12:10:37 -05:00
430a88cf13 Change default border width to 0, and only draw it for opacity 1 2024-08-16 12:05:47 -05:00
59235d3eed Include flat stroke in get_style, set_style, match_style 2024-08-15 15:37:55 -05:00
bf43a648a4 Allow for setting flat stroke in VMobject.set_stroke 2024-08-07 14:54:37 -05:00
0dcf630222 Change default to non-flat stroke rendering 2024-08-07 11:23:37 -05:00
44ec9933b7 Small format fix 2024-08-06 10:39:23 -05:00
4ff61ed561 Default approximate smoothing (non-approx has a bug in 3d) 2024-08-06 10:27:35 -05:00
2b6ec2d95f Add spacing on assert lines 2024-08-05 15:01:20 -05:00
5decf810e7 Change default anti_alias_width to 1.5 2024-08-01 07:41:45 -05:00
0509e824c6 Have border_width default to 0 for lower opacity 2024-03-21 14:36:06 -03:00
fa99eafe2b Account for rgba case in point_to_rgb 2024-03-16 11:10:42 -03:00
1372cf101c Allow VGroup and Group to accept generators and iterables as arguments 2024-03-07 09:23:02 -03:00
4ce8a3ba9d Fix computation of normals for Surface 2024-02-13 14:48:00 -06:00
2966f358a3 Pull type definitions used for Generic[SubmobjectType] outside of if TYPE_CHECKING block 2024-02-08 14:43:37 -06:00
100b108ad1 Treat Group and VGroup more like list types
This may not be the best way to address it, but at least temporarily it prevents linting issues for calls like VGroup(Circle())[0].get_radius()
2024-02-05 15:02:13 -06:00
7009f0f53e Add space after assert 2024-02-03 19:11:18 -06:00
916ab94efd Remove white space 2023-10-09 14:17:44 -05:00
39e5d24858 Factor out partial results from point_from_proportion 2023-09-04 21:16:18 -07:00
295a0f76cc Formatting tweak 2023-09-04 21:15:53 -07:00
2b00a9cf80 Fix add_curve_to 2023-09-04 21:15:43 -07:00
5f41e238ba Improve VMobject.add_arc_to 2023-09-04 20:49:36 -04:00
690eb24562 Add VMobject.add_arc_to method 2023-09-04 19:31:40 -04:00
0a642133ad Add scale_radii method for DotCloud 2023-09-04 18:46:28 -04:00
eafd09549d Handle make_jagged for empty VMobjects 2023-08-15 20:40:01 -07:00
f2ad9a70f7 Small format fix 2023-08-15 20:39:27 -07:00
3e64111952 Change default on VMobject to no depth test 2023-06-10 09:22:55 -07:00
6f8ea7433d Small formatting tweaks 2023-06-10 09:22:34 -07:00
bae3b98c0b Fixes to Surface 2023-06-10 09:22:15 -07:00