[DEBUG] missing moving point in line generation
This commit is contained in:
parent
e97810c216
commit
007d0d973e
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user