DiscussionsIssue archiveOCCT:Visualization

Archived issue #0033056

Visualization - add front face culling option

Open CASCADEOCCT:Visualizationclosed6 public notes

Search issues

Description

Normally back face culling is the only natural feature to apply, but in some diagnostics / special visual affects cases it could be useful to allow front face culling as well.
As OpenGL provides both options - adding Graphic3d_TypeOfBackfacingModel_FrontCulled should be straightforward.

Steps to reproduce

pload MODELING VISUALIZATION
box b 1 2 3
vinit View1
vdisplay -dispMode 1 b
vfit
vaspects b -faceCulling front

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Jul 6 23:39:14 2022 +0300

    0033056: Visualization - add front face culling option
    
    Added Graphic3d_TypeOfBackfacingModel_FrontCulled enumeration value.
    OpenGl_Context::SetFaceCulling() now supports GL_FRONT in addition to GL_BACK.
    
    Added -faceCulling option to vaspects Draw command.
02Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Author
Patch is ready for review
- OCCT: branch CR33056.

http://jenkins-test-occt.nnov.opencascade.com/view/CR33056-master-KGV/
04Commenter 4
The patch was reviewed
05Commenter 5
Combination -
OCCT branch : [archived branch]
master SHA - changes and them, and you can discard any commits you make in this
[revision removed]
changes and them, and you can discard any commits you make in this
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18685.930000000586 / 18908.870000000694 [-1.18%]
Products
Total CPU difference: 11796.890000000125 / 11832.130000000114 [-0.30%]
Windows-64-VC14:
OCCT
Total CPU difference: 20784.828125 / 20752.59375 [+0.16%]
Products
Total CPU difference: 13361.3125 / 13368.90625 [-0.06%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records