# Set Points on Selected Curve Based upon Angle/Tangent

**URL:** <https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864>\
**Category:** Revit\
**Tags:** geometry, dynamo\
**Created:** [September 4, 2021, 12:22pm UTC](https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864 "2021-09-04T12:22:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sena.DuBois](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Sena.DuBois](https://forum.dynamobim.com/u/Sena.DuBois)\
**Post date:** [September 4, 2021, 12:22pm UTC](https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864/1 "2021-09-04T12:22:38Z")

</div>

![Curve Test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/9/a9efb31321b02699ed3986aff8a22f56ab2554f0.jpeg)  
My grand plan is to have the ability to dynamically place points along a line (selected from my model) where the distance between the points is modified by the angle of the curve (e.g. distance at max at straight line and reduced along curves/bends). Fibonacci like.

My element would be a nurb curve and I’m trying to develop greater control on my point placement based upon curve characteristics.

The points in the model space give the appearance I desire but are produced by a simple number slider.

Appreciate the assistance Dynamo Community.

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [September 4, 2021, 12:51pm UTC](https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864/2 "2021-09-04T12:51:24Z")

</div>

Hi @Sena.DuBois !  
Maybe that kind of workflow could do the job :

 ![points along curve](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/73b61960361f6791e9eedbba8b94e5560d643406.png)

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [September 4, 2021, 1:35pm UTC](https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864/3 "2021-09-04T13:35:43Z")

</div>

Well…it looks like PointAtParameter is already placing points closer on the most bended parts of the curve…But to drop some points my previous workflow seems to work (to get a simplier diagram i used `Curve.NormalAtParameter` )

 ![script](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/d/9d1cb8fde8a106d182c3f59b4c77a3108369cde5.png)  
 ![curve](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/5301cf9d5e343600567cc6a8c2797f3e49da1e4d.png)

---

<div class="post-metadata">

**Author:** ![Sena.DuBois](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Sena.DuBois](https://forum.dynamobim.com/u/Sena.DuBois)\
**Post date:** [September 8, 2021, 11:50am UTC](https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864/4 "2021-09-08T11:50:54Z")

</div>

Thank you Francois. The workflow looks look a good solution to employee.  
I’m still unsure why the output on my original graph had the points weighted towards the curves rather than equally spaced out. I also tried with some joined polylines in a similar shape as the ‘S’ we have been investigating but the result was a mess. I’m going to continue to progress this in my spare time until I grow my confidence in point placement along nurbscurves.

If you think of anything else or see any other threads worth looking into please share!

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 8, 2021, 1:00pm UTC](https://forum.dynamobim.com/t/set-points-on-selected-curve-based-upon-angle-tangent/67864/5 "2021-09-08T13:00:44Z")

</div>

> [@Sena.DuBois](#):
>
> I’m still unsure why the output on my original graph had the points weighted towards the curves rather than equally spaced out

This is a function of how parameterization of a curve works. Each parameter is basically the vector at a given location as needed to define the shape, sort of like calculating every change in direction as you drive from point A to point B. If you speed up, it’s a new vector; if you slow down, it’s a new vector; turn the wheel, a new vector; make any change to the trajectory of the car in any way, a new vector.

Because nurbs curves are non-uniform, they allow for these changes in vectors which vary in angle and location along the curve. Conversely a uniform curve has a single vector along it’s entire domain (parameter 0 to parameter 1). Polycurves are unique in that they are built from either uniform or non-uniform curves, so parameterization will be skewed based on the types of curves involved.

This is not unique to Dynamo by any means - in fact this very analogy is borrowed from the [IEatBugsForBreakfast](https://ieatbugsforbreakfast.wordpress.com/) blog authored by David Rutton which focuses more on the Rhino/Grasshopper tools offered by McNeel. It has two excellent and [relevant](https://ieatbugsforbreakfast.wordpress.com/2013/09/27/curve-parameter-space/) posts on the [topic](https://ieatbugsforbreakfast.wordpress.com/2013/09/28/curve-parameters-an-analogy/) worth reading. For something more dynamo centric, the topic was discussed and illustrated in the computational geometry section of the Dynamo Office Hours series, found here: [https://www.youtube.com/watch?v=ATAUp2Xr1h4&list=PLdlF7MirPEC2yNFTGymESd3t7Xosfk9c2&index=6](https://www.youtube.com/watch?v=ATAUp2Xr1h4&list=PLdlF7MirPEC2yNFTGymESd3t7Xosfk9c2&index=6)
