Questions tagged [catmull-rom-curve]
The catmull-rom-curve tag has no usage guidance.
catmull-rom-curve
40
questions
0
votes
0
answers
14
views
Three.js ExtrudeGeometry CatmullRomCurve3 not closing
I am struggling with this one problem with my extruded geometry, that the two ends of the rails for the railroad are not at the same rotation and therefore are not closing properly:
Here is what my ...
1
vote
1
answer
123
views
Catmull-Rom spline for Data visualization
So I am doing a project wehere we use the Convex hull to group the points and Catmull-Rom spline to make it more round like shown on the picture:
Now i got the next task which is to connect the paths ...
0
votes
1
answer
424
views
How to connect two points with a tube in threejs?
Using Threejs, I want to create a tube between two points that have x, y, z coordinates. I don't want to rely on some equation to generate points for a fancy curve. This documentation confuses me. I ...
1
vote
1
answer
344
views
How do you animate between two different lists of CatmullRomSpline points?
I've been playing around with the CatmullRomSpline class from Flutter the past few days. Drawing points with is trivial, however, I've been looking for information on interpolating between two sets of ...
4
votes
1
answer
5k
views
How do I find the control points for a Bezier curve?
I need to implement connections in the form of curved lines in C# (Unity). I would like to get the result as similar as possible to the implementation in Miro.com (see screenshot).
After attaching the ...
3
votes
1
answer
459
views
Spline Catmull-Rom for image zooming using C++ and opencv
I'm trying to implement spline Catmull-Rom for image zooming using C++ and OpenCV.
I performed two tests, the first is image zooming (X2), and the second image reconstruction (zooming image decimated)....
2
votes
1
answer
196
views
Problems when using same coordinate twice in a Catmull-Rom Spline
I'm currently messing around with Catmull-Rom splines, and have found a problem that I'm not sure how to solve. So when I use a method to do the Catmull stuff, I have to give an ArrayList of 4 points. ...
2
votes
0
answers
393
views
Convert a degree 3 cubic Nurbs Curve to Catmull-Rom?
Is there a way to convert a degree 3 cubic Nurbs curve to a Catmull-Rom curve?
The Nurbs curve has a standard knot vector, so for example a curve with 10 control points has these 12 knots:
[ 0 0 0 1 ...
1
vote
1
answer
982
views
Algorithm to cut a catmull-rom spline?
I have a catmull-rom spline with 6 CVs and want to cut it at an arbitrary point along the spline.
How do I calculate the end points of the two new splines so that they keep the shape as they had ...
1
vote
1
answer
2k
views
Centripetal Catmull-Rom spline interpolation alpha parameter
After searching almost every topic on Catmull-Rom splines and finally implementing it successfully I'm now stuck at a point where I don't know if I made a logical mistake or if my code is simply wrong....
11
votes
4
answers
7k
views
Acceleration in Unity
I am trying to emulate acceleration and deceleration in Unity.
I have written to code to generate a track in Unity and place an object at a specific location on the track based on time. The result ...
2
votes
1
answer
1k
views
Adding alpha to Catmull-Rom
I am trying to generate a Catmull-Rom curve from a list of points in Unity. As I do not want to store points in between points of the curve I opted to use a solution that could calculate a position in ...
1
vote
2
answers
4k
views
How Can I Convert a THREE.CatmullRomCurve3 to a Mesh?
I have created a line graph in 3D using THREE.js and the CatmullRomCurve3 class, which takes care of the curves and smoothing I wanted.
Unfortunately, now that I want to take that curve and turn it ...
1
vote
0
answers
92
views
moving a curve by inverse slope of each point without overlap
I am trying to draw curves a specified distance away from a curve. Kind of like the sides of roads are always a set distance away from the yellow lines in the center. I have code to do this, however, ...
1
vote
1
answer
2k
views
I need help on drawing a Catmull-Rom spline using given control points
I'm trying to create an openGL program that allows the user to click anywhere on the window, creating a point in that exact cursor coordinate for every click, and then draw a curve through those ...