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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
f1cb0167
Commit
f1cb0167
authored
11 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
MergePostProcessingFile now only changes the bounding box if no bounding box exists
parent
61ac7c43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Common/OpenFile.cpp
+5
-3
5 additions, 3 deletions
Common/OpenFile.cpp
Common/OpenFile.h
+1
-1
1 addition, 1 deletion
Common/OpenFile.h
with
6 additions
and
4 deletions
Common/OpenFile.cpp
+
5
−
3
View file @
f1cb0167
...
...
@@ -262,7 +262,8 @@ static int defineSolver(const std::string &name)
return
NUM_SOLVERS
-
1
;
}
int
MergeFile
(
const
std
::
string
&
fileName
,
bool
warnIfMissing
,
bool
setWindowTitle
)
int
MergeFile
(
const
std
::
string
&
fileName
,
bool
warnIfMissing
,
bool
setWindowTitle
,
bool
setBoundingBox
)
{
if
(
GModel
::
current
()
->
getName
()
==
""
){
GModel
::
current
()
->
setFileName
(
fileName
);
...
...
@@ -470,7 +471,7 @@ int MergeFile(const std::string &fileName, bool warnIfMissing, bool setWindowTit
}
ComputeMaxEntityNum
();
SetBoundingBox
();
if
(
setBoundingBox
)
SetBoundingBox
();
CTX
::
instance
()
->
geom
.
draw
=
1
;
CTX
::
instance
()
->
mesh
.
changed
=
ENT_ALL
;
...
...
@@ -542,7 +543,8 @@ int MergePostProcessingFile(const std::string &fileName, bool showLastStep,
GModel
*
m
=
new
GModel
();
GModel
::
setCurrent
(
m
);
}
int
ret
=
MergeFile
(
fileName
,
warnIfMissing
);
int
ret
=
MergeFile
(
fileName
,
warnIfMissing
,
true
,
old
->
bounds
().
empty
()
?
true
:
false
);
GModel
::
setCurrent
(
old
);
old
->
setVisibility
(
1
);
...
...
This diff is collapsed.
Click to expand it.
Common/OpenFile.h
+
1
−
1
View file @
f1cb0167
...
...
@@ -13,7 +13,7 @@ void ParseString(const std::string &str);
void
OpenProject
(
const
std
::
string
&
filename
,
bool
setWindowTitle
=
true
);
void
OpenProjectMacFinder
(
const
char
*
fileName
);
int
MergeFile
(
const
std
::
string
&
fileName
,
bool
warnIfMissing
=
false
,
bool
setWindowTitle
=
true
);
bool
setWindowTitle
=
true
,
bool
setBoundingBox
=
true
);
int
MergePostProcessingFile
(
const
std
::
string
&
fileName
,
bool
showLastStep
=
false
,
bool
hideNewViews
=
false
,
bool
warnIfMissing
=
false
);
void
ClearProject
();
...
...
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