# Curve apex

**URL:** <https://discourse.mcneel.com/t/curve-apex/101536>\
**Category:** Grasshopper\
**Created:** [May 6, 2020, 7:33am UTC](https://discourse.mcneel.com/t/curve-apex/101536 "2020-05-06T07:33:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Proterio](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/proterio/32/552589_2.png) [@Proterio](https://discourse.mcneel.com/u/Proterio)\
**Post date:** [May 6, 2020, 7:33am UTC](https://discourse.mcneel.com/t/curve-apex/101536/1 "2020-05-06T07:33:29Z")

</div>

![q](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/4/74679b8256ab4cc1e336ce7c200ce3eb483f2899.jpeg)

The curve sits above the x/y plane and creates an apex in the x direction.

[https://grasshopperdocs.com/components/grasshoppercurve/curveClosestPoint.html](https://grasshopperdocs.com/components/grasshoppercurve/curveClosestPoint.html)

Using only the curve (which may be move around the x/y plane) how could I create a point to feed into this method?

![e](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/c/dc2072a305c35e52f0903b306647653292cd7a1f.jpeg)  
(this is not the apex in the X direction obviously)

[2020-05-06 CurveApex 001.gh](https://discourse.mcneel.com/uploads/short-url/1bYjSEvwkR5EWu7UGZrTgnUdyE6.gh) (3.4 KB)

---

<div class="post-metadata">

**Author:** ![Jakinta](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jakinta/32/485854_2.png) [@Jakinta](https://discourse.mcneel.com/u/Jakinta)\
**Post date:** [May 6, 2020, 7:45am UTC](https://discourse.mcneel.com/t/curve-apex/101536/2 "2020-05-06T07:45:10Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/9/e971397d605b45c79499c014568664bfa00f0414.png)

[2020-05-06 CurveApex 001\_RE.gh](https://discourse.mcneel.com/uploads/short-url/1OAMHaKo8gMS4eRmq1FzHR7gIaI.gh) (9.0 KB)

---

<div class="post-metadata">

**Author:** ![Proterio](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/proterio/32/552589_2.png) [@Proterio](https://discourse.mcneel.com/u/Proterio)\
**Post date:** [May 6, 2020, 8:29am UTC](https://discourse.mcneel.com/t/curve-apex/101536/3 "2020-05-06T08:29:14Z")

</div>

![t](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/4/6/461f377ec3e5bb8bfc81339c231561f299d0e4ec.jpeg)

Very clever. Curious to know what order CCX solves intersections? Does it work from one end of the first curve to the other?  
And how does it work for a curve that meanders in all three planes at the same time?

---

<div class="post-metadata">

**Author:** ![Mahdiyar](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mahdiyar/32/472862_2.png) [@Mahdiyar](https://discourse.mcneel.com/u/Mahdiyar)\
**Post date:** [May 6, 2020, 8:40am UTC](https://discourse.mcneel.com/t/curve-apex/101536/4 "2020-05-06T08:40:07Z")

</div>

You can also use [Extremes](http://grasshopperdocs.com/components/grasshoppercurve/extremes.html) component in grasshopper:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/9/e9346c466066f909e04b051c676509dc551b522f.png)  
[CurveExtreme.gh](https://discourse.mcneel.com/uploads/short-url/p2WK6r8zMtBRDDhTbPeCxEjHPVY.gh) (15.3 KB)
