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.
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).
@ -2725,7 +2727,7 @@ class Plane(metaclass=PlaneMeta):
The origin of the workplane is unaffected by the rotation.
Rotations are done in order x, y, z. If you need a different order,
specify ordering. e.g. Intrinsic.ZYX changes rotation to
specify ordering. e.g. Intrinsic.ZYX changes rotation to
(z angle, y angle, x angle) and rotates in that order.
Args:

View file

@ -393,18 +393,23 @@ class Face(Mixin2D, Shape[TopoDS_Face]):
The method determines potential symmetry axes by analyzing the faces
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
a specified tolerance), the symmetry axis is taken along the line
connecting these points; otherwise, each holes center is used to
generate a candidate axis.
- 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 holes 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
obtained from an oriented bounding box (OBB) constructed around the
face.
- If curved edges are present, additional candidate directions are
obtained from an oriented bounding box (OBB) constructed around the
face.
For each candidate direction, the face is split by a plane (defined
using the candidate direction and the faces normal). The top half of the face