Select Tangencies

Does anyone have a script that can select lines for tangency? Using the Vectorize plug-in and trying to BooleanDifference some shapes out of a plane to create a tactile drawing, and have been running into this shape. Currently deleting manually but wondering if there’s a way to highlight to speed up my work.

Screenshot below. The condition I’m trying to highlight is appearing in the center, where the shapes meet at a point and mess up the Boolean Difference

Thanks,
Paul

Hi Paul -

I must admit that I’m not completely clear on what you are requesting.
The SelSelfIntersectingCrv command will select curves that self-intersect.
The SelChain command will auto-select curves based on a continuity requirement.
-wim

I think @pdfaze may be looking for curves that just touch at a point, possibly?
image

-Pascal

Ah, yes sorry perhaps my screenshot didn’t make it clear. Yes, pascal is right. It’s these curves that touch at points that begin to produce issues with Boolean processing.

I’m extruding the curves and using a Boolean Difference to subtract them from a surface, so when the points touch there are a number of errors that have to be cleaned up manually.

Hello- would it be OK to just run FilletCorners on all of the curves to just kill all the hard corners and provide some clearance?

I don’t know how robust this is but it might at least help some:

SelTouchingCurves2.py (742 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

I dug this one up from the pile as well - it starts with a base curve and tries to find curves that cross or touch it, or just touch it (command line option). Guaranteed slightly tested.
SelTouchingCurves.py (1.7 KB)

-Pascal

Thanks Pascal! Both options work well, and I think you’re right - filleting is actually more efficient overall, but the script is still useful for searching and removing tiny pieces and other things. Thanks for your help, once again.