Cylinder and cone

Cylinder and cone preview
remixableManimCE3Dvolumeturntable

manim/cylinder_cone.py

"""Cylinder and cone: a cone standing inside a cylinder it fills a third of.

The one solid in the kit you can see into. The cylinder is translucent so
the cone shows through it, which also means no layer here culls: with
nothing fully hidden, the mesh has no back half to drop.

Render (the driver does this for every palette; these are for eyeballing):
    P=/opt/homebrew/opt/python@3.11/bin/python3.11
    ASSET_MODE=still  $P -m manim -s -t -r 1600,1600 manim/cylinder_cone.py CylinderCone
    ASSET_MODE=motion $P -m manim -qh   -r 1080,1080 manim/cylinder_cone.py CylinderConeLoop
"""

import numpy as np
from manim import (
    DOWN,
    LEFT,

The full Manim source and the rendered video come with a plan.