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
Package registry
Model registry
Operate
Terraform modules
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
Romin Tomasetti
gmsh
Commits
fec7a16c
Commit
fec7a16c
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix reading of second order elements
parent
8360b8e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/GModelIO_VTK.cpp
+9
-7
9 additions, 7 deletions
Geo/GModelIO_VTK.cpp
with
9 additions
and
7 deletions
Geo/GModelIO_VTK.cpp
+
9
−
7
View file @
fec7a16c
...
@@ -249,11 +249,13 @@ int GModel::readVTK(const std::string &name, bool bigEndian)
...
@@ -249,11 +249,13 @@ int GModel::readVTK(const std::string &name, bool bigEndian)
case
13
:
elements
[
6
][
1
].
push_back
(
new
MPrism
(
cells
[
i
]));
break
;
case
13
:
elements
[
6
][
1
].
push_back
(
new
MPrism
(
cells
[
i
]));
break
;
case
14
:
elements
[
7
][
1
].
push_back
(
new
MPyramid
(
cells
[
i
]));
break
;
case
14
:
elements
[
7
][
1
].
push_back
(
new
MPyramid
(
cells
[
i
]));
break
;
// second order elements
// second order elements
case
21
:
elements
[
1
][
1
].
push_back
(
new
MLine
(
cells
[
i
]));
break
;
case
21
:
elements
[
1
][
1
].
push_back
(
new
MLine3
(
cells
[
i
]));
break
;
case
22
:
elements
[
2
][
1
].
push_back
(
new
MTriangle
(
cells
[
i
]));
break
;
case
22
:
elements
[
2
][
1
].
push_back
(
new
MTriangle6
(
cells
[
i
]));
break
;
case
23
:
elements
[
3
][
1
].
push_back
(
new
MQuadrangle
(
cells
[
i
]));
break
;
case
23
:
elements
[
3
][
1
].
push_back
(
new
MQuadrangle8
(
cells
[
i
]));
break
;
case
24
:
elements
[
4
][
1
].
push_back
(
new
MTetrahedron
(
cells
[
i
]));
break
;
case
28
:
elements
[
3
][
1
].
push_back
(
new
MQuadrangle9
(
cells
[
i
]));
break
;
case
25
:
elements
[
5
][
1
].
push_back
(
new
MHexahedron
(
cells
[
i
]));
break
;
case
24
:
elements
[
4
][
1
].
push_back
(
new
MTetrahedron10
(
cells
[
i
]));
break
;
case
25
:
elements
[
5
][
1
].
push_back
(
new
MHexahedron20
(
cells
[
i
]));
break
;
case
29
:
elements
[
5
][
1
].
push_back
(
new
MHexahedron27
(
cells
[
i
]));
break
;
default:
default:
Msg
::
Error
(
"Unknown type of cell %d"
,
type
);
Msg
::
Error
(
"Unknown type of cell %d"
,
type
);
break
;
break
;
...
@@ -297,7 +299,7 @@ int GModel::readVTK(const std::string &name, bool bigEndian)
...
@@ -297,7 +299,7 @@ int GModel::readVTK(const std::string &name, bool bigEndian)
}
}
}
}
else
{
else
{
Msg
::
Error
(
"
TODO: implement reading li
ne
s
for binary files
\n
"
);
Msg
::
Error
(
"
Line import not do
ne for binary
VTK
files"
);
}
}
}
}
...
...
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