Fix bullets in docstrings for is_skew and axes_of_symmetry to fixs sphinx rendering and build errors

This commit is contained in:
Jonathan Wagenet 2025-03-26 09:52:39 -04:00
parent 56e9858fef
commit 08527188c9
2 changed files with 15 additions and 8 deletions

View file

@ -811,8 +811,10 @@ class Axis(metaclass=AxisMeta):
and never intersect. and never intersect.
Mathematically, this means: Mathematically, this means:
- The axes are **not parallel** (the cross product of their direction vectors - The axes are **not parallel** (the cross product of their direction vectors
is nonzero). is nonzero).
- The axes are **not coplanar** (the vector between their positions is not - The axes are **not coplanar** (the vector between their positions is not
aligned with the plane spanned by their directions). aligned with the plane spanned by their directions).

View file

@ -393,16 +393,21 @@ class Face(Mixin2D, Shape[TopoDS_Face]):
The method determines potential symmetry axes by analyzing the faces The method determines potential symmetry axes by analyzing the faces
geometry: geometry:
- It first validates that the face is non-empty and planar. - It first validates that the face is non-empty and planar.
- For faces with inner wires (holes), it computes the centroid of the - For faces with inner wires (holes), it computes the centroid of the
holes and the face's overall center (COG). 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 a specified tolerance), the symmetry axis is taken along the line
connecting these points; otherwise, each holes center is used to connecting these points; otherwise, each holes center is used to
generate a candidate axis. generate a candidate axis.
- For faces without holes, candidate directions are derived by sampling - For faces without holes, candidate directions are derived by sampling
midpoints along the outer wire's edges. 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 obtained from an oriented bounding box (OBB) constructed around the
face. face.