Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.78 KB

File metadata and controls

74 lines (50 loc) · 1.78 KB
Error in user YAML: (<unknown>): found a tab character that violate indentation while scanning a plain scalar at line 3 column 3
---
- oeasy Python 0704
- 这是 oeasy 系统化 Python 教程,从基础一步步讲,扎实、完整、不跳步。愿意花时间学,就能真正学会。
- 本教程同步发布在: 
	- 个人网站: `https://oeasy.org` 
	- 蓝桥云课: `https://www.lanqiao.cn/courses/3584` 
	- GitHub: `https://github.com/overmind1980/oeasy-python-tutorial` 
	- Gitee: `https://gitee.com/overmind1980/oeasypython` 
---

修改模型的方法

回忆上次内容

  • 惠特沃斯

    • 把‘差不多’赶出工业史的人”
    • 用标准驯服了制造的不确定性
  • 他没有直系子女

    • 将绝大部分巨额财富投入公益信托
    • 设立惠特沃斯奖学金
    • 由英国机械工程师学会(IMechE)管理
      • 资助顶尖工程学生

图片描述

  • 我们可以让这个螺钉变弯吗?🤔
import bpy

bpy.ops.object.select_all(action="SELECT")
bpy.ops.object.delete()
bpy.ops.mesh.primitive_monkey_add(size=2, enter_editmode=False, align='WORLD', location=(0, 0, 0))
bpy.ops.object.modifier_add(type='SIMPLE_DEFORM')
bpy.context.object.modifiers["SimpleDeform"].angle = 1

变型器

  • 给 对象 添加 变型器
    • 变型类 deform
    • 简单变型 simple deform

图片描述

图片描述

弯曲

  • Bend
    • X 轴向 正值

图片描述

  • 反方向练习

图片描述

  • 还可以试试yz方向的弯曲

总结

  • 下次再说!👋

  • 本文来自 oeasy Python 系统教程。
  • 想完整、扎实学 Python,
  • 搜索 oeasy 即可。