Skip to content

Commit

Permalink
Consider inner polygons w/ high fidelity (#318)
Browse files Browse the repository at this point in the history
* When meshing with the high fidelity option, consider island/inner polygons to form additional breaklines in the mesh connectivity automatically.
  • Loading branch information
Keith Roberts authored Aug 21, 2024
1 parent 13bc3e8 commit 0750c62
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions @meshgen/meshgen.m
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,18 @@
tpfix = [];
tegfix = [];
for box_num = 1:length(obj.h0)
% Define polygons based on available geometry data
ml = obj.mainland{box_num};
il = obj.inner{box_num};
polys = {};
if ~isempty(ml), polys{end+1} = ml; end


% High fidelity - formation of point & edge constraints
if obj.high_fidelity{box_num}

% Define polygons based on available geometry data
ml = obj.mainland{box_num};
il = obj.inner{box_num};
polys = {};
if ~isempty(il), polys{end+1} = il; end
if ~isempty(ml), polys{end+1} = ml; end

if obj.cleanup == 1
warning('Setting cleanup to 0 since high_fidelity mode is on');
obj.cleanup = 0;
Expand Down

0 comments on commit 0750c62

Please sign in to comment.