Polygons, rectangles, circles

CityEngine offers tools to draw polygons, rectangles, and circles.

You can open the Tool Options window Tool options by clicking Window > Tool Options in the CityEngine main menu.

Draw a polygon

To draw a polygon, click the Polygonal Shape Creation tool or press S. You can also click Shapes > Polygonal Shape Creation in the main menu.

Click to create the first vertex and click again to place additional vertices. To finish the shape, click the first vertex. You can also double-click or press Enter to finish the shape.

Polygonal Shape Creation tool
Polygonal Shape Creation tool

While you are drawing, you can switch between a line and an arc with the Arc Mode toggle button or by pressing (a). You can adjust the tangent of the arc with the handles.

Drawing an arc
Drawing an arc

Tool options

The Tool Options window Tool options includes the following settings:

Snapping

Turn snapping options on and off in the scene. See Snapping.

Edge Length (m)

The length of the current edge in meters. You can enter a value before or while drawing to lock the edge length. Press Enter to apply the value.

Arc Mode

Change the edge into an arc.

  • Enter a value for the resolution of the arc. The smaller the value, the more sides the arc has.
  • Change the value by using the scroll wheel or the up and down arrow keys.
  • Press (a) to switch between an edge and arc.
Force Planar

Force the polygon to be planar. Press (t) to turn force planar mode on and off. See Force Planar.

Draw a rectangle

To draw a rectangle, click the Rectangular Shape Creation tool or press Shift+S. You can also click Shapes > Rectangular Shape Creation in the main menu.

Click to start drawing and click again to define the first edge. Drag the rectangle to the size you want and click. The rectangle is constrained to the line perpendicular to the first edge. Squares can be drawn by snapping the second perpendicular edge to the length of the first.

Rectangular Shape Creation tool
Rectangular Shape Creation tool

Tool options

The Tool Options window Tool options includes the following settings:

Snapping

Turn snapping options on and off in the scene. See Snapping.

Edge Length (m)

The length of the current edge in meters. You can enter a value before or while drawing to lock the edge length. Press Enter to apply the value.

Force Planar

Force the rectangle to be planar. Press (t) to turn force planar mode on and off. See Force Planar.

Draw a circle

To draw a circle, click the Circular Shape Creation tool or press Shift+C. You can also click Shapes > Circular Shape Creation in the main menu.

Click once to set the center of the circle, move the pointer to define the radius, and click again to finish.

Circular Shape Creation tool
Circular Shape Creation tool

Similarly to the arc mode, you can change how many sides the circle has.

Circle changed to multiple sides
Circle changed to multiple sides

Tool options

The Tool Options window Tool options includes the following settings:

Snapping

Turn snapping options on and off in the scene. See Snapping.

Radius (m)

The radius length in meters. You can enter a value before or while drawing to lock the radius length. Press Enter to apply the value.

Segments

The number of segments the circle has. You can enter a value or use the scroll wheel or the up and down arrow keys to change the number of segments.

Force Planar

Force the circle to be planar. Press (t) to turn force planar mode on and off. See Force Planar.