Commit 87516c23 authored by Andreas Zilian's avatar Andreas Zilian
Browse files

Make access to properties protected (accessible to children).

parent 6936aac9
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));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment