Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotting aesthetics for vertex vs primitive vs object #3

Closed
mdsumner opened this issue Aug 20, 2016 · 2 comments
Closed

plotting aesthetics for vertex vs primitive vs object #3

mdsumner opened this issue Aug 20, 2016 · 2 comments

Comments

@mdsumner
Copy link
Member

mdsumner commented Aug 20, 2016

We need to differentiate

  • continuous: the vertex "v" table
  • discrete: the primitives or the object "o" table

Examples are the colour of a country in countriesHigh (discrete) vs. the colour scale across triangles (continuous).

Are there lessons from ggplot2 or scales for this?

Could we have "fill_cts" and "fill_dsc" args, mutually exclusive?

@mdsumner
Copy link
Member Author

had an attempt at this in broken-dev-loop-object branch but it needs more preparation - somehow to always flip between structural and relational without having to think

@mdsumner mdsumner changed the title plotting aesthetics for plot.trimesh and globe plotting aesthetics for vertex vs primitive vs object Aug 30, 2016
@mdsumner
Copy link
Member Author

mdsumner commented Sep 16, 2016

A key aspect is that in rgl ):

  • shade3d expects material properties per vertex, and the it/ib index expands those out internally
  • rgl. or plot/triangles/lines3d expects those properties per vertex, since they are explicitly expanded anyway for that usage

(I think this is right but needs to be demonstrated clearly. )

Rgl just doesn't have a concept of object, just like polygon and polypath and lines do not.

So a default behaviour may be to look for material properties on the object table, then on the index table/s, then finally on the vertices. I think this gives some easy ways to provide user-controlled nuance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant