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
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gmsh
gmsh
Commits
004875e3
Commit
004875e3
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix bbox bottleneck
parent
25e75a6d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Post/PViewDataGModel.cpp
+2
-1
2 additions, 1 deletion
Post/PViewDataGModel.cpp
Post/PViewDataGModel.h
+2
-1
2 additions, 1 deletion
Post/PViewDataGModel.h
Post/PViewDataGModelIO.cpp
+2
-2
2 additions, 2 deletions
Post/PViewDataGModelIO.cpp
with
6 additions
and
4 deletions
Post/PViewDataGModel.cpp
+
2
−
1
View file @
004875e3
// $Id: PViewDataGModel.cpp,v 1.2
2
2008-03-0
8 22:03:13
geuzaine Exp $
// $Id: PViewDataGModel.cpp,v 1.2
3
2008-03-0
9 14:47:32
geuzaine Exp $
//
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -36,6 +36,7 @@ PViewDataGModel::PViewDataGModel(GModel *model)
...
@@ -36,6 +36,7 @@ PViewDataGModel::PViewDataGModel(GModel *model)
_entities
.
push_back
(
*
it
);
_entities
.
push_back
(
*
it
);
for
(
GModel
::
riter
it
=
_model
->
firstRegion
();
it
!=
_model
->
lastRegion
();
++
it
)
for
(
GModel
::
riter
it
=
_model
->
firstRegion
();
it
!=
_model
->
lastRegion
();
++
it
)
_entities
.
push_back
(
*
it
);
_entities
.
push_back
(
*
it
);
_bbox
=
_model
->
bounds
();
}
}
PViewDataGModel
::~
PViewDataGModel
()
PViewDataGModel
::~
PViewDataGModel
()
...
...
This diff is collapsed.
Click to expand it.
Post/PViewDataGModel.h
+
2
−
1
View file @
004875e3
...
@@ -45,6 +45,7 @@ class PViewDataGModel : public PViewData {
...
@@ -45,6 +45,7 @@ class PViewDataGModel : public PViewData {
std
::
vector
<
stepData
<
double
>*>
_nodeData
,
_elementData
;
std
::
vector
<
stepData
<
double
>*>
_nodeData
,
_elementData
;
PViewDataList
*
_cloneToList
();
// create old-style data from this
PViewDataList
*
_cloneToList
();
// create old-style data from this
double
_min
,
_max
;
double
_min
,
_max
;
SBoundingBox3d
_bbox
;
public:
public:
PViewDataGModel
(
GModel
*
model
);
PViewDataGModel
(
GModel
*
model
);
~
PViewDataGModel
();
~
PViewDataGModel
();
...
@@ -53,7 +54,7 @@ class PViewDataGModel : public PViewData {
...
@@ -53,7 +54,7 @@ class PViewDataGModel : public PViewData {
double
getTime
(
int
step
);
double
getTime
(
int
step
);
double
getMin
(
int
step
=-
1
);
double
getMin
(
int
step
=-
1
);
double
getMax
(
int
step
=-
1
);
double
getMax
(
int
step
=-
1
);
SBoundingBox3d
getBoundingBox
(){
return
_
model
->
bounds
()
;
}
SBoundingBox3d
getBoundingBox
(){
return
_
bbox
;
}
int
getNumEntities
();
int
getNumEntities
();
int
getNumElements
(
int
ent
=-
1
);
int
getNumElements
(
int
ent
=-
1
);
int
getDimension
(
int
ent
,
int
ele
);
int
getDimension
(
int
ent
,
int
ele
);
...
...
This diff is collapsed.
Click to expand it.
Post/PViewDataGModelIO.cpp
+
2
−
2
View file @
004875e3
// $Id: PViewDataGModelIO.cpp,v 1.
3
2008-03-0
8 22:03:13
geuzaine Exp $
// $Id: PViewDataGModelIO.cpp,v 1.
4
2008-03-0
9 14:47:32
geuzaine Exp $
//
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -40,7 +40,7 @@ bool PViewDataGModel::readMSH(FILE *fp, bool binary, bool swap, int timeStep, do
...
@@ -40,7 +40,7 @@ bool PViewDataGModel::readMSH(FILE *fp, bool binary, bool swap, int timeStep, do
_nodeData
[
timeStep
]
->
time
=
time
;
_nodeData
[
timeStep
]
->
time
=
time
;
_nodeData
[
timeStep
]
->
values
.
resize
(
numNodes
);
_nodeData
[
timeStep
]
->
values
.
resize
(
numNodes
);
if
(
binary
){
if
(
0
&&
binary
){
Msg
(
GERROR
,
"not ready yet for binary"
);
Msg
(
GERROR
,
"not ready yet for binary"
);
return
0
;
return
0
;
}
}
...
...
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