139 Commits

Author SHA1 Message Date
db421e3981 Video work (#2318)
* Only use -no-pdf for xelatex rendering

* Instead of tracking du and dv points on surface, track points off the surface in the normal direction

This means that surface shading will not necessarily work well for arbitrary transformations of the surface. But the existing solution was flimsy anyway, and caused annoying issues with singularity points.

* Have density of anchor points on arcs depend on arc length

* Allow for specifying true normals and orientation of Sphere

* Change miter threshold on stroke shader

* Add get_start_and_end to DashedLine

* Add min_total_width option to DecimalNumber

* Have BackgroundRectangle.set_style absorb (and ignore) added configuration

Note, this feels suboptimal

* Add LineBrace

* Update font_size adjustment in Tex
2025-02-26 07:52:59 -08:00
744e695340 Misc. clean up (#2269)
* Comment tweak

* Directly print traceback

Since the shell.showtraceback is giving some issues

* Make InteracrtiveSceneEmbed into a class

This way it can keep track of it's internal shell; use of get_ipython has a finicky relationship with reloading.

* Move remaining checkpoint_paste logic into scene_embed.py

This involved making a few context managers for Scene: temp_record, temp_skip, temp_progress_bar, which seem useful in and of themselves.

* Change null key to be the empty string

* Ensure temporary svg paths for Text are deleted

* Remove unused dict_ops.py functions

* Remove break_into_partial_movies from file_writer configuration

* Rewrite guarantee_existence using Path

* Clean up SceneFileWriter

It had a number of vestigial functions no longer used, and some setup that could be made more organized.

* Remove --save_pngs CLI arg (which did nothing)

* Add --subdivide CLI arg

* Remove add_extension_if_not_present

* Remove get_sorted_integer_files

* Have find_file return Path

* Minor clean up

* Clean up num_tex_symbols

* Fix find_file

* Minor cleanup for extract_scene.py

* Add preview_frame_while_skipping option to scene config

* Use shell.showtraceback function

* Move keybindings to config, instead of in-place constants

* Replace DEGREES -> DEG
2024-12-12 08:39:54 -08:00
5d3f730824 Cleaning up some imports + Minor Bug fixed in VectorField (#2253)
* cleaning up imports

* sample_points -> sample_coords
2024-12-05 14:42:46 -08:00
1e996dcd27 Fix Arrow.set_perpendicular_to_camera 2024-08-28 11:56:25 -05:00
e85a1ce1b7 Add Arrow.set_perpendicular_to_camera 2024-08-28 10:50:51 -05:00
ceac4fbe1a Fix up FillArrow 2024-08-21 15:58:57 -05:00
22ee13a884 Have FillArrow take the place of StrokeArrow as the main Arrow 2024-08-21 14:52:54 -05:00
eea8416d57 Default to allowing null lines, except for SVGPaths 2024-08-21 14:44:33 -05:00
b3386ad7a7 Add an option for VMobject.add_line to add a null line 2024-08-21 14:29:40 -05:00
7474ae17b0 Change default to flat stroke, except in 3d situations 2024-08-20 11:52:05 -05:00
c20ce8d633 Have arrows default to flat stroke 2024-08-16 15:10:40 -05:00
17cd597904 Have Arrow track what stroke width it was set to 2023-11-06 12:33:26 -05:00
a8b1791ff5 Small tweaks to arrow tip implementation 2023-09-04 21:16:36 -07:00
b53ab02675 Simplify initialization of Line with path arc 2023-09-04 20:49:51 -04:00
60a4f0e167 Factor out Arc.create_quadratic_bezier_points to quadratic_bezier_points_for_arc 2023-09-04 19:08:13 -04:00
87e4a71ca3 Add surround method for Rectangles and SurroundingRectangles 2023-09-04 18:46:11 -04:00
d21b05ae0d Arrow fix 2023-08-15 20:37:54 -07:00
fc522e5278 Change width_to_tip_len -> tip_len_to_width 2023-08-15 20:37:13 -07:00
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
6a42ef846a Add Self type to geometry.py 2023-01-31 14:12:41 -08:00
8d72340501 Remove some references to triangulation 2023-01-28 12:43:56 -08:00
746b52cda5 Okay, actually fix Arrow 2023-01-26 23:51:05 -08:00
79039bde61 Fix Arrow 2023-01-26 23:42:03 -08:00
1367e31439 Fix bug with polygon start angle = 0 2023-01-19 09:50:41 -08:00
b16f0981f6 No need to set flat stroke defaults in Polygon/Polyline 2023-01-17 11:37:06 -08:00
90ac1fc0bf Rename 'points' -> 'point' 2023-01-15 18:23:41 -08:00
da2b13aee9 Fix triangulation issue for Annulus 2023-01-13 13:22:26 -08:00
1f04ba92fb Fix Polygon.round_corners 2023-01-11 20:47:04 -08:00
ed26fdfab8 Have Polyline default to flat stroke 2023-01-11 20:31:38 -08:00
8c435d6181 Default to flat stroke for polygons 2023-01-11 20:27:17 -08:00
31715ec98a Fix Arrow 2023-01-11 20:09:28 -08:00
a17a57825e Fix Annulus and sector 2023-01-11 20:01:54 -08:00
8a08b62f7c Remove n_points_per_curve reference 2023-01-11 19:52:33 -08:00
6a18a05a3b Fix arrow for new path behavior 2023-01-11 19:40:15 -08:00
55bc8464b9 Update Arc to make sense with new path structure 2023-01-11 14:19:57 -08:00
a2bdf54025 Remove unused parameter 2022-12-26 07:58:30 -07:00
8d05431b7b Add points in reverse order to AngularSector 2022-12-19 14:43:57 -08:00
c330dfddae Add space 2022-12-19 10:38:06 -08:00
d4a29df99c Remove needless data["points"] reference 2022-12-17 19:48:47 -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
afab37c2d2 Remove stray digest_config references 2022-12-16 11:00:59 -08:00
9e077b29db Specify fill_color/stroke_color instead of color 2022-12-16 09:55:50 -08:00
2a645b27f8 Kill CONFIG in geometry.py 2022-12-15 18:19:09 -08:00
a901704b31 Return self in Circle.surround 2022-12-14 14:39:57 -08:00
958002152e Define ManimColor type in constants 2022-12-14 10:55:32 -08:00
8adf99b8a7 Fix Circle.point_at_angle
https://github.com/3b1b/manim/issues/1875
2022-11-03 16:48:30 -07:00
07a8274cb1 Merge pull request #1821 from 3b1b/video-work
Video work
2022-05-24 15:20:07 -07:00
49723f54cb Add necessary imports (#1804)
* Add necessary imports

* Add necessary imports

* Add necessary imports

* Add `from __future__ import annotations`
2022-05-19 22:07:06 +08:00