Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c7827342
Commit
c7827342
authored
Oct 14, 2008
by
mattijs
Browse files
extend, never shrink patch info
parent
4d7cd473
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/triSurface/triSurface/interfaces/STL/readSTLASCII.L
View file @
c7827342
...
...
@@ -459,6 +459,7 @@ bool triSurface::readSTLASCII(const fileName& STLfileName)
patches_[iter()].name() = iter.key();
}
// Fill in the missing information in the patches
setDefaultPatches();
return true;
...
...
src/triSurface/triSurface/triSurface.C
View file @
c7827342
...
...
@@ -631,15 +631,16 @@ surfacePatchList triSurface::calcPatches(labelList& faceMap) const
faceMap
=
sortedRegion
.
indices
();
// Compact regions
// Get last region
//label maxRegion = 0; // for compacted regions
// Extend regions
label
maxRegion
=
patches_
.
size
()
-
1
;
// for non-compacted regions
if
(
faceMap
.
size
()
>
0
)
{
maxRegion
=
operator
[](
faceMap
[
faceMap
.
size
()
-
1
]).
region
();
maxRegion
=
max
(
maxRegion
,
operator
[](
faceMap
[
faceMap
.
size
()
-
1
]).
region
()
);
}
// Get new region list
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment