CityEngine Library 2016

CityEngine函数库


Operations

Geometry Creation


i (insert)

extrude

envelope

taper

roofGable

roofHip

roofPyramid

roofShed

innerRectangle

primitiveQuad

primitiveDisk

primitiveCube

primitiveSphere

primitiveCylinder

primitiveCone

Geometry Subdivision


split

splitArea

comp

offset

setback

shapeL

shapeU

shapeO

scatter

Geometry Manipulation


cleanupGeometry

convexify

deleteHoles

reverseNormals

setNormals

softenNormals

mirror

reduceGeometry

trim

Texturing


texture

setupProjection

projectUV

translateUV

scaleUV

normalizeUV

tileUV

rotateUV

deleteUV

Transformations


t (scope translate)

translate

s (scope size)

r (scope rotate)

rotate

center

Scope


alignScopeToAxes

alignScopeToGeometry

rotateScope

setPivot

mirrorScope

Flow Control


pop

push

NIL

Attributes


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.

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).

Math Functions

abs acos asin atan
atan2 ceil cos exp
floor isinf isnan ln
log10 pow rint sin
sqrt tan

Probability Functions

p rand

Conversion Functions

bool float isNull sel
str

String Functions

count find len substring

Geometry 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

File Functions

fileExists fileSearch

Asset and Image Functions

assetInfo assetsSortRatio assetsSortSize imageInfo
imagesSortRatio

Occlusion Functions

inside overlaps touches

Miscellaneous Functions

convert getGeoCoord getTreeKey print
Simple Types Operations

 

Other Keywords

attr const import style
version

 

CGA Utility Functions Library

String Utility Functions

findFirst findLast getPrefix getRange
getSuffix replace

String 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.

listAdd listClean listCount listFirst
listIndex listItem listLast listRandom
listRange listRemove listRemoveAll listRetainAll
listSize listTerminate

File, Asset and Image Utility Functions

assetApproxRatio assetApproxSize assetBestRatio assetBestSize
assetFitSize fileBasename fileDirectory fileExtension
fileName fileRandom imageApproxRatio imageBestRatio

Color Utility Functions

colorRamp

 

Miscellaneous Information

CGA Changelog Annotations Asset Search Builtin Assets
Texturing Euler Angles

 

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.

切换注册

登录

忘记密码 ?

您也可以使用第三方帐号快捷登录

Q Q 登 录
微 博 登 录
切换登录

注册