您的位置:首页 > 其它

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
print



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
print
Simple Type Operations


4.Other Keyword(其他关键字)

attr
const
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 Changelog
Annotations
Asset Search
Builtin Assets
Texruring
Euler Angles


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: