From 7e9a417fca343f8b9d2d7261f4f100e0c9dec69b Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 12 Nov 2019 16:57:45 +0100 Subject: [PATCH] STYLE: adjust member ordering to improve packing (of bools) --- .../graphics/runTimePostProcessing/surface.C | 2 ++ .../graphics/runTimePostProcessing/surface.H | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/functionObjects/graphics/runTimePostProcessing/surface.C b/src/functionObjects/graphics/runTimePostProcessing/surface.C index 34995e71a3..3e6e36a189 100644 --- a/src/functionObjects/graphics/runTimePostProcessing/surface.C +++ b/src/functionObjects/graphics/runTimePostProcessing/surface.C @@ -211,6 +211,8 @@ Foam::functionObjects::runTimePostPro::surface::surface representationTypeNames.get("representation", dict) ), featureEdges_(dict.getOrDefault("featureEdges", false)), + backFaceCulling_(dict.getOrDefault("backFaceCulling", false)), + frontFaceCulling_(dict.getOrDefault("frontFaceCulling", true)), surfaceColour_(nullptr), edgeColour_(nullptr), surfaceActor_(), diff --git a/src/functionObjects/graphics/runTimePostProcessing/surface.H b/src/functionObjects/graphics/runTimePostProcessing/surface.H index c450bc289f..8dd23c7886 100644 --- a/src/functionObjects/graphics/runTimePostProcessing/surface.H +++ b/src/functionObjects/graphics/runTimePostProcessing/surface.H @@ -170,6 +170,12 @@ protected: //- Activate feature edges bool featureEdges_; + //- Back face culling option; default = off + bool backFaceCulling_; + + //- Front face culling option; default = on + bool frontFaceCulling_; + //- Surface colour autoPtr> surfaceColour_;