Skip to content

Commit

Permalink
Reordering properties in module
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Feb 6, 2025
1 parent 2247ea9 commit e7aee38
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/build123d/topology/two_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,23 @@ def __init__(self, *args: Any, **kwargs: Any):

# ---- Properties ----

@property
def area_without_holes(self) -> float:
"""
Calculate the total surface area of the face, including the areas of any holes.
This property returns the overall area of the face as if the inner boundaries (holes)
were filled in.
Returns:
float: The total surface area, including the area of holes. Returns 0.0 if
the face is empty.
"""
if self.wrapped is None:
return 0.0

return self.without_holes().area

@property
def axes_of_symmetry(self) -> list[Axis]:
"""Computes and returns the axes of symmetry for a planar face.
Expand Down Expand Up @@ -504,23 +521,6 @@ def length(self) -> None | float:
result = face_vertices[-1].X - face_vertices[0].X
return result

@property
def area_without_holes(self) -> float:
"""
Calculate the total surface area of the face, including the areas of any holes.
This property returns the overall area of the face as if the inner boundaries (holes)
were filled in.
Returns:
float: The total surface area, including the area of holes. Returns 0.0 if
the face is empty.
"""
if self.wrapped is None:
return 0.0

return self.without_holes().area

@property
def volume(self) -> float:
"""volume - the volume of this Face, which is always zero"""
Expand Down

0 comments on commit e7aee38

Please sign in to comment.