Skip to content

Fix tangent constraints of curves.#948

Merged
phkahler merged 1 commit intosolvespace:masterfrom
ruevs:Fix937TangentCurves
Mar 6, 2021
Merged

Fix tangent constraints of curves.#948
phkahler merged 1 commit intosolvespace:masterfrom
ruevs:Fix937TangentCurves

Conversation

@ruevs
Copy link
Member

@ruevs ruevs commented Mar 3, 2021

This fixes a regression introduced in 96958f4 (#833.)
Three return statements got "swallowed" by the newly created functions.
(e.g .96958f4#diff-49abc03ed071148c0ebae0c64aafb625fa6223135f77aeecdb47dab4cf8b940cL638 )

Because of this it was possible to constrain arcs and cubics tangent to each other or line segments, without them sharing an endpoint.

This kind of worked, but always chose the "starting" points of the curves and lines. In the future this can be turned into a feature. See the discussion in #937.

This fixes a regression introduced in  96958f4
(solvespace#833.)
Three `return` statements got "swallowed" by the newly created functions.
(e.g .solvespace@96958f4#diff-49abc03ed071148c0ebae0c64aafb625fa6223135f77aeecdb47dab4cf8b940cL638 )

Because of this it was possible to constrain arcs and cubics tangent to
each other or line segments, without them sharing an endpoint.

This kind of worked, but always chose the "starting" points of the curves
and lines. In the future this can be turned into a feature. See the
discussion in solvespace#937.
@vespakoen
Copy link
Contributor

Great! Looks good to me.

@phkahler phkahler merged commit 8c101d5 into solvespace:master Mar 6, 2021
@ruevs ruevs deleted the Fix937TangentCurves branch March 6, 2021 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow tangents on curves/arcs/lines without coincident endpoints (Was: "Arc of circle tangential to line segment kind of works but is broken")

3 participants