# How to extract the vector from each segment

**URL:** <https://discourse.mcneel.com/t/how-to-extract-the-vector-from-each-segment/179871>\
**Category:** Grasshopper\
**Tags:** mac\
**Created:** [April 11, 2024, 2:16pm UTC](https://discourse.mcneel.com/t/how-to-extract-the-vector-from-each-segment/179871 "2024-04-11T14:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaung\_Sett\_Lynn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kaung_sett_lynn/32/566511_2.png) [@Kaung\_Sett\_Lynn](https://discourse.mcneel.com/u/Kaung_Sett_Lynn)\
**Post date:** [April 11, 2024, 2:16pm UTC](https://discourse.mcneel.com/t/how-to-extract-the-vector-from-each-segment/179871/1 "2024-04-11T14:16:22Z")

</div>

Hi all,

I m trying to create the chain link parametric model with inputs like chain size and link length.  
The linear array is fine but now I want to input the arc and array will be done along crv.

My idea to divide the input crv by chain link spacing and rotate each chain based on the vector created by successive points.  
Now i have no idea to extract these successive points or segment to create a particular vector.  
Please advise since I m new to GH.

---

<div class="post-metadata">

**Author:** ![Joseph\_Oster](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/joseph_oster/32/549124_2.png) [@Joseph\_Oster](https://discourse.mcneel.com/u/Joseph_Oster)\
**Post date:** [April 11, 2024, 2:27pm UTC](https://discourse.mcneel.com/t/how-to-extract-the-vector-from-each-segment/179871/2 "2024-04-11T14:27:58Z")

</div>

Search the forum first.

> [@I need help rotating every other link on chain](https://discourse.mcneel.com/t/i-need-help-rotating-every-other-link-on-chain/116401/8):
>
> [Chain\_2021Jan17a.gh](https://discourse.mcneel.com/uploads/short-url/inWc50fCqVp1v3WuhPVTEaTwVeT.gh) (17.3 KB)

[![](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/6/8/968c9863c05135929f57aa0801f4c30d30138aaf.png) ](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/6/8/968c9863c05135929f57aa0801f4c30d30138aaf.png)

> [@Help Us Help You](https://discourse.mcneel.com/t/help-us-help-you/50034):
>
> Asking questions and getting answers is what this forum is all about. Although people are generally very helpful, there are things you can do to improve your chances of getting good and quick answers. Below you will find some suggestions, but don’t think of them as rules and especially don’t think of them as guarantees. 1. Choose a descriptive title for your post Don’t title your question Help! or I have a problem or Deadline tonight!, but actually describe the problem you are having. 2. Be s…

> [@Chain/Necklace Hanging Simulation](https://discourse.mcneel.com/t/chain-necklace-hanging-simulation/160932/4):
>
> This constructs a catenary curve of arbitrary length between endpoints (volume centroids of the two end links in the chain). Length is adjusted manually so the 81 links don’t collide, but this is based only on visual inspection so avoiding collisions needs more work. As I write this, I added a Collision Many|Many component (VERY SLOW! 29 seconds) to detect collisions and nudged the ‘Length’ slider, trying to avoid them - but apparently there is more to it than that… By…
