mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:02:29 +00:00
shape_builder.rectangle - clarify 3d size use
This commit is contained in:
@@ -417,6 +417,7 @@ class ShapeBuilder:
|
|||||||
0 1
|
0 1
|
||||||
|
|
||||||
:param size: rectangle size, could be either 2d or 3d.
|
:param size: rectangle size, could be either 2d or 3d.
|
||||||
|
Use 0 for one of 3d dimensions to create 2d rectangle in 3d space.
|
||||||
:param position: rectangle position.
|
:param position: rectangle position.
|
||||||
if `position` not specified zero-vector will be used
|
if `position` not specified zero-vector will be used
|
||||||
:return: list of rectangle coords
|
:return: list of rectangle coords
|
||||||
@@ -442,9 +443,11 @@ class ShapeBuilder:
|
|||||||
"""
|
"""
|
||||||
Generate a rectangle polyline.
|
Generate a rectangle polyline.
|
||||||
|
|
||||||
:param size: rectangle size, could be either 2d or 3d.
|
:param size: rectangle.
|
||||||
:param position: rectangle position.
|
:param position: rectangle position.
|
||||||
if `position` not specified zero-vector will be used
|
|
||||||
|
See ``get_rectangle_coords`` for more information.
|
||||||
|
|
||||||
:return: IfcIndexedPolyCurve
|
:return: IfcIndexedPolyCurve
|
||||||
"""
|
"""
|
||||||
return self.polyline(self.get_rectangle_coords(size, position), closed=True)
|
return self.polyline(self.get_rectangle_coords(size, position), closed=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user