← 返回首页
Per-face mesh coloring · Issue #983 · fastplotlib/fastplotlib · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Per-face mesh coloring #983

New issue
New issue

Description

Hi. I love your work. Using this I could create a small UI to visualize my CFD datasets, changing the colormaps, the cases, playing the snapshots as a movie... It's lightning fast and much better than what I had previously. Since I needed the new "add_mesh" method I'm also using your dev version from a few days ago. Currently you pass it 3 main arguments:

  • Mesh vertices N positions
  • M simplices connecting everything (list of tris or quads, with each element being a 3 or 4 length list of vertex indices)
  • Colors (either uniform color or an array of [per-position N colors,4]). With the per-position colors, the result is interpolated between vertices.

Here's my suggestion. It would be cool to have a per-face color option instead. So you give it:

  • Vertices N positions
  • color-mode: "face" extra argument
  • M simplices
  • Colors, now being an array of size (M, 4) where each tris or quad has its own uniform color

Could it be done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.