Draw a rectangle

CityEngine 2025.0    |    |  

CityEngine provides tools to draw shapes, such as rectangles.

Create rectangles

To create a rectangle, complete the following steps:

  1. On the CityEngine toolbar, click the Polygonal Shape Creation tool Polygonal shape creation tool (or press S) and click the Rectangular Shape Creation tool Rectangular Shape Creation tool (or press Shift+S) in the Tool Options window Tool options.

    You can also click Shapes > Rectangular Shape Creation in the main menu.

  2. Click to start drawing and click again to define the first edge.
  3. 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. See the Tool options section below for shape creation options.

    Rectangular Shape Creation tool
    The Rectangular Shape Creation tool is shown.

Tool options

Rectangle tool options

The Rectangular Shape Creation tool options Tool options include the following:

Tool options Rectangular Shape Creation
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 New Shape

Force a new shape to be created, including when drawing intersecting shapes.

Force Planar

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