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

Backface Culling Additions #1421

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

KeflerExe
Copy link

Added "SetBackfaceCulling()" at "vtkF3DRenderer::ConfigureActorsProperties()".
Added "BackfaceCullingVisible" in class "vtkF3DRenderer".
Added CheatSheet text at "vtkF3DRenderer::FillCheatSheetHotkeys" for backface culling.

Added command line for backface culling at "ConfigurationOptions::GetOptions"
Copy link

codecov bot commented May 6, 2024

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 96.51%. Comparing base (a85b2c4) to head (e0ef584).
Report is 4 commits behind head on master.

Files Patch % Lines
vtkext/private/module/vtkF3DRenderer.cxx 63.63% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1421      +/-   ##
==========================================
- Coverage   96.55%   96.51%   -0.05%     
==========================================
  Files         103      103              
  Lines        7555     7570      +15     
==========================================
+ Hits         7295     7306      +11     
- Misses        260      264       +4     

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

…x/.h

-Added `SetUseBackface` call in window_impl.cxx
-Modified command name for backface culling in `options.cxx` and `F3DOptionsParser.cxx`
-Changed attribute name for backface to `UseBackface`
@@ -345,6 +345,7 @@ void ConfigurationOptions::GetOptions(F3DAppOptions& appOptions, f3d::options& o
this->DeclareOption(grp2, "point-type", "", "Point sprites type when showing point sprites", options.getAsStringRef("model.point-sprites.type"), HasDefault::YES, MayHaveConfig::YES, "<sphere|gaussian>");
this->DeclareOption(grp2, "point-size", "", "Point size when showing vertices or point sprites", options.getAsDoubleRef("render.point-size"), HasDefault::YES, MayHaveConfig::YES, "<size>");
this->DeclareOption(grp2, "line-width", "", "Line width when showing edges", options.getAsDoubleRef("render.line-width"), HasDefault::YES, MayHaveConfig::YES, "<width>");
this->DeclareOption(grp2, "backface", "", "Backface default (visible) or hidden", options.getAsStringRef("render.backface"), HasDefault::YES, MayHaveConfig::YES, "<default|hidden>");
Copy link
Contributor

Choose a reason for hiding this comment

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

I still think default should be unchanged.

possible value:

  • default
  • visible
  • hidden

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.

None yet

2 participants