# Curve crown and shape

**URL:** <https://forum.dynamobim.com/t/curve-crown-and-shape/64271>\
**Category:** Alias\
**Tags:** designscript, geometry\
**Created:** [May 23, 2021, 8:45pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271 "2021-05-23T20:45:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddhardha.mjm](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@siddhardha.mjm](https://forum.dynamobim.com/u/siddhardha.mjm)\
**Post date:** [May 23, 2021, 8:45pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/1 "2021-05-23T20:45:12Z")

</div>

Hello Everyone,  
I found this below script in the forum , which does exactly what i am looking for . **If i input a curve it gives me a nurbscurve with a specified crown and the shape .**  
Could someone help me in replicating this with **standard nodes** which are available in standard dynamo . Here i would like to understand the script with standard nodes , so that in future i can customize it further to my requirements.  
Thank you

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

---

<div class="post-metadata">

**Author:** ![Michael-GG](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Michael-GG](https://forum.dynamobim.com/u/Michael-GG)\
**Post date:** [May 24, 2021, 3:31pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/2 "2021-05-24T15:31:17Z")

</div>

@siddhardha.mjm do you really need the whole code block to be “decompiled” back into regular Dynamo nodes? Wouldn’t it be sufficient for you to have the three input parameters (curves, crown and shape value) to be variable? I _think_ putting the code block back into Dynamo nodes is not too much work, but would still probably be 15-30 minutes, which I would like to avoid if not really needed?  
Cheers,  
GG

---

<div class="post-metadata">

**Author:** ![siddhardha.mjm](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@siddhardha.mjm](https://forum.dynamobim.com/u/siddhardha.mjm)\
**Post date:** [May 24, 2021, 4:19pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/3 "2021-05-24T16:19:29Z")

</div>

Hello Michael,  
Anything will help ,I will try to work from there .But at the end I would like to have everything in standard nodes  
Thank you

---

<div class="post-metadata">

**Author:** ![Michael-GG](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Michael-GG](https://forum.dynamobim.com/u/Michael-GG)\
**Post date:** [May 24, 2021, 4:20pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/4 "2021-05-24T16:20:47Z")

</div>

@siddhardha.mjm can you please share the script?

---

<div class="post-metadata">

**Author:** ![siddhardha.mjm](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@siddhardha.mjm](https://forum.dynamobim.com/u/siddhardha.mjm)\
**Post date:** [May 24, 2021, 4:35pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/5 "2021-05-24T16:35:46Z")

</div>

Hello Michael,

Thank you for your quick response  
You can find the file in the last post of this link

> [@How can I get G2 fillet from two curve with Dynamo](https://forum.dynamobim.com/t/how-can-i-get-g2-fillet-from-two-curve-with-dynamo/56552/27):
>
> Hi Yao, You did some very cool stuff here! slight_smile in fact, you implemented your own curve blend! Yes, what you write about the too many spans is true, but sadly makes sense from the Dynamo point of view. So far, Dynamo works similar to Rhino (and probably a lot of other, non Class A CAD systems): whenever something needs to be re-approximated, they do it by simply adding degree 3 spans, until the needed tolerance is reached. I also totally get that our Alias users shouldn’t have to re-…

---

<div class="post-metadata">

**Author:** ![Michael-GG](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Michael-GG](https://forum.dynamobim.com/u/Michael-GG)\
**Post date:** [May 25, 2021, 7:24am UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/6 "2021-05-25T07:24:31Z")

</div>

@siddhardha.mjm here is your script which you can run as a Dynamo Player script in Alias.

[CurveCrown.dyn](https://forum.dynamobim.com/uploads/short-url/1pMQRFOIUwP1ZtmTX3zDBKr8yVA.dyn) (16.1 KB)

---

<div class="post-metadata">

**Author:** ![siddhardha.mjm](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@siddhardha.mjm](https://forum.dynamobim.com/u/siddhardha.mjm)\
**Post date:** [May 25, 2021, 7:56am UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/7 "2021-05-25T07:56:36Z")

</div>

Hello Michael,  
Thank you for the script  
My main intention is to understand the script which is in main code block using dynamo nodes.So that i can understand the logic,which i can use it in different areas.  
Sorry if i am not clear in my earlier posts.

---

<div class="post-metadata">

**Author:** ![siddhardha.mjm](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@siddhardha.mjm](https://forum.dynamobim.com/u/siddhardha.mjm)\
**Post date:** [May 25, 2021, 1:00pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/8 "2021-05-25T13:00:39Z")

</div>

Hello Michael,  
After few teaks i was able to do it with stabdard nodes . Below you can see the screenshot

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a68e1b9d7014dd033cf254281df205d64b85d56b.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Michael-GG](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@Michael-GG](https://forum.dynamobim.com/u/Michael-GG)\
**Post date:** [May 25, 2021, 1:13pm UTC](https://forum.dynamobim.com/t/curve-crown-and-shape/64271/9 "2021-05-25T13:13:28Z")

</div>

Cool, thanks, yes, those were the 51 minutes I currently don’t have. ;-( glad you were able to get it done yourself! 🙂
