Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
edu
mafe
Commits
aa509365
Commit
aa509365
authored
Oct 26, 2018
by
Andreas Zilian
Browse files
Clean up.
parent
b4476789
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/meshes/area_with_hole.m
View file @
aa509365
...
...
@@ -16,18 +16,14 @@ gl1 = mgen.MgGeoLine2Point( [gp1, gp2], n );
gl2
=
mgen
.
MgGeoLine2Point
(
[
gp2
,
gp3
],
n
);
gl3
=
mgen
.
MgGeoLine2Point
(
[
gp3
,
gp4
],
n
);
gl4
=
mgen
.
MgGeoLine2Point
(
[
gp4
,
gp1
],
n
);
% number of ring => refine near the circle
a
=
0.4
;
b
=
0.8
;
c
=
0.0
;
% ellipse rotation angle in rad
% refinement
normFunc
=
mgen
.
MgNormFunction
(
mgen
.
MgNormFunctionType
.
Quadratic
);
% create area
ga1
=
mgen
.
MgGeoArea4LineEllipsoidalVoid
([
gl1
,
gl2
,
gl3
,
gl4
],
10
,
a
,
b
,
c
,
normFunc
);
% create geo object and generate the mesh
geo
=
mgen
.
MgGeo
(
[
gp1
,
gp2
,
gp3
,
gp4
],
...
[
gl1
,
gl2
,
gl3
,
gl4
],
...
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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