Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
Visualization
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Modules
Visualization
Commits
f4693076
Commit
f4693076
authored
Nov 01, 2019
by
Andrew Heather
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Function objects - runTimePostProcessing - updated and exposed culling options
parent
8de57623
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/runTimePostProcessing/surface.C
src/runTimePostProcessing/surface.C
+6
-0
src/runTimePostProcessing/surface.H
src/runTimePostProcessing/surface.H
+8
-0
No files found.
src/runTimePostProcessing/surface.C
View file @
f4693076
...
@@ -115,11 +115,15 @@ void Foam::functionObjects::runTimePostPro::surface::setRepresentation
...
@@ -115,11 +115,15 @@ void Foam::functionObjects::runTimePostPro::surface::setRepresentation
case
rtGlyph
:
case
rtGlyph
:
case
rtSurface
:
case
rtSurface
:
{
{
actor
->
GetProperty
()
->
SetBackfaceCulling
(
backFaceCulling_
);
actor
->
GetProperty
()
->
SetFrontfaceCulling
(
frontFaceCulling_
);
actor
->
GetProperty
()
->
SetRepresentationToSurface
();
actor
->
GetProperty
()
->
SetRepresentationToSurface
();
break
;
break
;
}
}
case
rtSurfaceWithEdges
:
case
rtSurfaceWithEdges
:
{
{
actor
->
GetProperty
()
->
SetBackfaceCulling
(
backFaceCulling_
);
actor
->
GetProperty
()
->
SetFrontfaceCulling
(
frontFaceCulling_
);
actor
->
GetProperty
()
->
SetRepresentationToSurface
();
actor
->
GetProperty
()
->
SetRepresentationToSurface
();
actor
->
GetProperty
()
->
EdgeVisibilityOn
();
actor
->
GetProperty
()
->
EdgeVisibilityOn
();
break
;
break
;
...
@@ -207,6 +211,8 @@ Foam::functionObjects::runTimePostPro::surface::surface
...
@@ -207,6 +211,8 @@ Foam::functionObjects::runTimePostPro::surface::surface
representationTypeNames
.
get
(
"representation"
,
dict
)
representationTypeNames
.
get
(
"representation"
,
dict
)
),
),
featureEdges_
(
dict
.
getOrDefault
(
"featureEdges"
,
false
)),
featureEdges_
(
dict
.
getOrDefault
(
"featureEdges"
,
false
)),
backFaceCulling_
(
dict
.
getOrDefault
(
"backFaceCulling"
,
false
)),
frontFaceCulling_
(
dict
.
getOrDefault
(
"frontFaceCulling"
,
true
)),
surfaceColour_
(
nullptr
),
surfaceColour_
(
nullptr
),
edgeColour_
(
nullptr
),
edgeColour_
(
nullptr
),
surfaceActor_
(),
surfaceActor_
(),
...
...
src/runTimePostProcessing/surface.H
View file @
f4693076
...
@@ -38,6 +38,8 @@ Description
...
@@ -38,6 +38,8 @@ Description
edgeColour | Override edge colour | no |
edgeColour | Override edge colour | no |
featureEdges | Display surface feature edges | no | false
featureEdges | Display surface feature edges | no | false
maxGlyphLength | Limit for glyph representation | yes | 0
maxGlyphLength | Limit for glyph representation | yes | 0
backFaceCulling | Cull back face | no | false
frontFaceCulling | Cull front face | no | true
\endtable
\endtable
SourceFiles
SourceFiles
...
@@ -168,6 +170,12 @@ protected:
...
@@ -168,6 +170,12 @@ protected:
//- Activate feature edges
//- Activate feature edges
bool
featureEdges_
;
bool
featureEdges_
;
//- Back face culling option; default = off
bool
backFaceCulling_
;
//- Front face culling option; default = on
bool
frontFaceCulling_
;
//- Surface colour
//- Surface colour
autoPtr
<
Function1
<
vector
>>
surfaceColour_
;
autoPtr
<
Function1
<
vector
>>
surfaceColour_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment