mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0024521: Visualization - automatic back face culling is not turned on for Solids packed into compound
StdPrs_ToolShadedShape::IsClosed(): - return true if shape is closed Solid (NOT just free closed Shell) - accept compound of closed Solids as well - ignore Solids with incomplete triangulation TKOpenGl, automatically disable back face culling when: - clipping/capping planes are in effect - for translucent objects Update bug23227 test case (now back faces are clipped). OpenGl_Workspace::AspectFace() - disable culling in case of hatched style
This commit is contained in:
@@ -166,6 +166,7 @@ OpenGl_Workspace::OpenGl_Workspace (const Handle(OpenGl_Display)& theDisplay,
|
||||
TextParam_applied (NULL),
|
||||
ViewMatrix_applied (&myDefaultMatrix),
|
||||
StructureMatrix_applied (&myDefaultMatrix),
|
||||
myCullingMode (TelCullUndefined),
|
||||
myModelViewMatrix (myDefaultMatrix),
|
||||
PolygonOffset_applied (NULL)
|
||||
{
|
||||
@@ -269,6 +270,7 @@ void OpenGl_Workspace::ResetAppliedAspect()
|
||||
TextParam_set = &myDefaultTextParam;
|
||||
TextParam_applied = NULL;
|
||||
PolygonOffset_applied = NULL;
|
||||
myCullingMode = TelCullUndefined;
|
||||
|
||||
AspectLine(Standard_True);
|
||||
AspectFace(Standard_True);
|
||||
|
Reference in New Issue
Block a user