|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hello,
in pov3.6 I want something similar like that:
pow ( pow(a,2) - pow(b,2) + pow(c,2), 2)
but parser says he wants an operator and no bracket.
how can I realise this?
thank you in advance.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
marabou <not### [at] availableyet> wrote:
> pow ( pow(a,2) - pow(b,2) + pow(c,2), 2)
I don't get any error when I try that.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote on $DATE:
> marabou <not### [at] availableyet> wrote:
>> pow ( pow(a,2) - pow(b,2) + pow(c,2), 2)
>
> I don't get any error when I try that.
>
and if you try that?
isosurface {
function {
pow( pow(x,2)+pow(y,2)+pow(z,2),2) +
(1-z-x*sqrt(2))*(1-z+x*sqrt(2))*(1+z-x*sqrt(2))*(1+z+x*sqrt(2))
}
max_gradient 10
contained_by{box {-1,1}}
}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
marabou <not### [at] availableyet> wrote:
> and if you try that?
> isosurface {
> function {
> pow( pow(x,2)+pow(y,2)+pow(z,2),2) +
> (1-z-x*sqrt(2))*(1-z+x*sqrt(2))*(1+z-x*sqrt(2))*(1+z+x*sqrt(2))
> }
> max_gradient 10
> contained_by{box {-1,1}}
> }
Nope. No errors.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>
> Nope. No errors.
>
I have found the error (not shown in post before):
5(1-z-x*sqrt(2))
which should be:
5 * (1-z-x*sqrt(2))
My suggestion for upcoming versions of Povray: Interpret numbers before
brackets and constants as factors of following term (to not showing my own
stupidy). hmpff...
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |