Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Егор Сальков
Lab1_sem2
Commits
44c6a457
Commit
44c6a457
authored
4 years ago
by
Егор Сальков
Browse files
Options
Download
Patches
Plain Diff
Upload New File
parent
87d6a286
master
No related merge requests found
Pipeline
#1371
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Aneumesh.cpp
+37
-0
Aneumesh.cpp
with
37 additions
and
0 deletions
+37
-0
Aneumesh.cpp
0 → 100644
+
37
−
0
View file @
44c6a457
#include
"AneuMeshLoader.h"
void
AneoMeshLoader
::
LoadMesh
(
const
std
::
string
&
str
)
{
ifstream
file
(
str
);
if
(
!
file
.
is_open
())
{
throw
exc
();
}
uint16_t
k
,
r
;
file
>>
k
;
file
>>
r
;
Node
nbuf
;
for
(
int
i
=
0
;
i
<
k
;
i
++
)
{
file
>>
nbuf
;
add_node
(
nbuf
);
}
Finite_element
fbuf
;
file
>>
k
;
//!!! Лучне использовать >>
file
>>
r
;
//!!! Лучне использовать >>
for
(
int
i
=
0
;
i
<
k
;
i
++
)
{
file
>>
fbuf
;
add_Finite_Element
(
fbuf
);
}
file
>>
k
;
//!!! Лучне использовать >>
file
>>
r
;
//!!! Лучне использовать >>
Boundary_Finite_element
bbuf
;
for
(
int
i
=
0
;
i
<
k
;
i
++
)
{
file
>>
bbuf
;
add_BFE
(
bbuf
);
}
file
.
close
();
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets