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
87516c23
Commit
87516c23
authored
Oct 26, 2018
by
Andreas Zilian
Browse files
Make access to properties protected (accessible to children).
parent
6936aac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
+mgen/MgGeoArea4LineEllipsoidalVoid.m
View file @
87516c23
classdef
MgGeoArea4LineEllipsoidalVoid
<
mgen
.
MgGeoArea4Line
% A 4-line defined area of the geometry with a ellipsoidal hole
properties
properties
(
Access
=
protected
)
nrings
=
2
;
% the number of rings between hole and outer lines
parama
=
1
;
% ellipse parameter a
paramb
=
1
;
% ellipse parameter b
...
...
@@ -115,7 +115,7 @@ classdef MgGeoArea4LineEllipsoidalVoid < mgen.MgGeoArea4Line
end
% some bugs occurs if user sets the type of normFunction.
if
self
.
normFunction
.
vals
(
1
)
>
self
.
normFunction
.
vals
(
2
)
self
.
normFunction
.
vals
=
sort
(
self
.
normFunction
.
vals
)
self
.
normFunction
.
vals
=
sort
(
self
.
normFunction
.
vals
)
;
end
scale
=
self
.
normFunction
.
eval
(
mm
/
segments
);
...
...
@@ -153,6 +153,7 @@ classdef MgGeoArea4LineEllipsoidalVoid < mgen.MgGeoArea4Line
end
end
end
% defensive programming: check if ringNodes is filled.
assert
(
~
isempty
(
self
.
ringNodes
));
...
...
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