namespace R2C2 {
-void Profile::append_vertex(const Point &p, bool smooth)
+void Profile::append_vertex(const Vector &p, bool smooth)
{
if(vertices.size()>1 && !vertices.back().smooth)
vertices.push_back(vertices.back());
if(vertices.back().smooth)
{
- Point &n = vertices.back().normal;
+ Vector &n = vertices.back().normal;
n.x += v.normal.x;
n.y += v.normal.y;
len = sqrt(n.x*n.x+n.y*n.y);
void Profile::Loader::point(float x, float y)
{
- obj.append_vertex(Point(x/1000, y/1000), false);
+ obj.append_vertex(Vector(x/1000, y/1000), false);
}
void Profile::Loader::smooth_point(float x, float y)
{
- obj.append_vertex(Point(x/1000, y/1000), true);
+ obj.append_vertex(Vector(x/1000, y/1000), true);
}
} // namespace R2C2