Commit 7418f52 1 parent 256dac5 commit 7418f52 Copy full SHA for 7418f52
File tree 2 files changed +4
-0
lines changed
src/main/java/micycle/pgs
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
21
* ` PGS_Morphology.rounding() ` no longer gives invalid results.
22
22
* ` PGS_ShapePredicates.elongation() ` now correctly measures shape elongation (previously inverted, now returns 1 for highly elongated shapes).
23
23
* ` PGS_Conversion.toGraph() ` now processes ` LINES ` shapes correctly.
24
+ * ` PGS_Meshing.urquhartFaces() ` no longer errors on triangulation inputs with no constraints.
24
25
25
26
### Removed
26
27
Original file line number Diff line number Diff line change @@ -511,6 +511,9 @@ public static PShape centroidQuadrangulation(final IIncrementalTin triangulation
511
511
*/
512
512
private static PShape removeHoles (PShape faces , IIncrementalTin triangulation ) {
513
513
List <IConstraint > holes = new ArrayList <>(triangulation .getConstraints ()); // copy list
514
+ if (holes .size () <= 1 ) {
515
+ return faces ;
516
+ }
514
517
holes = holes .subList (1 , holes .size ()); // slice off perimeter constraint (not a hole)
515
518
516
519
STRtree tree = new STRtree ();
You can’t perform that action at this time.
0 commit comments