Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
skramm committed Apr 1, 2024
1 parent b21e14b commit e5e5f5d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions homog2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11384,6 +11384,9 @@ using OPolylineL = base::PolylineBase<type::IsOpen,long double>;
/// Holds private stuff related to SVG import
namespace svg {

/// Private functions related to the SVG import code
namespace svgp {

//-------------------------------------------------------------------
/// General string tokenizer, taken from http://stackoverflow.com/a/236803/193789
/**
Expand Down Expand Up @@ -11460,8 +11463,6 @@ parsePoints( const char* pts )
return out;
}

/// Private functions related to the SVG import code
namespace svgp {

inline
bool isDigit( char c )
Expand Down Expand Up @@ -11886,7 +11887,7 @@ bool Visitor::VisitExit( const tinyxml2::XMLElement& e )
case T_polygon:
{
auto pts_str = getAttribString( "points", e );
auto vec_pts = parsePoints( pts_str );
auto vec_pts = svgp::parsePoints( pts_str );
std::unique_ptr<rtp::Root> p( new CPolyline(vec_pts) );
_vec.push_back( std::move(p) );
}
Expand All @@ -11895,7 +11896,7 @@ bool Visitor::VisitExit( const tinyxml2::XMLElement& e )
case T_polyline:
{
auto pts_str = getAttribString( "points", e );
auto vec_pts = parsePoints( pts_str );
auto vec_pts = svgp::parsePoints( pts_str );
std::unique_ptr<rtp::Root> p( new OPolyline(vec_pts) );
_vec.push_back( std::move(p) );
}
Expand Down Expand Up @@ -11924,7 +11925,7 @@ bool Visitor::VisitExit( const tinyxml2::XMLElement& e )
auto y = getAttribValue( e, "cy", n );
auto rx = getAttribValue( e, "rx", n );
auto ry = getAttribValue( e, "ry", n );
auto rot = getEllipseRotateAttr( getAttribString( "transform", e ) );
auto rot = svgp::getEllipseRotateAttr( getAttribString( "transform", e ) );
Ellipse* ell = new Ellipse( x, y, rx, ry );

auto H = Homogr().addTranslation(-x,-y).addRotation(rot.second).addTranslation(x,y);
Expand Down

0 comments on commit e5e5f5d

Please sign in to comment.