#94 pm3d corners2color "top"

closed
Petr Mikulik
None
5
2004-12-21
2004-12-13
ahw
No

I have found while using the "pm3d" surfact colouring
options that I frequently would like to colour the
facets based on the "highest" or "lowest" corner value.

Choosing one of c1|c2|c3|c4 gives potentially odd
results; if the data forms "serrations", the two sides
of the serrations are coloured differently, as c1 (or
whatever) are at different heights.

I would therefore propose adding "top" and "bottom" to
allow colouring based on the highest/lowest point (in z).

Discussion

1 2 > >> (Page 1 of 2)
  • ahw
    ahw
    2004-12-13

    Example indicating "serrated" data coloured by second corner

     
  • ahw
    ahw
    2004-12-13

    Logged In: YES
    user_id=1150262

    And here is a simple png showing the default behaviour

     
  • ahw
    ahw
    2004-12-13

    PNG showing output plot

     
    Attachments
  • Petr Mikulik
    Petr Mikulik
    2004-12-13

    • assigned_to: nobody --> mikulik
     
  • Petr Mikulik
    Petr Mikulik
    2004-12-13

    Logged In: YES
    user_id=31505

    Do you want
    set pm3d corners2color c1|c2|c3|c4|min|max
    ? That can be easily done. I hope you don't mean
    set pm3d corners2color c1|c2|c3|c4|min_or_max

     
  • ahw
    ahw
    2004-12-13

    Logged In: YES
    user_id=1150262

    I'm not even sure what you mean by "min_or_max" as it seems
    non-deterministic.

    Essentially, I would expect "max" to locate the maximum z
    value of the four corners of the quad and use that as the
    value passed to the colouring routine. Similarly, "min"
    would colour based on the minimum of the four z values --
    min and max could only be used independently, much like
    c1|c2... is right now.

     
  • Petr Mikulik
    Petr Mikulik
    2004-12-14

    Logged In: YES
    user_id=31505

    > I'm not even sure what you mean by "min_or_max" as it seems

    That's because you wrote <the "highest" or "lowest" corner value>.
    Good, you don't want this.

    Please try the enclosed patch. It adds 2 more keywords min|max. Test
    the patch and report whether it works. Then I will commit it.

     
  • Petr Mikulik
    Petr Mikulik
    2004-12-14

     
    Attachments
  • ahw
    ahw
    2004-12-21

    Logged In: YES
    user_id=1150262

    Looks great -- everything works fine in all my tests.

     
  • Petr Mikulik
    Petr Mikulik
    2004-12-21

    • status: open --> closed
     
1 2 > >> (Page 1 of 2)