fix ray/line. add max inset visalization
This commit is contained in:
parent
7b2e723fba
commit
43a083a93a
4 changed files with 78 additions and 28 deletions
|
|
@ -2042,13 +2042,9 @@ export class Polygon {
|
|||
|
||||
// use expand / deflate technique instead
|
||||
if (opt.pump) {
|
||||
let p2 = POLY.offset([this], opt.pump, {
|
||||
z
|
||||
});
|
||||
let p2 = POLY.offset([this], opt.pump, { z });
|
||||
if (p2) {
|
||||
p2 = POLY.offset(p2, -opt.pump, {
|
||||
z
|
||||
});
|
||||
p2 = POLY.offset(p2, -opt.pump, { z });
|
||||
return p2;
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue