question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intersection between spline and line

See original GitHub issue

Hey @marcomusy

Thanks for this great package!

A simple question, is there a way to find the intersection points between a spline and line/spline in 2d/3d?

When I use the function spline_2d.intersectWithLine(p1, p2), I get an empty array in return. Is this because the spline is not set as a mesh?

image

In advance, thank you!

Regards, Eivind

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
eivindtncommented, May 1, 2021

Thank you @marcomusy !

1reaction
marcomusycommented, Apr 9, 2021

I have used this implementation from this repo. The algorithm implemented here is from David Eberly’s paper “Fitting 3D Data with a Cylinder” from https://www.geometrictools.com/Documentation/CylinderFitting.pdf

uhm, i’m not sure … it doesn’t look an analytic solution though as it uses minimize: https://github.com/xingjiepan/cylinder_fitting/blob/f96d79732bc49cbc0cb4b39f008af7ce42aeb213/cylinder_fitting/fitting.py#L105

Read more comments on GitHub >

github_iconTop Results From Across the Web

The intersection point between a spline and a line
I'm trying to find a way to calculate the intersection between a b-spline and a straight line. So far Google hasn't been much...
Read more >
Intersection coordinates between line and spline fitted curve
Hello, I am trying to do a similar thing to the request posted here: Intersection of a spline fitted curve and a straight...
Read more >
Intersection between spline and a line - MATLAB Answers
I'm having trouble using this data which is held in a struct with form : 'pp' to find the intersection points with other...
Read more >
Intersecting two splines - Medium
There are mainly two approaches for spline-spline intersections: implicitization and subdivision. The former transforms the problem into a ...
Read more >
intersection of a closed-spline and a line - Math Stack Exchange
1 Answer 1 ... Plug your spline equations into a line equation of the form ax+by+c=0, and you will get a polynomial equation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found