mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Fix bullets in docstrings for is_skew and axes_of_symmetry to fixs sphinx rendering and build errors
This commit is contained in:
parent
56e9858fef
commit
08527188c9
2 changed files with 15 additions and 8 deletions
|
|
@ -811,8 +811,10 @@ class Axis(metaclass=AxisMeta):
|
|||
and never intersect.
|
||||
|
||||
Mathematically, this means:
|
||||
|
||||
- The axes are **not parallel** (the cross product of their direction vectors
|
||||
is nonzero).
|
||||
|
||||
- The axes are **not coplanar** (the vector between their positions is not
|
||||
aligned with the plane spanned by their directions).
|
||||
|
||||
|
|
|
|||
|
|
@ -393,16 +393,21 @@ class Face(Mixin2D, Shape[TopoDS_Face]):
|
|||
|
||||
The method determines potential symmetry axes by analyzing the face’s
|
||||
geometry:
|
||||
|
||||
- It first validates that the face is non-empty and planar.
|
||||
|
||||
- For faces with inner wires (holes), it computes the centroid of the
|
||||
holes and the face's overall center (COG).
|
||||
If the holes' centroid significantly deviates from the COG (beyond
|
||||
|
||||
- If the holes' centroid significantly deviates from the COG (beyond
|
||||
a specified tolerance), the symmetry axis is taken along the line
|
||||
connecting these points; otherwise, each hole’s center is used to
|
||||
generate a candidate axis.
|
||||
|
||||
- For faces without holes, candidate directions are derived by sampling
|
||||
midpoints along the outer wire's edges.
|
||||
If curved edges are present, additional candidate directions are
|
||||
|
||||
- If curved edges are present, additional candidate directions are
|
||||
obtained from an oriented bounding box (OBB) constructed around the
|
||||
face.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue