Skip to content

Fix docs visual regression#2006

Draft
lorenzncode wants to merge 1 commit intoCadQuery:masterfrom
lorenzncode:vtkjs-edge
Draft

Fix docs visual regression#2006
lorenzncode wants to merge 1 commit intoCadQuery:masterfrom
lorenzncode:vtkjs-edge

Conversation

@lorenzncode
Copy link
Member

Replace actor-level coloring with cell-based coloring. This allows distinct colors per cell type (vertices, edges, faces) rather than one color per actor.

Replace actor-level coloring with cell-based coloring.
This allows distinct colors per cell type (vertices, edges, faces) rather than one color per actor.
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.54%. Comparing base (ba71107) to head (1a400d2).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2006      +/-   ##
==========================================
- Coverage   96.08%   95.54%   -0.54%     
==========================================
  Files          29       30       +1     
  Lines        7961    10534    +2573     
  Branches     1190     1664     +474     
==========================================
+ Hits         7649    10065    +2416     
- Misses        179      312     +133     
- Partials      133      157      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

reader.parseAsArrayBuffer(textEncoder.encode(shape));

// setup actor,mapper and add
// create mesh types based on cell type for coloring
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we just reuse the approach of fig/show of splitting into two actors on python side?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's go with your solution with multiple actors at least for now to fix the doc regression. I will close this PR. This change is kind of experimental.

I do have some concern over adding more actors and would like to revisit this later. I'm testing vtk.js performance with assemblies with large numbers of shapes. Performance degrades with many actors and a separate edge actor will not help. It's not an immediate issue for docs though.

I found a better approach may be to create one actor per assembly color instead of per shape.

@adam-urbanczyk
Copy link
Member

@lorenzncode I'm reopening to not forget about this.

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

Successfully merging this pull request may close these issues.

2 participants