CityEngine函数库简介
2015-11-22 13:04
232 查看
CityEngine函数库六大组成部分:
1.Shape Operations(模型操作)
改变几何体的形状Geometry Creation(几何体的创建)
i(insert)
extrude
envelope
taper
roofGable
roofHip
roofPyramid
foofShed
innerRect
Geometry Subdivision(几何体的细分)
split
comp
offset
setback
shapeL
shapeU
shapeO
scatter
Geometry Manipulation(几何体的修改)
cleanupGeometry
convexify
deleteHoles
reverseNormals
setNormals
mirror
reduceGeometry
trim
Transformations(几何体的变换)
t(scope translate)
translate
s(scope size)
r(scope rotate)
rotate
center
Texturing(贴图)
texture
setupProjection
projectionUV
translateUV
scaleUV
normalizeUV
tileUV
rotateUV
deleteUV
Scope(模型体边界盒操作)
alignScopeToAxes
alignScopeToGeometry
rotateScope
setPivot
mirrorScope
Flow Control(流动控制)
pop
push
NIL
Attributes(属性控制)
set
color
report
2.Shape Attributes(模型属性)
自模型创建起来之后包括的属性信息,全部属性都能读取,其中一部分可以通过set操作设置属性comp
initialShape
material
pivot
scope
seedian
split
trim
3.Builtin Functions(内置函数)
内置函数通常返回一个值且不会对当前形状进行修改,包括一些数学函数和字符串操作函数等数学函数
abs
acos
asin
atan
atan2
ceil
cos
exp
floor
isinf
isnan
ln
log10
pow
rint
sin
sqrt
tan
概率函数
p
rand
转换函数
bool
float
isnull
sel
str
字符串函数
count
find
len
substring
几何函数
geometry.area
geometry.angle
geometry.{du|dv}
geometry.isClosedSurface
geometry.isConcave
geometry.islnstanced
geometry.isOriented
geometry.isPlanar
geometry.isRectangular
geometry.nEdges
geometry.nFaces
geometry.nHoles
geometry.nVertices
geometry.{uMin|uMax|vMin|vMax}
geometry.volume
文件函数
fileExists
fileSearch
资源与影像函数
assetInfo
assetsSortRatio
assetsSortSize
imageInfo
imagesSortRatio
相对位置函数
inside
overlaps
touches
其他函数
convert
getGeoCoord
getTreeKey
Simple Type Operations
4.Other Keyword(其他关键字)
attrconst
import
style
version
5.CGA Utility Function Library(CGA 实用函数库)
字符串实用函数库findFirst
findLast
getPrefix
getRange
getSuffix
replace
字符串链表函数库
listAdd
listClean
listCount
listFirst
listIndex
listltem
listLast
listRandom
listRange
listRemove
listRemoveAll
listRetainAll
listSize
listTerminate
文件、资源和影像函数库
assetApproxRatio
assetApproxSize
assetBestRatio
assetBestSize
assetFitSize
fileBasename
fileDirectory
fileExtension
fileName
fileRandom
imageApproxRatio
imageBestRatio
颜色函数
colorRamp
6.Miscellaneous Information(其他信息)
CGA ChangelogAnnotations
Asset Search
Builtin Assets
Texruring
Euler Angles
相关文章推荐
- 【BZOJ】1100: [POI2007]对称轴osi
- UIscrollView滚动笔记
- 前端的 jQuery 小技巧
- Android学习笔记(一)
- Material Design-过渡动画
- gdb mysql stack get
- 一个女程序员的自白——我在这里安家了
- XSS脚本攻击及防御
- 遥望布达拉——DAY5 折多塘-新都桥
- JMS基本概念
- 没有导入包快速导入
- 响应式Web设计- 图片
- sufficient statistic
- 为什么Java中1000==1000为false而100==100为true?
- 快速调出输出语句来
- 文件上传控件Fileupload(实现文件上传并写入数据库)
- dtrace for mysql
- ZZULI 1788 小金刚的宝藏(01背包模板)
- ASP.NET MVC中解决日志并发处理log4net
- 深入理解Java的接口和抽象类