Frequently asked question

Can I calculate the approximate average slope of a (non-planar) shape?

Last Published: April 25, 2020


Yes, by using the following example. Please note that this is CGA sample code and may not apply in all situations.

CGA stands for Computer Generated Architecture, a scripting language specific to Esri CityEngine and used to generate 3D content. See the link to the 'Basics of Rule-based Modeling' in the Related Information section below.

slopeFunction = atan ( sqrt ( / )

Lot -->
print ( slopeFunction )

Article ID:000011362

  • ArcGIS CityEngine Prev

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic