mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Default to non-flat stroke for meshes
This commit is contained in:
parent
72e5bde274
commit
44e5f15ae9
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ class SurfaceMesh(VGroup):
|
||||||
normal_nudge: float = 1e-2,
|
normal_nudge: float = 1e-2,
|
||||||
depth_test: bool = True,
|
depth_test: bool = True,
|
||||||
joint_type: str = 'no_joint',
|
joint_type: str = 'no_joint',
|
||||||
|
flat_stroke: bool = False,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
self.uv_surface = uv_surface
|
self.uv_surface = uv_surface
|
||||||
|
@ -51,6 +52,7 @@ class SurfaceMesh(VGroup):
|
||||||
joint_type=joint_type,
|
joint_type=joint_type,
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
self.set_flat_stroke(flat_stroke)
|
||||||
|
|
||||||
def init_points(self) -> None:
|
def init_points(self) -> None:
|
||||||
uv_surface = self.uv_surface
|
uv_surface = self.uv_surface
|
||||||
|
|
Loading…
Add table
Reference in a new issue