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
2af82cd7
Commit
2af82cd7
authored
Oct 26, 2018
by
Andreas Zilian
Browse files
Add norm function to line definitions.
parent
722d7feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/statics/slabs/example_static_membr2d.m
View file @
2af82cd7
...
...
@@ -25,16 +25,16 @@ gp6 = mgen.MgGeoPoint( [0*d, 8*d] );
gp7
=
mgen
.
MgGeoPoint
(
[
4
*
d
,
8
*
d
]
);
gp8
=
mgen
.
MgGeoPoint
(
[
8
*
d
,
8
*
d
]
);
% create all geo lines
gl1
=
mgen
.
MgGeoLine2Point
(
[
gp1
,
gp2
],
4
*
n
);
gl2
=
mgen
.
MgGeoLine2Point
(
[
gp3
,
gp4
],
2
);
gl3
=
mgen
.
MgGeoLine2Point
(
[
gp6
,
gp7
],
2
);
gl4
=
mgen
.
MgGeoLine2Point
(
[
gp4
,
gp5
],
4
*
n
);
gl5
=
mgen
.
MgGeoLine2Point
(
[
gp7
,
gp8
],
2
);
gl6
=
mgen
.
MgGeoLine2Point
(
[
gp1
,
gp3
],
3
*
n
);
gl7
=
mgen
.
MgGeoLine2Point
(
[
gp2
,
gp4
],
2
);
gl8
=
mgen
.
MgGeoLine2Point
(
[
gp3
,
gp6
],
5
*
n
);
gl9
=
mgen
.
MgGeoLine2Point
(
[
gp4
,
gp7
],
2
);
gl10
=
mgen
.
MgGeoLine2Point
(
[
gp8
,
gp5
],
2
);
gl1
=
mgen
.
MgGeoLine2Point
(
[
gp1
,
gp2
],
4
*
n
,
nf2
);
gl2
=
mgen
.
MgGeoLine2Point
(
[
gp3
,
gp4
],
2
,
nf2
);
gl3
=
mgen
.
MgGeoLine2Point
(
[
gp6
,
gp7
],
2
,
nf2
);
gl4
=
mgen
.
MgGeoLine2Point
(
[
gp4
,
gp5
],
4
*
n
,
nf1
);
gl5
=
mgen
.
MgGeoLine2Point
(
[
gp7
,
gp8
],
2
,
nf1
);
gl6
=
mgen
.
MgGeoLine2Point
(
[
gp1
,
gp3
],
3
*
n
,
nf2
);
gl7
=
mgen
.
MgGeoLine2Point
(
[
gp2
,
gp4
],
2
,
nf2
);
gl8
=
mgen
.
MgGeoLine2Point
(
[
gp3
,
gp6
],
5
*
n
,
nf1
);
gl9
=
mgen
.
MgGeoLine2Point
(
[
gp4
,
gp7
],
2
,
nf1
);
gl10
=
mgen
.
MgGeoLine2Point
(
[
gp8
,
gp5
],
2
,
nf2
);
% create all geo areas
ga1
=
mgen
.
MgGeoArea4Line
(
[
gl1
,
gl7
,
gl2
,
gl6
]
);
ga2
=
mgen
.
MgGeoArea4Line
(
[
gl2
,
gl9
,
gl3
,
gl8
]
);
...
...
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