Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CGoGN
CGoGN
Commits
a134c4e7
Commit
a134c4e7
authored
Jun 30, 2011
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug rendu svg points
parent
26cc8e85
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
include/Algo/Render/SVG/mapSVGRender.h
include/Algo/Render/SVG/mapSVGRender.h
+0
-4
include/Algo/Render/SVG/mapSVGRender.hpp
include/Algo/Render/SVG/mapSVGRender.hpp
+1
-1
src/Algo/Render/mapSVGRender.cpp
src/Algo/Render/mapSVGRender.cpp
+1
-3
No files found.
include/Algo/Render/SVG/mapSVGRender.h
View file @
a134c4e7
...
...
@@ -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
;}
};
...
...
include/Algo/Render/SVG/mapSVGRender.hpp
View file @
a134c4e7
...
...
@@ -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
))
{
...
...
src/Algo/Render/mapSVGRender.cpp
View file @
a134c4e7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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