Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/geometry/Bezier.cpp
| Show All 20 Lines | |||||
| #include "Bezier.h" | #include "Bezier.h" | ||||
| #include "FitCurve.h" | #include "FitCurve.h" | ||||
| using namespace std; | using namespace std; | ||||
| namespace Freestyle { | namespace Freestyle { | ||||
| BezierCurveSegment::BezierCurveSegment() | BezierCurveSegment::~BezierCurveSegment() = default; | ||||
| { | |||||
| } | |||||
| BezierCurveSegment::~BezierCurveSegment() | |||||
| { | |||||
| } | |||||
| void BezierCurveSegment::AddControlPoint(const Vec2d &iPoint) | void BezierCurveSegment::AddControlPoint(const Vec2d &iPoint) | ||||
| { | { | ||||
| _ControlPolygon.push_back(iPoint); | _ControlPolygon.push_back(iPoint); | ||||
| if (_ControlPolygon.size() == 4) { | if (_ControlPolygon.size() == 4) { | ||||
| Build(); | Build(); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||