Commit 7194d2d9 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey

Some warnings resolved. Explicit constructor for Vector taking one parameter

parent 773f4665
......@@ -46,7 +46,6 @@ template <typename PFP>
bool exportPLY(typename PFP::MAP& map, const VertexAttribute<typename PFP::VEC3, typename PFP::MAP::IMPL>& position, const char* filename, bool binary)
{
typedef typename PFP::MAP MAP;
typedef typename PFP::VEC3 VEC3;
// open file
std::ofstream out ;
......@@ -990,7 +989,6 @@ template <typename PFP>
bool exportChoupi(typename PFP::MAP& map, const VertexAttribute<typename PFP::VEC3, typename PFP::MAP::IMPL>& position, const char* filename)
{
typedef typename PFP::MAP MAP;
typedef typename PFP::VEC3 VEC3;
std::ofstream out(filename, std::ios::out) ;
if (!out.good())
......
......@@ -727,7 +727,7 @@ template <typename PFP>
void computeDual(typename PFP::MAP& map, VertexAttribute<typename PFP::VEC3, typename PFP::MAP::IMPL>& position)
{
typedef typename PFP::MAP MAP ;
typedef typename PFP::MAP::IMPL MAP_IMPL ;
typedef typename MAP::IMPL MAP_IMPL ;
typedef typename PFP::VEC3 VEC3 ;
// Face Attribute -> after dual new Vertex Attribute
......
......@@ -75,7 +75,7 @@ public:
* constructor that initialize all component to a given value
* @param x the value to assign to all component
*/
Vector(T x) ;
explicit Vector(T x) ;
void set(T a) ;
......
......@@ -285,7 +285,7 @@ public:
void addGroup(SvgGroup* group) { m_groups.push_back(group); }
void write();
void write();
/**
* @brief set Attenuation Factor of color with depth
......@@ -302,7 +302,7 @@ protected:
public:
void write(const std::string& filename, float timeStep);
//void write(const std::string& filename, float timeStep);
void add(SVGOut* svg);
......
......@@ -729,8 +729,8 @@ void AnimatedSVGOut::add(SVGOut* svg)
m_svgs.push_back(svg);
}
void AnimatedSVGOut::write(const std::string& filename, float timeStep)
{
//void AnimatedSVGOut::write(const std::string& filename, float timeStep)
//{
// std::ofstream outfile(filename.c_str()) ;
// unsigned int bbX0=1000000;
......@@ -788,7 +788,7 @@ void AnimatedSVGOut::write(const std::string& filename, float timeStep)
// outfile << "</svg>" << std::endl;
// outfile.close();
}
//}
} // namespace SVG
......
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