# Dot pattern based on surface heights not creating uniform results

**URL:** <https://forum.dynamobim.com/t/dot-pattern-based-on-surface-heights-not-creating-uniform-results/75532>\
**Category:** Geometry\
**Tags:** revit, geometry, dynamo\
**Created:** [April 16, 2022, 3:49pm UTC](https://forum.dynamobim.com/t/dot-pattern-based-on-surface-heights-not-creating-uniform-results/75532 "2022-04-16T15:49:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Grout](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy_grout/32/40509_2.png) [@Andy\_Grout](https://forum.dynamobim.com/u/Andy_Grout)\
**Post date:** [April 16, 2022, 3:49pm UTC](https://forum.dynamobim.com/t/dot-pattern-based-on-surface-heights-not-creating-uniform-results/75532/1 "2022-04-16T15:49:10Z")

</div>

Hi all,

I’m trying to create a frit pattern with dots changing in size to represent the the waves of a ripple, however there is a segment of the pattern which is creating smaller dots than it should (see area between red lines in image below:

 ![Ripple Preview Issue](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/adda8584cdac046520ca575e014468d3d1c19669.png)

I’ve used a method which involves changing the dot size based on measured distance to a wavy surface plane:

 ![Ripple Graph](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/1239ffe3c8fc5f77ef30ad1b714c17948ef67244.png)

I’m at a loss as to why the aforementioned area is not offering uniform results. I have tried generating the surface with a revolve from 0 to 360 degrees with same result, and from 90 to 270 degrees which results in a larger area of smaller than expects dots.

Graph (dyn 2.0) and family file (Revit 2021) attached:  
[Ripple\_v4.dyn](https://forum.dynamobim.com/uploads/short-url/ajmLRQZK4RMEHkWHcZnpf192kFv.dyn) (96.3 KB)  
[Frit Study.rfa](https://forum.dynamobim.com/uploads/short-url/wgCxkUGti0SJVEAwSVRU38eteVM.rfa) (764 KB)

Really appreciate any suggestions

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [April 16, 2022, 5:34pm UTC](https://forum.dynamobim.com/t/dot-pattern-based-on-surface-heights-not-creating-uniform-results/75532/2 "2022-04-16T17:34:32Z")

</div>

Maybe a stupid question… but why would you not measure the distance from a central point rather than to a wavy surface plane if you want a uniform result?

---

<div class="post-metadata">

**Author:** ![Andy\_Grout](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andy_grout/32/40509_2.png) [@Andy\_Grout](https://forum.dynamobim.com/u/Andy_Grout)\
**Post date:** [April 17, 2022, 1:40am UTC](https://forum.dynamobim.com/t/dot-pattern-based-on-surface-heights-not-creating-uniform-results/75532/3 "2022-04-17T01:40:40Z")

</div>

That’s a good point. I originally made the surface as a visual representation of the ripple and thought this may as well be used as a height check for the points.

The ripple waves diminish in frequency and height as they move away from the centre. This can probably be done with a sin/tan/cos wave formula where you enter the distance from centre and the result is the height position, but those days are long gone for me.

 ![Ripple Section](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/58de98ad4ebabb038a5d5ec76e01b78a8570f61b.png)

Following your suggestion, I’ve instead measured the distance of each point in the grid back to the centre, arranged them in a line under the original nurbs curve and extracted the distance to the curve. This method is probably more stable and less processor heavy, so definitely an improvement:

 ![Ripple Graph_2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/3/a333b5363421d0ae9c1580854c3311984b843ecd.png)

Whilst updating the graph I did also notice the fault in my original method; I needed to flatten the list of points in the surface grid:

 ![Ripple Graph_Fixed](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1008e37e572927b6d1e3e69a88f4058b9b7112b4.jpeg)

Updated graph (using curve instead of surface) below:  
[Ripple\_v5.dyn](https://forum.dynamobim.com/uploads/short-url/zxcihiOYjkB37hIODYxNylfrCwN.dyn) (97.8 KB)

Many thanks, I can now move onto the next step; intersecting ripples

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [April 18, 2022, 1:00pm UTC](https://forum.dynamobim.com/t/dot-pattern-based-on-surface-heights-not-creating-uniform-results/75532/4 "2022-04-18T13:00:41Z")

</div>

![2022-04-18_14h51_02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/d/8db741514e3168753271fd4d27a35a5c8755ba99.png)  
[Design\_Patterns.rfa](https://forum.dynamobim.com/uploads/short-url/3gSDhrGMdVsOAOXEAkI73czkdQO.rfa) (1.8 MB)  
The topic is realy intresting. I started years ago doing stuff without dynamo just using logic and formulas… and high school stuff

> **[GeoGebra Classic - GeoGebra](https://www.geogebra.org/classic?lang=de-AT)**
>
> Gratis online App-Paket von GeoGebra: Hole dir Grafikrechner, Geometrie, Algebra, 3D, Statistik, Wahrscheinlichkeit, alles in einem Werkzeug!
