-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PGS 2.0 (Java 17) #94
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
….PVector) + other assorted
|
fix broken dependency
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
findShortestTour()
toPGS_PointSet
. Computes an approximate Traveling Salesman path for a set of points.pruneSparsePoints()
toPGS_PointSet
. Prunes a list of points by removing points that are considered not sufficiently dense (far away from their nearest neighbours); a counterpart toprunePointsWithinDistance()
.PGS_Morphology.variableBuffer()
that accepts a callback function to define the buffer value at each vertex.boundsCenter()
toPGS_Transformation
. Computes the center of the bounding box of a shape.delaunayTriangulation(points)
that supports a boundary constraint.fix()
toPGS_Processing
. Attempts to fix shapes with invalid geometry.frontChainPack()
that accepts a random seed.isClockwise()
toPGS_ShapePredicates
. Determines if the vertices of the specified shape form a clockwise loop.extractInnerVertices()
toPGS_Meshing
. Extracts all inner vertices from a mesh.thomasClusters()
toPGS_PointSet
. Generates random points having clustered properties using the Thomas Point Process.transform()
andtransformWithIndex()
* toPGS_Processing
. Applies a specified transformation function to each child of the given PShape and returns a new PShape containing the transformed children (*additionally with child's index).apply()
andapplyWithIndex()
* toPGS_Processing
. Applies a specified function to each child of the given PShape (*additionally with child's index).toContours()
toPGS_Conversion
. Extracts the contours from a POLYGON or PATH PShape, represented as lists of PVector points.segmentsOnExterior()
toPGS_Processing
. Extracts evenly spaced dashed line segments along the perimeter of a shape.multiplicativelyWeightedVoronoi()
toPGS_Voronoi
. Generates a Multiplicatively Weighted Voronoi Diagrams diagram for a set of weighted sites.applyRandomWeights()
toPGS_PointSet
. Applies random weights within a specified range to a list of points.findContainingFace()
toPGS_Meshing
. Finds the single face from the mesh that contains the query point.findBreaks()
toPGS_Meshing
. Returns the locations of invalid mesh face boundary segments if found.pinchWarp()
toPGS_Morphology
. Applies a pinch warping effect to a shape, distorting vertices towards a specified point.Changes
PGS_CirclePacking.stochasticPack()
will now always lie within shape bounds.PGS_Processing.pointsOnExterior()
methods now respect GROUP shapes and holes (inner rings) and will populate them with points.PGS_Morphology.simplifyDCE()
now supports GROUP shapes and polygon holes.PGS_Morphology.interpolate()
is much faster on shapes with many vertices.height
argument fromPGS.createSupercircle()
method signature.fromPVector(shell, holes)
inPGS_Conversion
tofromContours(shell, holes)
.PGS_Processing.cleanCoverage()
toPGS_Meshing
and renamed tofixBreaks()
.Fixed
urquhartFaces()
,relativeNeighborFaces()
,gabrielFaces()
andspannerFaces()
fromPGS_Meshing
now preserve holes from the input.PGS_Morphology.smoothGaussian()
is no longer (slightly) affected by the vertex ordering of the input.transform
andreference
arguments forPGS_Transformation.align()
were the wrong way round.Removed
simplifyDCE(shape, targetNumVertices)
andsimplifyDCE(shape, vertexRemovalFraction)
in favour a single method that accepts a user-defined termination callback that is supplied with the current vertex candidate's coordinate, relevance score, and the number of vertices remaining.