Make outline simplification a kind of geometry, as well as skew correction (#961).

This commit is contained in:
be5invis 2021-04-19 18:03:15 -07:00
parent 340d3096c3
commit 902722a1a1
3 changed files with 50 additions and 21 deletions

View file

@ -38,7 +38,9 @@ class ContourGeometry extends GeometryBase {
}
asContours() {
if (this.isEmpty()) return [];
else return [this.m_points];
let c1 = [];
for (const z of this.m_points) c1.push(Point.from(z.type, z));
return [c1];
}
asReferences() {
return null;