资源简介
用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大数据全套
相关资源
- pscad近海风电模型 Fortran语言
- 遥感图像几何校正模型探讨
- 60个HFSS 仿真模型库
- 修正Sway-Rocking土-结构相互作用模型的
- phong模型(简单光照模型)
- 云模型的相关算法cloud
- DISKID硬盘序列号查看器
- 4 1视图建模教程实例大全
- MFC读三维模型obj文件
- AR模型的c 程序
- 差分形式的阻滞增长模型
- 马尔可夫模型源码
- 中微子质量和暗物质的模型,具有大
- Zee模型的全参数扫描:探索希格斯轻
- 标准模型中H衰变的轻子极化不对称
- Z玻色子衰变的标准模型EFT校正
- 基于属性驱动的矿体动态建模
- 河曲露天矿矿床模型的建立和应用
- 块体金属玻璃热压印中结构深宽比和
- 块体形状对岩石黏结颗粒模型力学特
- 基于实体与块体混合模型的三维矿体
- Pareto-Beta跳扩散期权定价模型的校正
- 统一的纳尔逊·巴尔模型
- EESkill NRF24L01 无线模块用户手册
- 在s = 13 TeV的质子-质子碰撞中搜索四个
- 在两个具有相同符号的轻子,缺少横
- 在13 TeV和13 TeV的质子-质子碰撞中,在
- 使用$$ \\ sqrt {s} = 13 \\ hbox {TeV} $$ s =
- 在13 TeV质子-质子碰撞中发生高动量希
- 使用希格斯精度数据的Georgi-Machacek模
评论
共有 条评论