提交 c54137c1 编写于 作者: M march3

三体运行模拟器

上级 d40907cc
# -*- coding:utf-8 -*-
# title :
# description :
# author :Python超人
# date :2023-01-22
# notes :
# python_version :3.8
# ==============================================================================
from bodies import Sun, Earth
from common.consts import SECONDS_PER_WEEK
from scenes.func import mayavi_run
if __name__ == '__main__':
"""
太阳、地球
"""
bodies = [
Sun(size_scale=1.2e2, texture='douyin.jpg'), # 太阳放大 120 倍
Earth(size_scale=4e3, texture='pythoncr.jpg', distance_scale=1), # 地球放大 4000 倍,距离保持不变
]
mayavi_run(bodies, SECONDS_PER_WEEK, view_azimuth=-45)
textures/sun1.jpg

46.5 KB | W: | H:

textures/sun1.jpg

35.8 KB | W: | H:

textures/sun1.jpg
textures/sun1.jpg
textures/sun1.jpg
textures/sun1.jpg
  • 2-up
  • Swipe
  • Onion skin
因为 它太大了无法显示 image diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册