Ported point_along_segment(), Polyline::length(), Polyline::clip_end() to XS
This commit is contained in:
@@ -38,6 +38,17 @@ MultiPoint::first_point() const
|
||||
return new Point(this->points.front());
|
||||
}
|
||||
|
||||
double
|
||||
MultiPoint::length() const
|
||||
{
|
||||
Lines lines = this->lines();
|
||||
double len = 0;
|
||||
for (Lines::iterator it = lines.begin(); it != lines.end(); ++it) {
|
||||
len += it->length();
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef SLIC3RXS
|
||||
void
|
||||
MultiPoint::from_SV(SV* poly_sv)
|
||||
|
||||
Reference in New Issue
Block a user