# What kinds of curves are available?

**URL:** <https://discourse.threejs.org/t/what-kinds-of-curves-are-available/50894>\
**Category:** Questions\
**Tags:** curves\
**Created:** [April 27, 2023, 3:22am UTC](https://discourse.threejs.org/t/what-kinds-of-curves-are-available/50894 "2023-04-27T03:22:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottPendleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/scottpendleton/32/35347_2.png) [@ScottPendleton](https://discourse.threejs.org/u/ScottPendleton)\
**Post date:** [April 27, 2023, 3:22am UTC](https://discourse.threejs.org/t/what-kinds-of-curves-are-available/50894/1 "2023-04-27T03:22:28Z")

</div>

![TVD](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/7/2/7213875843d1b149334ce42402acf4c9554b3b87.png)  
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?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [April 27, 2023, 8:18am UTC](https://discourse.threejs.org/t/what-kinds-of-curves-are-available/50894/2 "2023-04-27T08:18:30Z")

</div>

If your data are 2D, I suggest you create an instance of [Path](https://threejs.org/docs/index.html#api/en/extras/core/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](https://threejs.org/docs/index.html#api/en/extras/curves/LineCurve3) and assign them to the `curves` property of [CurvePath](https://threejs.org/docs/index.html#api/en/extras/core/CurvePath).

---

<div class="post-metadata">

**Author:** ![geolehmann](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/geolehmann/32/24523_2.png) [@geolehmann](https://discourse.threejs.org/u/geolehmann)\
**Post date:** [April 28, 2023, 5:35am UTC](https://discourse.threejs.org/t/what-kinds-of-curves-are-available/50894/3 "2023-04-28T05:35:37Z")

</div>

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
