CityEngine Library 2015

CityEngine函数库


最新函数库英文连接


 函数库视频介绍


一、Operations(几何操作)

1Geometry Creation(几何体创建)
i (insert)
插入几何模型
extrude
拉伸
envelope
信封模型
taper
金字塔模型
锥体
roofGable
硬山顶
roofHip
歇山顶
髋关节屋顶
roofPyramid
庑殿顶
屋顶金字塔
roofShed
单侧坡顶
屋顶棚
innerRectangle
innerRect
内接矩形
2Geometry Subdivision(几何体拆分)
split
comp
offset
setback
shapeL
shapeU
shapeO
scatter
3Geometry Manipulation(几何体编辑)
cleanupGeometry
convexify
deleteHoles
reverseNormals
setNormals
mirror
reduceGeometry
trim
4Texturing(贴图)
texture
setupProjection
projectUV
translateUV
scaleUV
normalizeUV
tileUV
rotateUV
deleteUV
5Transformations(几何变换)
t (scope translate)
translate
s (scope size)
r (scope rotate)
rotate
center
6Scope(几何边界操作)
alignScopeToAxes
alignScopeToGeometry
rotateScope
setPivot
mirrorScope
7Flow Control(跟随控制)
pop
push
NIL
8Attributes(属性函数)
set
color
report
print

二、Shape Attributes(几何体属性)

Shape Attributes are properties of the current shape. They can always be read (like functions) and some of them can be set with the set operation.
自模型创建起来之后包括的属性信息,全部属性都能读取,其中一部分可以通过set操作设置属性
comp
initialShape
material
pivot
scope
seedian
split
trim

三、Builtin Functions(内置函数)

Functions always return a value and do not alter the current shape (with the exception of probability functions which change the state of the shape's random number generator).
内置函数通常返回一个值且不会对当前形状进行修改,包括一些数学函数和字符串操作函数等
1Math Functions(数学函数)
abs
acos
asin
atan
atan2
ceil
cos
exp
floor
isinf
isnan
ln
log10
pow
rint
sin
sqrt
tan
2Probability Functions(概率函数)
p
rand

3Conversion Functions(转换函数)

bool
float
isnull
sel
str
4String Functions(字符串函数)
count
find
len
substring
5Geometry Functions(几何函数)
geometry.area
geometry.angle
geometry.{du|dv}
geometry.isClosedSurface
geometry.isConcave
geometry.isInstanced
geometry.isOriented
geometry.isPlanar
geometry.isRectangular
geometry.nEdges
geometry.nFaces
geometry.nHoles
geometry.nVertices
geometry.{uMin|uMax|vMin|vMax}
geometry.volume
6File Functions(文件函数)
fileExists
fileSearch
7Asset and Image Functions(资源与影像函数)
assetInfo
assetsSortRatio
assetsSortSize
imageInfo
imagesSortRatio
8Occlusion Functions(相对位置函数)
inside
overlaps
touches
9Miscellaneous Functions(其它函数)
convert
getGeoCoord
getTreeKey
print
Simple Types Operations

四、Other Keywords(其他关键字)

attr
const
import
style
version

五、CGA Utility Functions Library(CGA使用函数库)

1String Utility Functions(字符串使用函数库)
findFirst
findLast
getPrefix
getRange
getSuffix
replace
2String List Utility Functions(字符串链表函数库)
Stringlists are a series of strings stored inside one string.The elements are separated by a semicolon (";"). The data type is "string", thus it is not any real type of array as used in other scripting languages.
Stringlists是一系列存储在一个字符串中的字符串。这些元素用分号隔开(“;”)。数据类型是“字符串”,因此是不作为其他脚本语言用于阵列的任何实际类型。
listAdd
listClean
listCount
listFirst
listIndex
listItem
listLast
listRandom
listRange
listRemove
listRemoveAll
listRetainAll
listSize
listTerminate
3File, Asset and Image Utility Functions(文件、资源、影像表函数库)
assetApproxRatio
assetApproxSize
assetBestRatio
assetBestSize
assetFitSize
fileBasename
fileDirectory
fileExtension
fileName
fileRandom
imageApproxRatio
imageBestRatio
4Color Utility Functions(颜色函数)
colorRamp

六、Miscellaneous Information(其他信息)

CGA Changelog
Annotations
Asset Search
Builtin Assets
Texturing
Euler Angles