Make outline simplification a kind of geometry, as well as skew correction (#961).
This commit is contained in:
parent
340d3096c3
commit
902722a1a1
3 changed files with 50 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue