Bean Curve


#1

Capture

Dear All,

Could someone be kind enough to explain the basic relationship between drawing & mathematical equations.

e.g.- I need to draw Bean Curve & the mathematical expression is as shown in the attachment.

How should i go about drawing this curve?

Is it too complex ?

Thanks.


#2

Bean Curve

In the attachment, I have created 4 points & joined them with a nurb.

But is there a faster way to create this curve, by writing a formula in the code block?

Thanks.


#3

Hello Chander Gupta,

As your Points are having some specific Coordinates , you have to create them and then make it a collection.

There is one way to minimize Number of Node usage to write some simple code in CBN. (See attached image).

Thanks,

Ritesh

BeanCurve


#4

Bean Curve

Hi Ritesh,

The ‘arrayOfPoints’ doesn’t seem to be working…any idea on this?

Thanks,

Chander.


#5

Hello

arrayOfPoints is not working because you have added those points which is wrong, you need to separate them by comma.

arrayOfPoints = {pt1+pt2+pt3+pt4}; (wrong)

arrayOfPoints = {pt1, pt2, pt3, pt4};

Thanks,

Ritesh


#6

Hi Ritesh,

Thanks Again.