add 3-way trace intersections to origin candidates
This commit is contained in:
parent
4197377d85
commit
b57d815bfe
2 changed files with 28 additions and 10 deletions
|
|
@ -1560,7 +1560,12 @@ export class Polygon {
|
|||
* @returns {number} 0.0 - 1.0 from flat to perfectly circular
|
||||
*/
|
||||
circularity() {
|
||||
return (4 * Math.PI * this.area()) / util.sqr(this.perimeter());
|
||||
try {
|
||||
return (4 * Math.PI * this.area()) / util.sqr(this.perimeter());
|
||||
} catch (e) {
|
||||
console.log(this.perimeter(), e);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
circularityDeep() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue