mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 15:20:37 -08:00
Re-add make_plane with depreciation warning
This commit is contained in:
parent
9a6c382ced
commit
3bea4d3228
1 changed files with 15 additions and 0 deletions
|
|
@ -1014,6 +1014,21 @@ class Face(Mixin2D, Shape[TopoDS_Face]):
|
|||
).Face()
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def make_plane(
|
||||
cls,
|
||||
plane: Plane = Plane.XY,
|
||||
) -> Face:
|
||||
"""Create a unlimited size Face aligned with plane"""
|
||||
warnings.warn(
|
||||
"The 'make_plane' method is deprecated and will be removed in a future version.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
pln_shape = BRepBuilderAPI_MakeFace(plane.wrapped).Face()
|
||||
return cls(pln_shape)
|
||||
|
||||
@classmethod
|
||||
def make_rect(cls, width: float, height: float, plane: Plane = Plane.XY) -> Face:
|
||||
"""make_rect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue