Commit 37ebe5fa authored by amandaghassaei's avatar amandaghassaei

find intersections within set

parent 6e9d647d
...@@ -646,16 +646,21 @@ function initPattern(globals){ ...@@ -646,16 +646,21 @@ function initPattern(globals){
} }
function findIntersections(_verticesRaw, _outlinesRaw, _mountainsRaw, _valleysRaw, _cutsRaw, _triangulationsRaw){ function findIntersections(_verticesRaw, _outlinesRaw, _mountainsRaw, _valleysRaw, _cutsRaw, _triangulationsRaw){
findIntersectionsInSets(_verticesRaw, _outlinesRaw, _outlinesRaw);
findIntersectionsInSets(_verticesRaw, _outlinesRaw, _mountainsRaw); findIntersectionsInSets(_verticesRaw, _outlinesRaw, _mountainsRaw);
findIntersectionsInSets(_verticesRaw, _outlinesRaw, _valleysRaw); findIntersectionsInSets(_verticesRaw, _outlinesRaw, _valleysRaw);
findIntersectionsInSets(_verticesRaw, _outlinesRaw, _cutsRaw); findIntersectionsInSets(_verticesRaw, _outlinesRaw, _cutsRaw);
findIntersectionsInSets(_verticesRaw, _outlinesRaw, _triangulationsRaw); findIntersectionsInSets(_verticesRaw, _outlinesRaw, _triangulationsRaw);
findIntersectionsInSets(_verticesRaw, _mountainsRaw, _mountainsRaw);
findIntersectionsInSets(_verticesRaw, _mountainsRaw, _valleysRaw); findIntersectionsInSets(_verticesRaw, _mountainsRaw, _valleysRaw);
findIntersectionsInSets(_verticesRaw, _mountainsRaw, _cutsRaw); findIntersectionsInSets(_verticesRaw, _mountainsRaw, _cutsRaw);
findIntersectionsInSets(_verticesRaw, _mountainsRaw, _triangulationsRaw); findIntersectionsInSets(_verticesRaw, _mountainsRaw, _triangulationsRaw);
findIntersectionsInSets(_verticesRaw, _valleysRaw, _valleysRaw);
findIntersectionsInSets(_verticesRaw, _valleysRaw, _cutsRaw); findIntersectionsInSets(_verticesRaw, _valleysRaw, _cutsRaw);
findIntersectionsInSets(_verticesRaw, _valleysRaw, _triangulationsRaw); findIntersectionsInSets(_verticesRaw, _valleysRaw, _triangulationsRaw);
findIntersectionsInSets(_verticesRaw, _cutsRaw, _cutsRaw);
findIntersectionsInSets(_verticesRaw, _cutsRaw, _triangulationsRaw); findIntersectionsInSets(_verticesRaw, _cutsRaw, _triangulationsRaw);
findIntersectionsInSets(_verticesRaw, _triangulationsRaw, _triangulationsRaw);
} }
function findIntersectionsInSets(_verticesRaw, set1, set2){ function findIntersectionsInSets(_verticesRaw, set1, set2){
......
Markdown is supported
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