Skip to content
Snippets Groups Projects
Unverified Commit 15fdf0b7 authored by Kerautret Bertrand's avatar Kerautret Bertrand :thinking:
Browse files

Demo: fix visu pts segments in two modes

parent 41f054d6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment