资源简介
用blender打开ski模型文件的脚本
代码片段和文件信息
#!BPY
# Copyright (c) 2010 Rainer Kesselschlaeger
#
# Permission is hereby granted free of charge to any person obtaining a copy
# of this software and associated documentation files (the “Software“) to deal
# in the Software without restriction including without limitation the rights
# to use copy modify merge publish distribute sublicense and/or sell
# copies of the Software and to permit persons to whom the Software is
# furnished to do so subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
# IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
# LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# ***** END MIT LICENSE BLOCK *****
“““ Registration info for Blender menus
Name: ‘Equalize normals on adjacent faces‘
Blender: 249
Group: ‘object‘
Tooltip: ‘Equalize vertex normals on adjacent faces to make them appear virtually connected‘
“““
__author__= “Rainer Kesselschlaeger“
__email__ = [“katzeklick:gmx*de“]
__url__ = (“http://www.blender.org“ “http://www.texturu.org“)
__version__ = “v1.0“
__bpydoc__ = “““\
Equalizes vertex normals on adjacent faces to make them appear virtually connected.
Usage:
First select an object in object Mode then call this script from object menu.
The calculated vertex normals of this script remain only temporary because
Blender calculates them again at own will after various operations like
editing parts of a mesh - or even simply switching from Edit mode to
object Mode.
Because of that the main use of this script is preparing data for an
export or setup objects for nicer rendering.
“““
import Blender
from Blender import Window
# Helper: Make a copy of a mesh (only vertices and faces)
# this makes unlinking the mesh easier
# -----------------------------------------------------------------------------
def CopyMesh_VNF (srcMesh newName):
newMesh = Blender.Mesh.New(newName)
# Copy vertices
for vert in srcMesh.verts:
newMesh.verts.extend(vert.co)
vertex = newMesh.verts[-1]
vertex.no = vert.no
# Copy faces
for face in srcMesh.faces:
face_verts = (face.verts[0].index face.verts[1].index face.verts[2].index)
#print face_verts
newMesh.faces.extend(face_verts)
return newMesh
# -----------------------------------------------------------------------------
def GetMeshTemplate(Mesh_obj):
posi_array = []
norm_array = []
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7930 2010-02-19 02:04 Python_sc
文件 37118 2010-02-19 02:48 Python_sc
文件 3858 2010-02-19 01:58 Python_sc
文件 35220 2010-02-19 02:26 Python_sc
文件 3816 2010-02-19 02:05 Python_sc
文件 3850 2010-02-19 02:07 Python_sc
目录 0 2011-03-17 19:49 Python_sc
----------- --------- ---------- ----- ----
91792 7
- 上一篇:STM32无刷直流电机PWM控制
- 下一篇:尚硅谷2018大数据全套
相关资源
- Kharzeev-Levin-Nardi模型中的热辐射和包容
- 完全协变成分夸克模型中的Pion广义
- 750-GeV双光子共振能成为保管希格斯三
- 上下跷跷板模型中的750 GeV双光子共振
- 非相对论弦论中非线性西格玛模型的
- 质子的衍射非相干矢量介子产生:胶
- 具有晶格QCD启发的形状因子的SU3非局
- NcL4模型在大Nc下具有同位旋和手性不
- 在改进的软壁AdS / QCD模型中具有2 +
- 具有非扩展统计力学的线性Sigma模型中
- 软壁AdS / QCD模型中有限温度手性相变
- AdS / QCD软壁模型中的手性相变
- KLZ模型中介子的五维Lorentz违反非最小
- 光锥夸克模型中介子介子的Quark Wign
- 无扰动标量Yukawa模型的从头算方法
- 手性夸克-孤子模型中子核电磁形态因
- LHC以最小的U1扩展标准模型在LHC上产
- CMM 中文版高清pdf
- 康心汤对维生素D缺乏肾虚模型小鼠肾
- 亲子嘉年华路演活动模型
- 线性Sigma模型中的非阿贝尔T对偶
- 带阿贝尔规范场的ON⊕ON模型中的带
- Rξ和Unit度量中的Abelian-Higgs模型的重
- 从临界点到更高点的Abelian Higgs模型的
- Abelian Higgs模型中的振幅,递归关系和
- 非交换平面上具有介电函数的Abelian
- 具有广义多态状态方程的各向异性带
- 具有Λ项的Einstein–Gauss&ndash
- 铜酸盐异常缩放的全息模型
- 具有非线性电动力学的Lifshitz黑洞中铁
评论
共有 条评论