Commit a134c4e7 authored by Sylvain Thery's avatar Sylvain Thery

bug rendu svg points

parent 26cc8e85
......@@ -89,12 +89,8 @@ public:
class SvgPoints: public SvgObj
{
protected:
float m_pointSize;
public:
SvgPoints(): m_pointSize(4) {}
void save(std::ofstream& out);
void setPointSize(float ps) {m_pointSize=ps;}
};
......
......@@ -47,7 +47,7 @@ void SVGOut::renderPointsToSVG(typename PFP::MAP& map, const typename PFP::TVEC3
SvgPoints* points = new SvgPoints();
points->setColor(global_color);
points->setWidth(global_width);
DartMarker m(map, thread);
for(Dart d = map.begin(); d != map.end(); map.next(d))
{
......
......@@ -90,13 +90,11 @@ void SvgPoints::save(std::ofstream& out)
{
std::stringstream ss;
std::cout << "SAVE" << std::endl;
for (std::vector<Geom::Vec3f>::iterator it =m_vertices.begin(); it != m_vertices.end(); ++it)
{
out << "<circle cx=\""<< (*it)[0];
out << "\" cy=\""<< (*it)[1];
out << "\" r=\""<< m_pointSize;
out << "\" r=\""<< m_width;
out << "\" style=\"stroke: none; fill: #";
out << std::hex;
......
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