reorganized code into separate files

This commit is contained in:
2025-11-15 14:36:10 -08:00
parent 4363914215
commit e0f365b21b
203 changed files with 1413 additions and 1101 deletions

View File

@@ -0,0 +1,17 @@
function c = geometryIntersects(g1, g2)
c = false;
% Check if g2 contains g1
for jj = 1:size(g1.edges, 1)
if g2.containsLine(g1.vertices(g1.edges(jj, 1), 1:3), g1.vertices(g1.edges(jj, 2), 1:3))
c = true;
return;
end
end
% Check if g1 contains g2
for jj = 1:size(g2.edges, 1)
if g1.containsLine(g2.vertices(g2.edges(jj, 1), 1:3), g2.vertices(g2.edges(jj, 2), 1:3))
c = true;
return;
end
end
end