Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Implement ImplicitFunction#1727

Merged
3b1b merged 2 commits into3b1b:masterfrom
YishiMichael:implicit-func
Feb 7, 2022
Merged

Implement ImplicitFunction#1727
3b1b merged 2 commits into3b1b:masterfrom
YishiMichael:implicit-func

Conversation

@YishiMichael
Copy link
Contributor

Motivation

Implement ImplicitFunction class using isosurfaces package. This is borrowed from manim community edition.

Proposed changes

  • M manimlib/mobject/functions.py: implement ImplicitFunction
  • M requirements.txt: add dependency
  • M setup.cfg: add dependency

Test

Code:

class FuncTest(Scene):
    def construct(self):
        graph = ImplicitFunction(
            lambda x, y: x * y ** 2 - x ** 2 * y - 2,
            color=YELLOW
        )
        self.add(NumberPlane(), graph)

Result:
FuncTest

@TonyCrane TonyCrane requested a review from 3b1b February 5, 2022 14:21
@3b1b
Copy link
Owner

3b1b commented Feb 7, 2022

Nice, thank you!

@3b1b 3b1b merged commit baba692 into 3b1b:master Feb 7, 2022
@YishiMichael YishiMichael deleted the implicit-func branch February 8, 2022 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants