fix: update ztools submodule — parametric tangent-to-cylinder datums (#58) #81
Reference in New Issue
Block a user
Delete Branch "fix/tangent-cylinder-attachment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updates ztools submodule to use FreeCAD's
TangentPlaneMapMode for tangent-to-cylinder datums instead of manual placement.Problem:
plane_tangent_to_cylinder()always fell back toMapMode=Deactivatedbecause TangentPlane requires (face, vertex) references but only the cylindrical face was collected. Datums didn't auto-update when cylinder geometry changed.Fix: Derive a vertex from the cylinder face's edges via
_find_cylinder_vertex(), compute its angular position with_vertex_angle_on_cylinder(), and useAttachmentOffset.Rotationto encode the desired angle offset. The edit panel (on_param_changed) now updatesAttachmentOffsetwhen attachment is active, falling back to manual placement for non-Body datums.Closes #58
6b4e099a64to1c136add511c136add51tof0f4c068d2