Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Etienne Schmitt
CGoGN
Commits
a134c4e7
Commit
a134c4e7
authored
Jun 30, 2011
by
Sylvain Thery
Browse files
bug rendu svg points
parent
26cc8e85
Changes
3
Show whitespace changes
Inline
Side-by-side
include/Algo/Render/SVG/mapSVGRender.h
View file @
a134c4e7
...
@@ -89,12 +89,8 @@ public:
...
@@ -89,12 +89,8 @@ public:
class
SvgPoints
:
public
SvgObj
class
SvgPoints
:
public
SvgObj
{
{
protected:
float
m_pointSize
;
public:
public:
SvgPoints
()
:
m_pointSize
(
4
)
{}
void
save
(
std
::
ofstream
&
out
);
void
save
(
std
::
ofstream
&
out
);
void
setPointSize
(
float
ps
)
{
m_pointSize
=
ps
;}
};
};
...
...
include/Algo/Render/SVG/mapSVGRender.hpp
View file @
a134c4e7
...
@@ -47,7 +47,7 @@ void SVGOut::renderPointsToSVG(typename PFP::MAP& map, const typename PFP::TVEC3
...
@@ -47,7 +47,7 @@ void SVGOut::renderPointsToSVG(typename PFP::MAP& map, const typename PFP::TVEC3
SvgPoints
*
points
=
new
SvgPoints
();
SvgPoints
*
points
=
new
SvgPoints
();
points
->
setColor
(
global_color
);
points
->
setColor
(
global_color
);
points
->
setWidth
(
global_width
);
DartMarker
m
(
map
,
thread
);
DartMarker
m
(
map
,
thread
);
for
(
Dart
d
=
map
.
begin
();
d
!=
map
.
end
();
map
.
next
(
d
))
for
(
Dart
d
=
map
.
begin
();
d
!=
map
.
end
();
map
.
next
(
d
))
{
{
...
...
src/Algo/Render/mapSVGRender.cpp
View file @
a134c4e7
...
@@ -90,13 +90,11 @@ void SvgPoints::save(std::ofstream& out)
...
@@ -90,13 +90,11 @@ void SvgPoints::save(std::ofstream& out)
{
{
std
::
stringstream
ss
;
std
::
stringstream
ss
;
std
::
cout
<<
"SAVE"
<<
std
::
endl
;
for
(
std
::
vector
<
Geom
::
Vec3f
>::
iterator
it
=
m_vertices
.
begin
();
it
!=
m_vertices
.
end
();
++
it
)
for
(
std
::
vector
<
Geom
::
Vec3f
>::
iterator
it
=
m_vertices
.
begin
();
it
!=
m_vertices
.
end
();
++
it
)
{
{
out
<<
"<circle cx=
\"
"
<<
(
*
it
)[
0
];
out
<<
"<circle cx=
\"
"
<<
(
*
it
)[
0
];
out
<<
"
\"
cy=
\"
"
<<
(
*
it
)[
1
];
out
<<
"
\"
cy=
\"
"
<<
(
*
it
)[
1
];
out
<<
"
\"
r=
\"
"
<<
m_
pointSize
;
out
<<
"
\"
r=
\"
"
<<
m_
width
;
out
<<
"
\"
style=
\"
stroke: none; fill: #"
;
out
<<
"
\"
style=
\"
stroke: none; fill: #"
;
out
<<
std
::
hex
;
out
<<
std
::
hex
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment