MatheMatica 绘制鸟巢体育馆
2025-9-6
| 2025-11-14
Words 220Read Time 1 min
type
status
date
slug
summary
tags
category
icon
password

背景

YouTube 上刷到一个用 manim 做的实验动画——3D 图形投影到 xy 平面,效果挺有意思。其数学原理是使用三角函数绘制凸凹的椭圆曲线,最近在学 MatheMatica,拿它来练练手。不过光是照搬太单调,不如发挥一下,把它变成一个“鸟巢”造型。
fig.1 A 3D graph projected onto the xy-plane
fig.1 A 3D graph projected onto the xy-plane
fig.2 鸟巢图(来源:光明网)
fig.2 鸟巢图(来源:光明网)
 

绘制流程

最好先搞清几个关键形状的数学原理,比如中间内凹的椭圆、穿过四个点的曲线等。
page icon
mathematica 绘制中间内凹的椭圆
椭圆绘制基于参数方程 r(t)=( 2 cos(t), 2 sin(t), 0.5 sin(2 t) + 2 ) ,通过调整参数即可得到不同的形态。
该椭圆由参数方程 r(t)=(2cos⁡t,2sin⁡t,0.5sin⁡(2t)+2)r(t)=(2cost,2sint,0.5sin(2t)+2) 通过调整参数生成。
notion image
notion image
page icon
mathematica 绘制鸟巢几条主要的轮廓线
notion image
notion image
 
page icon
mathematica 四段曲线上分别选取一个点,连接成线
 
notion image
notion image
 
 
page icon
mathematica 四段曲线上分别选取一个点,直线替换为曲线
 
notion image
notion image
page icon
mathematica 四段曲线上分别选取一个点,添加两个辅助点,直线替换为曲线
 
notion image
notion image
page icon
mathematica 绘制一圈曲线
 
notion image
notion image
page icon
mathematica 以此类推,绘制更多
notion image
notion image
page icon
mathematica 调整下图形
notion image
 
notion image
page icon
mathematica 随机添加一些横线
notion image
notion image
最终效果:
notion image
借助 Ai 工具,一步步很容易实现最后的效果,也了解 Mathematica 在 3d 方面使用方法,但最终效果还是过于有规律,mark 一下,后续尝试在 manim 实现这个效果。
 

参考资源

 
 
  • 动画
  • 建站之初QML 国际化(i18n)实现思路
    Loading...