CAD_Sketcher icon indicating copy to clipboard operation
CAD_Sketcher copied to clipboard

Dist from curve (solvesys version)

Open exegetor opened this issue 2 years ago • 2 comments

I believe this is the droid you were looking for. There are two things left to do tomorrow: First, the Horizontal/Vertical alignment is not correct. The helplines are drawn slightly off the target. Second, when adjusting the distance via the context menu, negative values are impossible. It seems as if the circle and line should pass thru each other rather than bounce off. Is this what the "Flip" feature is supposed to correct for? Third, Arcs will require special treatment. I figure the Arc will act like the Circle within its domain, but outside that, the appropriate arc endpoint becomes one end of a Point->Line constraint.

exegetor avatar Jul 02 '22 09:07 exegetor

Second, when adjusting the distance via the context menu, negative values are impossible. It seems as if the circle and line should pass thru each other rather than bounce off. Is this what the "Flip" feature is supposed to correct for?

Exactly, negative values are not allowed but the flip property can be used to define the direction of the distance, see: https://github.com/hlorus/CAD_Sketcher/commit/cb5cfe0d905ba3b1e1ed0e103fdf27e3939b43da

Third, Arcs will require special treatment. I figure the Arc will act like the Circle within its domain, but outside that, the appropriate arc endpoint becomes one end of a Point->Line constraint.

Not sure, IMO arcs should just work the same as circles, otherwise there would likely be some wired behavior when you drag things around... the gizmo should somehow communicate that it constrains to the arcs radius when it's not inside the "domain" though.

hlorus avatar Jul 04 '22 08:07 hlorus

Something might have gotten wrong when updating, at least i don't see the changes yet that you've marked as resolved...

hlorus avatar Jul 05 '22 05:07 hlorus

@exegetor I've pushed a fix to the dist_from_curve branch regarding the problem with the helplines. Would you mind giving it a quick test?

hlorus avatar Aug 12 '22 08:08 hlorus

Merged in: https://github.com/hlorus/CAD_Sketcher/commit/07362c2affc993c99e873137f88827c3ba1cb3d6

hlorus avatar Aug 18 '22 19:08 hlorus