mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Better align SurfaceMesh to the corresponding surface polygons
This commit is contained in:
parent
d2182b9112
commit
eea3c6b294
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ class SurfaceMesh(VGroup):
|
||||||
# 'indices' are treated as floats. Later, there will be
|
# 'indices' are treated as floats. Later, there will be
|
||||||
# an interpolation between the floor and ceiling of these
|
# an interpolation between the floor and ceiling of these
|
||||||
# indices
|
# indices
|
||||||
u_indices = np.linspace(0, full_nu, part_nu)
|
u_indices = np.linspace(0, full_nu - 1, part_nu)
|
||||||
v_indices = np.linspace(0, full_nv, part_nv)
|
v_indices = np.linspace(0, full_nv - 1, part_nv)
|
||||||
|
|
||||||
points, du_points, dv_points = uv_surface.get_surface_points_and_nudged_points()
|
points, du_points, dv_points = uv_surface.get_surface_points_and_nudged_points()
|
||||||
normals = uv_surface.get_unit_normals()
|
normals = uv_surface.get_unit_normals()
|
||||||
|
|
Loading…
Add table
Reference in a new issue