wedge

A wedge.

Signatures

  • wedge()
  • wedge( float width, float depth, float height )
  • wedge( float width, float depth, float height, vector position )
  • wedge( vector corner1, vector corner2, vector corner3, vector corner4, vector corner5, vector corner6 )
  • wedge( vector corner1, vector corner2, vector corner3, float height )
  • wedge( vector corner1, vector corner2, vector corner3, float height, vector position )

Details

Constructors (4), (5) and (6) requires the corner points to be defined in the right order, as is shown in the figure. The last two constructors only use the first three corner points to define the wedge bottom. The bottom is then extruded by height.

Wedge corners order of constructors (4) to (6).

Casts To

solid

Parameters

width

Extension of the wedge in X direction.

depth

Extension of the wedge in Y direction.

height

Extension of the wedge in Z direction (constructors (2) and (3)) or orthogonal to the bottom plate (constructors (5) and (6)).

corner{1,2,3}

One of the three corners defining the bottom plate of the wedge.

corner{4,5,6}

One of the three corners defining the top plate of the wedge in arbitrary points constructor.

position

Translation vector that is applied to the wedge.