UModeler X MCPis live — model with an AI agent
UModeler X

Wedge

A triangular prism (ramp) whose far edge rises to the full height.

Wedge is a triangular prism where only one end edge of the base rectangle rises to the full height — ramps, slopes, gable roofs.


Geometry

From the base rectangle (Width × Depth), the +Z edge rises by Height, producing a prism with a triangular cross-section. Width runs along local X, Depth along local Z, Height along local Y, and the pivot is at the center of the base.

It is closed by five faces: base, back, slope and two side triangles.


Parameters

LabelScript keyDefaultRangeDescription
Widthw10.01 ~ 1000Width along local X, in meters
Depthd20.01 ~ 1000Depth along local Z — the run of the slope, in meters
Heighth10.01 ~ 1000Height of the raised edge, in meters
Rotationrotation00 ~ 360Y-axis rotation of the shape itself, in degrees

Rotation is a parameter that turns the shape itself around Y, not the Transform rotation. Use it to change the slope direction while keeping the pivot and bounds. It composes with the Transform rotation.


How to create

  1. Drag in empty space to set the base rectangle (Width × Depth).

  2. Click to confirm, then move the mouse up to set the Height.

  3. Click again to finish.


Scene view editing

The X handles drive Width, the Z handles Depth and the Y handles Height. There is no angle parameter — the slope follows the Height ÷ Depth ratio.


Tips

To dial in a slope angle, lock Depth and adjust only Height — a 30° ramp is Height = Depth × 0.577.

For a gable roof, mirror two wedges or attach the Mirror modifier.


Script

In a script this shape is written as wedge.

wedge "Ramp" w=2 d=4 h=1 @0,0,0
wedge "RoofHalf" w=6 d=2.5 h=1.8 @0,3,0
  mod mirror

See also — Shape Type List · Creating Shapes and Modes · Scene Script Syntax

Wedge | UModeler X Manual