2
$\begingroup$

Using math nodes I generated that pyramid like shape, but I want to impose inequalities. The equation for the following pic is 9-8|x|-y=0 but I want to impose inequalities to the equation where 0.75<|x|<1. How do I integrate the equation with the given inequality?

enter image description here

this is the current output enter image description here

and this is the current node setup.

The final output has to look something like this enter image description here

$\endgroup$
  • $\begingroup$ what is the final equation like? $\endgroup$ – susu Jun 10 at 2:29
  • $\begingroup$ 9-8|X|-y =0 where 0.75<|x|<1 $\endgroup$ – Visvakrt Ram Jun 10 at 3:33
2
$\begingroup$

I used the Node Expressions add-on (available via https://baldingwizard.wixsite.com/blog/node-expressions) to create the nodes from the mathematical expression, using the following expression :

Val1 = abs(y-(9-8*abs(x))) < Threshold, Val2 = and(abs(x)>0.75, abs(x)<1), Combined =Val1 * Val2

This creates two sub-expressions (Val1 which returns 'true' if y is close to '9-8|x|' and Val2 which is true if 0.75 < |x| < 1.0) and a Combined output which is true if both sub-expressions are true.

This produces the following result :

result and nodes

Blend file included

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.