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

Display colors when rendering using F6 #5065

Open
kintel opened this issue Mar 24, 2024 · 3 comments
Open

Display colors when rendering using F6 #5065

kintel opened this issue Mar 24, 2024 · 3 comments

Comments

@kintel
Copy link
Member

kintel commented Mar 24, 2024

Currently, color() can be used to set the color of (both negative and positive) objects, but only works in Preview Mode (F5).

Example:

difference() {
    union() {
      color("darkred") cube(20);
      color("darkgreen" ) sphere(10);
    }
    color("cyan") cylinder(r=8, h=30);
}
Screenshot 2024-03-24 at 13 34 52

It would be great if this was extended to also support Render Mode (F6).

Using Manifold, this should be possible, as demoed by https://manifoldcad.org/#Tetrahedron%20Puzzle.
This feature is likely a generalization of #5047

Further topics related to this could be:

When investigating this, it could be beneficial to look at the following related issues:

@gsohler
Copy link
Member

gsohler commented Mar 24, 2024 via email

@kintel
Copy link
Member Author

kintel commented Mar 24, 2024

Any dependency on implicit ordering is likely to fail, as is any dependency on likely triangle count of child nodes. Why not just map from originalID, as these IDs are already available in MeshGL?

@yahbluez
Copy link

yahbluez commented Apr 9, 2024

Would like to see that feature too.

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

No branches or pull requests

3 participants