Sideway
output.to from Sideway
Draft for Information Only

Content

Manim Three Dimension
 Codes in Three_dimensions.py
  Import
  Class ThreeDVMobject(VMobject)
   Configuration
  Class ParametricSurface(VGroup)
   Configuration
   Functions
  Class Sphere(ParametricSurface)
   Configuration
   Functions
  Class Cube(VGroup)
   Configuration
   Functions
  Class Prism(Cube)
   Configuration
   Functions
 Source and Reference

Manim Three Dimension

The three dimension VMobject object in Manim is defined in three_dimensions.py.

Codes in Three_dimensions.py

Available codes defined in manimlib.mobject.three_dimensions.py

image

Five classes, ThreeDVMobject, ParametricSurface, Sphere, Cube and Prism are defined.

Import

from manimlib.constants import *
from manimlib.mobject.geometry import Square
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.utils.iterables import tuplify
from manimlib.utils.space_ops import z_to_vector

Class ThreeDVMobject(VMobject)

class manimlib.mobject.three_dimensions.ThreeDVMobject(VMobject)version 19Dec2019

Configuration

    CONFIG = {
        "shade_in_3d": True,
    }

Class ParametricSurface(VGroup)

class manimlib.mobject.three_dimensions.ParametricSurface(VGroup)version 19Dec2019

Configuration

    CONFIG = {
        "u_min": 0,
        "u_max": 1,
        "v_min": 0,
        "v_max": 1,
        "resolution": 32,
        "surface_piece_config": {},
        "fill_color": BLUE_D,
        "fill_opacity": 1.0,
        "checkerboard_colors": [BLUE_D, BLUE_E],
        "stroke_color": LIGHT_GREY,
        "stroke_width": 0.5,
        "should_make_jagged": False,
        "pre_function_handle_to_anchor_scale_factor": 0.00001,
    }

Functions

  • def __init__(self, func, **kwargs)
  • def get_u_values_and_v_values(self)
  • def setup_in_uv_space(self)
  • def set_fill_by_checkerboard(self, *colors, opacity=None)

Class Sphere(ParametricSurface)

class manimlib.mobject.three_dimensions.Sphere(ParametricSurface)version 19Dec2019

Configuration

    CONFIG = {
        "resolution": (12, 24),
        "radius": 1,
        "u_min": 0.001,
        "u_max": PI - 0.001,
        "v_min": 0,
        "v_max": TAU,
    }

Functions

  • def __init__(self, **kwargs)
  • def func(self, u, v)

Class Cube(VGroup)

class manimlib.mobject.three_dimensions.Cube(VGroup)version 19Dec2019

Configuration

    CONFIG = {
        "fill_opacity": 0.75,
        "fill_color": BLUE,
        "stroke_width": 0,
        "side_length": 2,
    }

Functions

  • def generate_points(self)

Class Prism(Cube)

class manimlib.mobject.three_dimensions.Prism(Cube)version 19Dec2019

Configuration

    CONFIG = {
        "dimensions": [3, 2, 1]
    }

Functions

  • def generate_points(self)

Source and Reference

https://github.com/3b1b/manim19Dec2019

©sideway

ID: 210700024 Last Updated: 7/24/2021 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 224

Software

Application 213

Digitization 32

Latex 52

Manim 204

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 33

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2022 Sideway . All rights reserved Disclaimers last modified on 06 September 2019