Perpendicular / Tangential Snap

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
andrew
Site Admin
Posts: 8767
Joined: Fri Mar 30, 2007 6:07 am

Perpendicular / Tangential Snap

Post by andrew » Thu Jan 30, 2025 1:47 pm

From a QCAD user:
Perpendicular and tangential snaps don't work as expected when drawing an arc / circle / ellipse / spline / etc.

User avatar
andrew
Site Admin
Posts: 8767
Joined: Fri Mar 30, 2007 6:07 am

Re: Perpendicular / Tangential Snap

Post by andrew » Thu Jan 30, 2025 2:08 pm

These snap modes snap to the point that is perpendicular / tangential to the line from the last used point (relative zero point) to the entity under the mouse cursor as shown below when constructing the red circle and snapping to the white, small circle.

It's the line between the relative zero point and the entity that is perpendicular / tangential, not the entity that is currently being constructed.

To create a circle that is tangential to another entity, use the specialized circle tools instead.
perpendicular_snap.png
perpendicular_snap.png (40.18 KiB) Viewed 29229 times
tangential_snap.png
tangential_snap.png (46.86 KiB) Viewed 29229 times

CVH
Premier Member
Posts: 4878
Joined: Wed Sep 27, 2017 4:17 pm

Re: Perpendicular / Tangential Snap

Post by CVH » Thu Jan 30, 2025 3:28 pm

Andrew, I agree with disagreeing.

In perpendicular_snap.png there is a second perpendicular point on the far side of the white Circle.
See feature request FS@2621
Not an issue: There are 2 tangential points for an RZ outside the (full) Circle, no when inside.

But the user remark was not limited to Circle shapes ...

If the white shape was an Ellipse there might be 2-4 perpendicular points and 0-2 tangential points.
Max 2/4 perpendicular points simply depending on whether the RZ is inside the evolute of the Ellipse or not.
This evolute may extend far outside the Ellipse shape itself.
Not an issue: There are 2 tangential points for an RZ outside the (full) Ellipse, no when inside.

Typically only one perpendicular solution is returned based on getVectorTo(), the near perpendicular point.
This method is not really accurate for Ellipses and there are a few documented false solutions.

I am testing alternatives + A tool for all (2-4) normal points is as good as finished as we speak. :wink:

Detail, a Circle is a special case of an Ellipse and the evolute of a Circle is the center, a point with no distinct enclosed area.
Then when RZ = center there are infinite perpendicular points or no distinct solutions.

If the 'other' entity is an Arc and if that is open in the direction of RZ we also miss the far-side perpendicular point.

PerpendicularToArc.png
PerpendicularToArc.png (604.04 KiB) Viewed 29083 times

For Splines/Polylines this may be the 'Closest Simple Shape' from a virtual explosion.
Typically an RArc shape, again only the near-side perpendicular point is returned.
Which 'closest simple shape' that is considered can be unclear depending on the zoom state.

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”