[DEBUG] correct line generations
This commit is contained in:
parent
cb9f67b530
commit
ae7ee334d2
@ -433,7 +433,7 @@ void esvg::Base::setId(const std::string& _newId) {
|
||||
|
||||
void esvg::Base::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
|
||||
|
@ -83,7 +83,7 @@ namespace esvg {
|
||||
*/
|
||||
virtual void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1);
|
||||
|
||||
|
@ -147,7 +147,7 @@ void esvg::Circle::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t
|
||||
|
||||
void esvg::Circle::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Circle");
|
||||
|
@ -22,7 +22,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
private:
|
||||
|
@ -153,7 +153,7 @@ void esvg::Ellipse::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t
|
||||
|
||||
void esvg::Ellipse::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Ellipse");
|
||||
|
@ -22,7 +22,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
private:
|
||||
|
@ -118,7 +118,7 @@ void esvg::Group::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _
|
||||
|
||||
void esvg::Group::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW shape esvg::group");
|
||||
|
@ -22,7 +22,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
};
|
||||
|
@ -120,7 +120,7 @@ void esvg::Line::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _l
|
||||
|
||||
void esvg::Line::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Line");
|
||||
|
@ -22,7 +22,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
private:
|
||||
|
@ -329,7 +329,7 @@ void esvg::Path::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _l
|
||||
|
||||
void esvg::Path::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Path");
|
||||
@ -341,7 +341,6 @@ void esvg::Path::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
listPoints = m_listElement.generateListPoints(_level, _recurtionMax, _threshold);
|
||||
|
||||
for (auto &it : listPoints.m_data) {
|
||||
ESVG_CRITICAL("add list... " << it.size() << " / " << m_listElement.m_listElement.size());
|
||||
std::vector<vec2> listPoint;
|
||||
for (auto &itDot : it) {
|
||||
listPoint.push_back(itDot.m_pos);
|
||||
|
@ -22,7 +22,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
};
|
||||
|
@ -134,7 +134,7 @@ void esvg::Polygon::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t
|
||||
|
||||
void esvg::Polygon::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Polygon");
|
||||
|
@ -29,7 +29,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
private:
|
||||
|
@ -131,7 +131,7 @@ void esvg::Polyline::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_
|
||||
|
||||
void esvg::Polyline::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Polyline");
|
||||
|
@ -22,7 +22,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
private:
|
||||
|
@ -148,7 +148,7 @@ void esvg::Rectangle::draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32
|
||||
|
||||
void esvg::Rectangle::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW Shape esvg::Rectangle");
|
||||
|
@ -23,7 +23,7 @@ namespace esvg {
|
||||
void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level) override;
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
private:
|
||||
|
@ -1,8 +1,6 @@
|
||||
/** @file
|
||||
* @author Edouard DUPIN
|
||||
*
|
||||
* @copyright 2011, Edouard DUPIN, all right reserved
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
|
||||
@ -390,7 +388,7 @@ std::vector<std::vector<vec2>> esvg::Document::getLines(vec2 _size) {
|
||||
|
||||
void esvg::Document::drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << "DRAW shape esvg::Document");
|
||||
|
@ -1,8 +1,6 @@
|
||||
/** @file
|
||||
* @author Edouard DUPIN
|
||||
*
|
||||
* @copyright 2011, Edouard DUPIN, all right reserved
|
||||
*
|
||||
* @license APACHE v2.0 (see license file)
|
||||
*/
|
||||
#pragma once
|
||||
@ -96,7 +94,7 @@ namespace esvg {
|
||||
protected:
|
||||
void drawShapePoints(std::vector<std::vector<vec2>>& _out,
|
||||
int32_t _recurtionMax,
|
||||
int32_t _threshold,
|
||||
float _threshold,
|
||||
mat2& _basicTrans,
|
||||
int32_t _level=1) override;
|
||||
};
|
||||
|
@ -509,10 +509,6 @@ esvg::render::PointList esvg::render::Path::generateListPoints(int32_t _level, i
|
||||
out.addList(tmpListPoint);
|
||||
tmpListPoint.clear();
|
||||
}
|
||||
ESVG_VERBOSE(spacingDist(_level) << " ==> " << out.m_data.size());
|
||||
for (auto &it : out.m_data) {
|
||||
ESVG_VERBOSE(spacingDist(_level) << " " << it.size());
|
||||
}
|
||||
out.display();
|
||||
return out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user