draftmake.make_rectangle Namespace Reference

Functions

def make_rectangle (length, height=0, placement=None, face=None, support=None)
 

Variables

 makeRectangle = make_rectangle
 

Function Documentation

◆ make_rectangle()

def draftmake.make_rectangle.make_rectangle (   length,
  height = 0,
  placement = None,
  face = None,
  support = None 
)
makeRectangle(length, width, [placement], [face])

Creates a Rectangle object with length in X direction and height in Y
direction.

Parameters
----------
length, height : dimensions of the rectangle

placement : Base.Placement
    If a placement is given, it is used.

face : Bool
    If face is False, the rectangle is shown as a wireframe, 
    otherwise as a face.
    
Rectangles can also be constructed by giving them a list of four vertices
as first argument: makeRectangle(list_of_vertices,face=...)
but you are responsible to check yourself that these 4 vertices are ordered
and actually form a rectangle, otherwise the result might be wrong. Placement
is ignored when constructing a rectangle this way (face argument is kept).

References draftmake.make_rectangle.makeRectangle.

Variable Documentation

◆ makeRectangle

draftmake.make_rectangle.makeRectangle = make_rectangle