Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/geometry/Bezier.h
| Show All 35 Lines | |||||
| using namespace Geometry; | using namespace Geometry; | ||||
| class BezierCurveSegment { | class BezierCurveSegment { | ||||
| private: | private: | ||||
| std::vector<Vec2d> _ControlPolygon; | std::vector<Vec2d> _ControlPolygon; | ||||
| std::vector<Vec2d> _Vertices; | std::vector<Vec2d> _Vertices; | ||||
| public: | public: | ||||
| BezierCurveSegment(); | |||||
| virtual ~BezierCurveSegment(); | virtual ~BezierCurveSegment(); | ||||
| void AddControlPoint(const Vec2d &iPoint); | void AddControlPoint(const Vec2d &iPoint); | ||||
| void Build(); | void Build(); | ||||
| inline int size() const | inline int size() const | ||||
| { | { | ||||
| return _ControlPolygon.size(); | return _ControlPolygon.size(); | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||