From 15fdf0b711064717a0bf1db0d5d7430fbfd93a2a Mon Sep 17 00:00:00 2001 From: Kerautret <bertrand.kerautret@univ-lyon2.fr> Date: Thu, 27 Dec 2018 00:22:32 +0100 Subject: [PATCH] Demo: fix visu pts segments in two modes --- Code/Seg/IPOLdemo/Scripts/displaySegments.sh | 3 +++ Code/Seg/IPOLdemo/mainIPOL.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/Code/Seg/IPOLdemo/Scripts/displaySegments.sh b/Code/Seg/IPOLdemo/Scripts/displaySegments.sh index f43bc50..f4e9e4a 100755 --- a/Code/Seg/IPOLdemo/Scripts/displaySegments.sh +++ b/Code/Seg/IPOLdemo/Scripts/displaySegments.sh @@ -10,6 +10,9 @@ OUT_FILE_BASENAME=$3 displayLineSegments -i ${LINE_FILE} -o ${OUT_FILE_BASENAME}.fig --backgroundImage ${BG_IMAGE} fig2dev -L eps ${OUT_FILE_BASENAME}.fig ${OUT_FILE_BASENAME}.eps convert -background \#FFFFFF -flatten ${OUT_FILE_BASENAME}.eps -geometry 512x ${OUT_FILE_BASENAME}.png +displaySet2dPts -i segmentsPoints.dat -o ${OUT_FILE_BASENAME}Pts.fig +fig2dev -L eps ${OUT_FILE_BASENAME}Pts.fig ${OUT_FILE_BASENAME}Pts.eps +convert -background \#FFFFFF -flatten ${OUT_FILE_BASENAME}Pts.eps -geometry 512x ${OUT_FILE_BASENAME}Pts.png diff --git a/Code/Seg/IPOLdemo/mainIPOL.cpp b/Code/Seg/IPOLdemo/mainIPOL.cpp index f77c276..ffc3360 100755 --- a/Code/Seg/IPOLdemo/mainIPOL.cpp +++ b/Code/Seg/IPOLdemo/mainIPOL.cpp @@ -131,6 +131,12 @@ int main (int argc, char *argv[]) fout << points.front().x() << " " << points.front().y() << " " << points.back().x() << " " << points.back().y() << std::endl; + // Export pour l'affichage de tous les points d'un segments + for(auto &p : points) + { + foutAllPts<< p.x() << " " << p.y() << " "; + } + foutAllPts<< std::endl; // Affichage du DSS englobant // vector<Pt2i> bnd; @@ -203,5 +209,6 @@ int main (int argc, char *argv[]) } } fout.close(); + foutAllPts.close(); return (0); } -- GitLab