[DEBUG] missing moving point in line generation

This commit is contained in:
Edouard DUPIN 2016-08-22 22:03:03 +02:00
parent e97810c216
commit 007d0d973e
7 changed files with 7 additions and 1 deletions

View File

@ -154,6 +154,7 @@ void esvg::Circle::drawShapePoints(std::vector<std::vector<vec2>>& _out,
mtx *= _basicTrans; mtx *= _basicTrans;
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {

View File

@ -160,6 +160,7 @@ void esvg::Ellipse::drawShapePoints(std::vector<std::vector<vec2>>& _out,
mtx *= _basicTrans; mtx *= _basicTrans;
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {

View File

@ -127,6 +127,7 @@ void esvg::Line::drawShapePoints(std::vector<std::vector<vec2>>& _out,
mtx *= _basicTrans; mtx *= _basicTrans;
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {

View File

@ -337,7 +337,7 @@ void esvg::Path::drawShapePoints(std::vector<std::vector<vec2>>& _out,
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = m_listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = m_listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {

View File

@ -141,6 +141,7 @@ void esvg::Polygon::drawShapePoints(std::vector<std::vector<vec2>>& _out,
mtx *= _basicTrans; mtx *= _basicTrans;
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {

View File

@ -138,6 +138,7 @@ void esvg::Polyline::drawShapePoints(std::vector<std::vector<vec2>>& _out,
mtx *= _basicTrans; mtx *= _basicTrans;
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {

View File

@ -155,6 +155,7 @@ void esvg::Rectangle::drawShapePoints(std::vector<std::vector<vec2>>& _out,
mtx *= _basicTrans; mtx *= _basicTrans;
esvg::render::PointList listPoints; esvg::render::PointList listPoints;
listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold); listPoints = listElement.generateListPoints(_level, _recurtionMax, _threshold);
listPoints.applyMatrix(mtx);
for (auto &it : listPoints.m_data) { for (auto &it : listPoints.m_data) {
std::vector<vec2> listPoint; std::vector<vec2> listPoint;
for (auto &itDot : it) { for (auto &itDot : it) {