Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
912847ed
Commit
912847ed
authored
Oct 18, 2009
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Fix whole-element clipping for glyphs (thanks to Shahrokh Ghavamian
for reporting the bug)
parent
b0639bf2
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Graphics/drawPost.cpp
+1
-0
1 addition, 0 deletions
Graphics/drawPost.cpp
Post/PView.h
+2
-0
2 additions, 0 deletions
Post/PView.h
Post/PViewVertexArrays.cpp
+2
-2
2 additions, 2 deletions
Post/PViewVertexArrays.cpp
doc/CREDITS.txt
+1
-1
1 addition, 1 deletion
doc/CREDITS.txt
with
6 additions
and
3 deletions
Graphics/drawPost.cpp
+
1
−
0
View file @
912847ed
...
@@ -256,6 +256,7 @@ static void drawGlyphs(drawContext *ctx, PView *p)
...
@@ -256,6 +256,7 @@ static void drawGlyphs(drawContext *ctx, PView *p)
data
->
getValue
(
opt
->
timeStep
,
ent
,
i
,
j
,
k
,
val
[
j
][
k
]);
data
->
getValue
(
opt
->
timeStep
,
ent
,
i
,
j
,
k
,
val
[
j
][
k
]);
}
}
changeCoordinates
(
p
,
ent
,
i
,
numNodes
,
type
,
numComp
,
xyz
,
val
);
changeCoordinates
(
p
,
ent
,
i
,
numNodes
,
type
,
numComp
,
xyz
,
val
);
if
(
!
isElementVisible
(
opt
,
dim
,
numNodes
,
xyz
))
continue
;
if
(
opt
->
intervalsType
==
PViewOptions
::
Numeric
)
if
(
opt
->
intervalsType
==
PViewOptions
::
Numeric
)
drawNumberGlyphs
(
ctx
,
p
,
numNodes
,
numComp
,
xyz
,
val
);
drawNumberGlyphs
(
ctx
,
p
,
numNodes
,
numComp
,
xyz
,
val
);
if
(
dim
==
2
&&
opt
->
normals
)
if
(
dim
==
2
&&
opt
->
normals
)
...
...
This diff is collapsed.
Click to expand it.
Post/PView.h
+
2
−
0
View file @
912847ed
...
@@ -132,5 +132,7 @@ class PView{
...
@@ -132,5 +132,7 @@ class PView{
void
changeCoordinates
(
PView
*
p
,
int
ient
,
int
iele
,
void
changeCoordinates
(
PView
*
p
,
int
ient
,
int
iele
,
int
numNodes
,
int
type
,
int
numComp
,
int
numNodes
,
int
type
,
int
numComp
,
double
xyz
[
PVIEW_NMAX
][
3
],
double
val
[
PVIEW_NMAX
][
9
]);
double
xyz
[
PVIEW_NMAX
][
3
],
double
val
[
PVIEW_NMAX
][
9
]);
bool
isElementVisible
(
PViewOptions
*
opt
,
int
dim
,
int
numNodes
,
double
xyz
[
PVIEW_NMAX
][
3
]);
#endif
#endif
This diff is collapsed.
Click to expand it.
Post/PViewVertexArrays.cpp
+
2
−
2
View file @
912847ed
...
@@ -265,7 +265,7 @@ static double intersectClipPlane(int clip, int numNodes, double xyz[PVIEW_NMAX][
...
@@ -265,7 +265,7 @@ static double intersectClipPlane(int clip, int numNodes, double xyz[PVIEW_NMAX][
return
val
;
return
val
;
}
}
static
bool
isElementVisible
(
PViewOptions
*
opt
,
int
dim
,
int
numNodes
,
bool
isElementVisible
(
PViewOptions
*
opt
,
int
dim
,
int
numNodes
,
double
xyz
[
PVIEW_NMAX
][
3
])
double
xyz
[
PVIEW_NMAX
][
3
])
{
{
if
(
!
CTX
::
instance
()
->
clipWholeElements
)
return
true
;
if
(
!
CTX
::
instance
()
->
clipWholeElements
)
return
true
;
...
...
This diff is collapsed.
Click to expand it.
doc/CREDITS.txt
+
1
−
1
View file @
912847ed
...
@@ -121,4 +121,4 @@ Michel Benhamou, Tom De Vuyst, Kris Van den Abeele, Simon Vun, Simon
...
@@ -121,4 +121,4 @@ Michel Benhamou, Tom De Vuyst, Kris Van den Abeele, Simon Vun, Simon
Corbin, Thomas De-Soza, Marcus Drosson, Antoine Dechaume, Jose Paulo
Corbin, Thomas De-Soza, Marcus Drosson, Antoine Dechaume, Jose Paulo
Moitinho de Almeida, Thomas Pinchard, Corrado Chisari, Axel Hackbarth,
Moitinho de Almeida, Thomas Pinchard, Corrado Chisari, Axel Hackbarth,
Peter Wainwright, Jiri Hnidek, Thierry Thomas, Konstantinos Poulios,
Peter Wainwright, Jiri Hnidek, Thierry Thomas, Konstantinos Poulios,
Laurent Van Miegroet.
Laurent Van Miegroet
, Shahrokh Ghavamian
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment