I use a THREE.CatmullRomCurve3 to draw a pipe. Notice that the TVD (true vertical depth) doesn’t appear to be the deepest point, though it definitely is. I think the problem is the kind of curve, which tries so hard to be smooth that it distorts the results. Is there a better curve to use when you want the results to match the data?
If your data are 2D, I suggest you create an instance of Path and then use the lineTo()
method to draw a sequence of lines based on your data.
For 3D data, you can’t use Path
but manually create instances of LineCurve3 and assign them to the curves
property of CurvePath.
I am note entirely sure, but adjusting the “tension” parameter of a CatmullRomCurve3 should also help you to reduce the curviness and fit the curve better to the real well path