Closed micycle1 closed 3 years ago
diameter()
PGS_ShapePredicates
width()
height()
createRing()
PGS_Construction
roundVertexCoords()
PGS_Triangulation.urquhartFaces()
polygonizeLines()
GROUP
List<PShape>
offsetCurvesOutwards()
offsetCurvesOutward()
PoissonDistribution
PGS_Triangulation.gabrielFaces()
ELLIPSE
offsetCurvesInward()
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 6 Code Smells
No Coverage information 1.6% Duplication
Added
diameter()
toPGS_ShapePredicates
. Computes the diameter of a shape.width()
andheight()
toPGS_ShapePredicates
.createRing()
toPGS_Construction
. Generates ring-shaped PShapes.roundVertexCoords()
to PGS_Conversion. Rounds the x and y coordinates of all vertices belonging to a shape.Changed
PGS_Triangulation.urquhartFaces()
. The new approach is typically ~3.5x faster!polygonizeLines()
now returns aGROUP
PShape (where each face is a child shape), rather thanList<PShape>
.offsetCurvesOutwards()
(outer-most lines are now noticeably more smooth).offsetCurvesOutward()
now supports multi polygons (GROUP PShapes).PoissonDistribution
; poisson point outputs are now more densely packed and more regularly spaced.GROUP
PShapes, so individual triangles are more easily accessible.Fixed
PGS_Triangulation.gabrielFaces()
no longer retains some edges that should have been removed according to the Gabriel graph condition.ELLIPSE
primitives.GROUP
PShapes containing multiple shape types (such as line and polygon).offsetCurvesInward()
applied toGROUP
PShapes no longer has a line joining shape islands.