mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +08:00
ParametricSurface parts should remember their coordinates
This commit is contained in:
@ -32,6 +32,7 @@ class ParametricSurface(VGroup):
|
|||||||
"stroke_color": LIGHT_GREY,
|
"stroke_color": LIGHT_GREY,
|
||||||
"stroke_width": 0.5,
|
"stroke_width": 0.5,
|
||||||
"should_make_jagged": False,
|
"should_make_jagged": False,
|
||||||
|
"pre_function_handle_to_anchor_scale_factor": 0.00001,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, func, **kwargs):
|
def __init__(self, func, **kwargs):
|
||||||
@ -70,6 +71,10 @@ class ParametricSurface(VGroup):
|
|||||||
faces.add(face)
|
faces.add(face)
|
||||||
face.u_index = i
|
face.u_index = i
|
||||||
face.v_index = j
|
face.v_index = j
|
||||||
|
face.u1 = u1
|
||||||
|
face.u2 = u2
|
||||||
|
face.v1 = v1
|
||||||
|
face.v2 = v2
|
||||||
faces.set_fill(
|
faces.set_fill(
|
||||||
color=self.fill_color,
|
color=self.fill_color,
|
||||||
opacity=self.fill_opacity
|
opacity=self.fill_opacity
|
||||||
|
Reference in New Issue
Block a user