Re-add make_plane with depreciation warning

This commit is contained in:
Jonathan Wagenet 2025-11-07 16:11:33 -05:00
parent 9a6c382ced
commit 3bea4d3228

View file

@ -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