Index
All Classes and Interfaces|All Packages
A
- align(PShape, PShape) - Static method in class micycle.pgs.PGS_Transformation
-
Aligns one polygon shape to another, using Procrustes analysis to find the optimal transformation.
- align(PShape, PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Aligns one polygon shape to another, using Procrustes analysis to find the optimal transformation.
- align(PShape, PShape, double, boolean, boolean, boolean) - Static method in class micycle.pgs.PGS_Transformation
-
Aligns one polygon shape to another, allowing for control over the application of scaling, translation, and rotation transformations individually.
- annularBricks(int, double, double, double, double, double) - Static method in class micycle.pgs.PGS_Tiling
-
Generates a geometric arrangement composed of annular-sector bricks arranged in concentric circular rings.
- apply(PShape, Consumer<PShape>) - Static method in class micycle.pgs.PGS_Processing
-
Applies a specified function to each child of the given PShape.
- applyRandomWeights(List<PVector>, double, double) - Static method in class micycle.pgs.PGS_PointSet
-
Applies random weights within a specified range to a list of points.
- applyRandomWeights(List<PVector>, double, double, long) - Static method in class micycle.pgs.PGS_PointSet
-
Applies random weights within a specified range to a list of points.
- applyTo(PShape) - Method in class micycle.pgs.PGS_Conversion.PShapeData
-
Apply this shapedata to a given PShape.
- applyWithIndex(PShape, BiConsumer<Integer, PShape>) - Static method in class micycle.pgs.PGS_Processing
-
Applies a specified function to each child of the given PShape, providing the index of each child.
- arcDivision(double, double, int, long) - Static method in class micycle.pgs.PGS_Tiling
-
Creates a cellular partition of the plane using arcs formed by circles seeded along its boundary.
- area(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the area of the given shape.
- areaMerge(PShape, double) - Static method in class micycle.pgs.PGS_Meshing
-
Merges all faces in the given mesh that are smaller than a specified area threshold into their larger neighbors, and repeats this process until no face remains below the threshold.
- areaMerge(PShape, int) - Static method in class micycle.pgs.PGS_Meshing
-
Merges the smallest faces (by area) in the given mesh into their adjacent neighbors until the mesh has no more than a specified number of faces.
B
- BestAreaFit - Enum constant in enum class micycle.pgs.PGS_Optimisation.RectPackHeuristic
-
Packs rectangles such that the wasted/empty area within the bin is minimised.
- BEVEL - Enum constant in enum class micycle.pgs.PGS_Contour.OffsetStyle
- binPack(List<PShape>, double, double, int, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Packs a list of irregular polygonal shapes into (potentially multiple) rectangular containers (bins), while attempting to minimise the occupied space of the packing.
- boundingBox(PShape) - Static method in class micycle.pgs.PGS_Hull
-
Calculates the bounding box (envelope) for the given
PShape
and returns it as a newPShape
. - boundingBox(PShape, double[]) - Static method in class micycle.pgs.PGS_Hull
-
Computes the bounding box (envelope) of the given
PShape
and writes its coordinates to the provided array. - boundsCenter(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the center of the bounding box of a shape.
- buffer(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Returns a rounded buffer region of the given shape at the specified distance.
- buffer(PShape, double, PGS_Contour.OffsetStyle) - Static method in class micycle.pgs.PGS_Morphology
-
Returns a buffer region of the given shape using the specified join style.
- buffer(PShape, double, PGS_Contour.OffsetStyle, PGS_Morphology.CapStyle) - Static method in class micycle.pgs.PGS_Morphology
-
Returns a buffer region of the given shape using the specified join and cap styles.
C
- centerLine(PShape) - Static method in class micycle.pgs.PGS_Contour
-
Calculates the longest center line passing through a given shape (using default straightness weighting and smoothing parameters).
- centerLine(PShape, double, double) - Static method in class micycle.pgs.PGS_Contour
-
Calculates the longest center line passing through a given shape.
- centroid(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the centroid of a shape.
- centroidQuadrangulation(IIncrementalTin, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a quadrangulation from a triangulation by "inverting" triangles (for each triangle, create edges joining its centroid to each of its vertices).
- centroidSortFaces(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Returns a new, flattened PShape containing the child faces of
mesh
sorted by the x and then y coordinates of their centroids. - centroidSplit(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Splits the input shape into multiple wedge-shaped regions by connecting the centroid to each vertex.
- centroidSplit(PShape, int, double) - Static method in class micycle.pgs.PGS_Processing
-
Splits the input shape into
n
wedge-shaped regions by connecting the centroid to points along the perimeter. - chaikinCut(PShape, double, int) - Static method in class micycle.pgs.PGS_Morphology
-
Smoothes a shape by recursively cutting its corners, a technique introduced by George Chaikin in 1974.
- chordalAxis(PShape) - Static method in class micycle.pgs.PGS_Contour
-
Computes the chordal axis of a shape, which provides a characterization of the skeleton of a shape.
- circleCoverage(PShape, int) - Static method in class micycle.pgs.PGS_Optimisation
-
Covers a polygon with n circles such that no circle’s center lies outside the polygon.
- circleCoverage(PShape, int, long) - Static method in class micycle.pgs.PGS_Optimisation
-
Covers a polygon with n circles such that no circle’s center lies outside the polygon.
- circularity(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Calculates the Miller circularity index for a shape.
- closestPoint(Collection<PVector>, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Finds the closest point in the collection to a specified point.
- closestPoint(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Returns the nearest point along the edges of the given shape to the specified query point.
- closestPointPair(Collection<PVector>) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the closest pair of points in a set of points.
- closestPoints(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Returns the nearest point for each "island" / separate polygon in the GROUP input shape.
- closestVertex(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Returns the closest vertex of a shape to a query point.
- cluster(Collection<PVector>, int) - Static method in class micycle.pgs.PGS_PointSet
-
Clusters points into N groups, using k-means clustering.
- cluster(Collection<PVector>, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Clusters points into N groups, using k-means clustering.
- COARSE - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
Finds the coarsest coloring of a graph.
- colorMesh(Collection<PShape>, PGS_Coloring.ColoringAlgorithm) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given mesh shape, returning a color class for each mesh face.
- colorMesh(PShape, PGS_Coloring.ColoringAlgorithm) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given mesh shape, returning a color class for each mesh face.
- colorMesh(PShape, PGS_Coloring.ColoringAlgorithm, int[]) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given mesh shape and colors its faces using the colors provided.
- colorMesh(PShape, PGS_Coloring.ColoringAlgorithm, String[]) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given mesh shape and colors its faces using the colors provided.
- colorNonMesh(PShape, PGS_Coloring.ColoringAlgorithm) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given non-conforming mesh shape, returning a color class for each face of the pre-processed (noded) mesh.
- colorNonMesh(PShape, PGS_Coloring.ColoringAlgorithm, int[]) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given non-conforming mesh shape and colors the faces of its noded representation using the colors provided.
- colorNonMesh(PShape, PGS_Coloring.ColoringAlgorithm, String[]) - Static method in class micycle.pgs.PGS_Coloring
-
Computes a coloring of the given non-conforming mesh shape and colors the faces of its noded representation using the colors provided.
- complement(PShape, double, double) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Calculates the complement (or inverse) of the provided shape within a rectangular boundary of specified width and height, anchored at (0, 0).
- compoundVoronoi(PShape) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram for a set of disjoint shapes.
- compoundVoronoi(PShape, double[]) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram for a set of disjoint shapes.
- concaveHull(PShape, double, boolean) - Static method in class micycle.pgs.PGS_Hull
-
Constructs a concave hull of a set of polygons, respecting the polygons as constraints (i.e. the hull is guaranteed to contain the polygons).
- concaveHullBFS(List<PVector>, double) - Static method in class micycle.pgs.PGS_Hull
-
Computes the concave hull of a point set using a breadth-first method.
- concaveHullBFS2(List<PVector>, double) - Static method in class micycle.pgs.PGS_Hull
-
Computes the concave hull of a point set using a different algorithm.
- concaveHullDFS(List<PVector>, double) - Static method in class micycle.pgs.PGS_Hull
-
Computes the concave hull of a point set using a depth-first method.
- contains(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether the outer shape fully contains the inner shape.
- containsAllPoints(PShape, Collection<PVector>) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether a shape contains every point from a list of points.
- containsPoint(PShape, PVector) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether a shape contains a point.
- containsPoints(PShape, Collection<PVector>) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Measures for each point in the input whether it is contained in the given shape.
- contrastField(PShape, int, PVector) - Static method in class micycle.pgs.PGS_Contour
-
Generates vector contour lines representing a "contrast field" of a shape with respect to a given reference point.
- convexHull(Collection<PVector>) - Static method in class micycle.pgs.PGS_Hull
-
Computes the convex hull of a point set (the smallest convex polygon that contains all the points).
- convexHull(PShape) - Static method in class micycle.pgs.PGS_Hull
-
Computes the convex hull of the vertices from the input shape (the smallest convex polygon that contains all the shape's vertices).
- convexity(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the convexity of a shape using a simple area-based measure of convexity.
- convexMaximumInscribedCircle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the exact largest inscribed circle for a convex polygonal shape.
- convexPartition(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Partitions shape(s) into convex (simple) polygons.
- copy(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Produces a deep copy / clone of the input shape.
- createArbelos(double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates an Arbelos shape, a mathematical figure bounded by three semicircles.
- createArc(double, double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates an elliptical arc polygon—a filled "slice" of an ellipse defined by the specified arc and the two radii connecting its endpoints to the ellipse center.
- createBlobbie(double, double, double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Generates a "blobbie" shape—a deformable, organic, blobby closed curve defined by four parameters.
- createCircle(double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a circle of radius r centered on (x,y).
- createCircle(PVector) - Static method in class micycle.pgs.PGS_Construction
-
Creates a geometric circle of radius r (.z) centered on (x,y).
- createFermatSpiral(double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates Fermat's spiral, a parabolic spiral which is symmetrical about the origin.
- createGear(double, double, double, int) - Static method in class micycle.pgs.PGS_Construction
-
Creates a gear shape from a parametric gear curve.
- createHeart(double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a classic "heart" shape using a parametric curve, centered and scaled as specified.
- createHilbertCurve(double, double, int) - Static method in class micycle.pgs.PGS_Construction
-
Creates a Hilbert Curve shape, a type of plane-filling curve.
- createHobbyCurve(List<PVector>, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a Hobby Curve from the given list of control points using the specified tension.
- createHobbyCurve(List<PVector>, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Create a Hobby Curve from the given list of control points using the specified tension and endpoint curl parameter.
- createKochSnowflake(double, double, int) - Static method in class micycle.pgs.PGS_Construction
-
Creates a Koch Snowflake shape, a fractal curve.
- createLinearSpiral(double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates an linear/archimedean spiral shape, where the distance between any 2 successive windings is constant.
- createRandomBezierPolygon(int, double, double, double, long) - Static method in class micycle.pgs.PGS_Construction
-
Generates a smooth or spiky random polygon comprising Bezier curves.
- createRandomPolygon(int, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Generates a random simple convex polygon (n-gon).
- createRandomPolygon(int, double, double, long) - Static method in class micycle.pgs.PGS_Construction
-
Generates a random simple convex polygon (n-gon), having a given random seed.
- createRandomPolygonExact(int, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Generates a random simple convex polygon (n-gon), where the output's bounding box has the dimensions of those specified.
- createRandomPolygonExact(int, double, double, long) - Static method in class micycle.pgs.PGS_Construction
-
Generates a random simple convex polygon (n-gon), where the output's bounding box has the dimensions of those specified.
- createRandomSFCurve(int, int, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a random space-filling curve.
- createRandomSFCurve(int, int, double, double, long) - Static method in class micycle.pgs.PGS_Construction
-
Creates a random space-filling curve, having a specific random seed.
- createRect(double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Shortcut for creating a rectangle with uniformly rounded corners, using
PConstants.CORNER
mode. - createRect(int, double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a rectangle with specified corner radii, in any Processing-style rectangle mode.
- createRectangularSpiral(double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a rectangular-shaped spiral shape.
- createRegularPolyon(int, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Generates an N-sided regular polygon.
- createRing(double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a joined ring (a "donut") shape.
- createRing(double, double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates an (un)joined ring shape.
- createSierpinskiCarpet(double, double, int) - Static method in class micycle.pgs.PGS_Construction
-
Creates a Sierpiński Carpet shape, a type of plane fractal.
- createSierpinskiCurve(double, double, double, int) - Static method in class micycle.pgs.PGS_Construction
-
Creates a closed Sierpiński curve (a recursive space-filling curve), having a user-defined degree/order.
- createSierpinskiTriCurve(PGS_Construction.SierpinskiTriCurveType, double, int) - Static method in class micycle.pgs.PGS_Construction
-
Creates one of a family of trifurcating Sierpinski curves.
- createSponge(double, double, int, double, double, int, long) - Static method in class micycle.pgs.PGS_Construction
-
Creates a sponge-like porous structure.
- createStar(double, double, int, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a star shape, having a specified number of rays.
- createSupercircle(double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Generates a supercircle (also known as a superellipse or Lamé curve) shape centered at the specified coordinates.
- createSuperRandomPolygon(double, int, double, int, int, boolean, boolean, long) - Static method in class micycle.pgs.PGS_Construction
-
Generates a highly customisable random polygon based on a square grid of NxN cells.
- createSuperShape(double, double, double, double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Generates a supershape using the superformula, centered at the specified coordinates.
- createTaijitu(double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a Taijitu shape (a geometric representation of the Taoist symbol of yin and yang).
- createTeardrop(double, double, double, double) - Static method in class micycle.pgs.PGS_Construction
-
Creates a teardrop shape using a parametric polar curve, centered and scaled as specified.
D
- DECA - Enum constant in enum class micycle.pgs.PGS_Construction.SierpinskiTriCurveType
- delaunayTriangulation(Collection<PVector>) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation from a collection of points.
- delaunayTriangulation(Collection<PVector>, PShape) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation having a shape constraint from a collection of points.
- delaunayTriangulation(PShape) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a constrained Delaunay Triangulation from the given shape.
- delaunayTriangulation(PShape, Collection<PVector>, boolean, int, boolean) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation from the given shape.
- delaunayTriangulationMesh(Collection<PVector>) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation from a collection of points.
- delaunayTriangulationMesh(Collection<PVector>, PShape) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation having a shape constraint from a collection of points.
- delaunayTriangulationMesh(PShape) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a constrained Delaunay Triangulation from the given shape.
- delaunayTriangulationMesh(PShape, Collection<PVector>, boolean, int, boolean) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation of the given shape and returns it in raw form as a Triangulated Irregular Network (mesh).
- delaunayTriangulationPoints(Collection<PVector>) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation from a collection of points.
- delaunayTriangulationPoints(PShape) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a constrained Delaunay Triangulation from a collection of points.
- delaunayTriangulationPoints(PShape, Collection<PVector>, boolean, int, boolean) - Static method in class micycle.pgs.PGS_Triangulation
-
Generates a Delaunay Triangulation from the given shape.
- densify(PShape, double) - Static method in class micycle.pgs.PGS_Processing
-
Densifies a shape by inserting additional vertices along its line segments.
- density(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the ratio (density) of the shape's area compared to the area of it's envelope.
- diameter(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Returns the diameter of a shape.
- dilationErosion(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Applies a positive followed by a negative buffer (in a single operation), the effect of which is small holes and gaps are filled in, while the general structure of the shape is preserved.
- disableAllFill(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Calls setFill(false) on a PShape and all its children.
- disableAllStroke(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Calls setStroke(false) on a PShape and all its children.
- dissolve(Collection<PEdge>) - Static method in class micycle.pgs.PGS_SegmentSet
-
Dissolves the edges from a collection of
PEdges
into a set of maximal-length LineStrings in which each unique segment appears only once. - dissolve(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Dissolves the linear components of a shape (or group of shapes) into a set of maximal-length lines in which each unique segment appears once.
- distance(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the minimum distance between two shapes.
- distanceField(PShape, double) - Static method in class micycle.pgs.PGS_Contour
-
Generates vector contour lines representing a distance field derived from a shape.
- distanceTree(PShape, PVector, boolean) - Static method in class micycle.pgs.PGS_Contour
-
Generates a tree structure representing the shortest paths from a given start point to all other vertices in the provided mesh.
- doyleSpiral(double, double, int, int, double) - Static method in class micycle.pgs.PGS_Tiling
-
Generates a Doyle spiral.
- DSATUR - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
DSATUR (saturation degree ordering) is a variant on Largest Degree Ordering where the vertices are ordered in decreasing order by "saturation degree", defined as the number of distinct colors in the vertex neighborhood.
- dualFaces(IIncrementalTin) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a (mesh-like) shape consisting of polygonal faces of the dual graph of the given triangulation.
E
- earCutTriangulation(PShape) - Static method in class micycle.pgs.PGS_Triangulation
-
Computes a triangulation of the shape according to the ear clipping ("earcut") method.
- edgeCollapseQuadrangulation(IIncrementalTin, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a quadrangulation from a triangulation by selectively removing (or "collapsing") the edges shared by neighboring triangles (via edge coloring).
- efdSimilarity(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Quantifies the similarity between two shapes, by using the pairwise euclidean distance between each shape's Elliptic Fourier Descriptors (EFD).
- eliminateSlivers(PShape, double) - Static method in class micycle.pgs.PGS_Processing
-
Removes narrow areas ("slivers") from a shape while preserving the geometry of the remaining parts.
- elongation(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Measures the elongation of a shape as the ratio of the difference between the bounding box's length and width to the maximum dimension.
- envelope(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Deprecated.
- equalPartition(PShape, int) - Static method in class micycle.pgs.PGS_Processing
-
Randomly partitions a shape into N approximately equal-area polygonal cells.
- equalPartition(PShape, int, long) - Static method in class micycle.pgs.PGS_Processing
-
Randomly (with a given seed) partitions a shape into N approximately equal-area polygonal cells.
- equals(Object) - Method in class micycle.pgs.PGS_Conversion.PShapeData
- equalsExact(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Tests two shapes for structural equality.
- equalsNorm(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Tests two shapes for normalised structural equality.
- equalsTopo(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Tests two shapes for topological equality.
- erosionDilation(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Applies a negative followed by a positive buffer (in a single operation), the effect of which is small edges/islands are removed, while the general structure of the shape is preserved.
- extractHoles(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Extracts all the holes from a shape, returning them as if they are polygons.
- extractInnerEdges(PShape) - Static method in class micycle.pgs.PGS_Meshing
-
Extracts all inner edges from a mesh.
- extractInnerVertices(PShape) - Static method in class micycle.pgs.PGS_Meshing
-
Extracts the inner vertices from a mesh.
- extractPerimeter(PShape, double, double) - Static method in class micycle.pgs.PGS_Processing
-
Extracts a portion/subline of the perimeter of a shape between two locations on the perimeter.
F
- farthestPoint(Collection<PVector>, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Finds the farthest point in the collection from a specified point.
- farthestPointPair(Collection<PVector>) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the farthest pair of points (the "diametral pair") in a set of n points.
- farthestPointVoronoi(Collection<PVector>) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates the farthest-point Voronoi diagram (FPVD) for a set of sites.
- farthestPointVoronoi(Collection<PVector>, double[]) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a farthest-point Voronoi diagram (FPVD) for a given set of sites and a bounding box.
- farthestVertex(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Returns the farthest vertex of a shape from a query point.
- fieldWarp(PShape, double, double, boolean) - Static method in class micycle.pgs.PGS_Morphology
-
Warps/perturbs a shape by displacing vertices according to a 2D noise vector field.
- fieldWarp(PShape, double, double, double, boolean, long) - Static method in class micycle.pgs.PGS_Morphology
-
Warps/perturbs a shape by displacing vertices according to a 2D noise vector field.
- fill - Variable in class micycle.pgs.PGS_Conversion.PShapeData
- fillColor - Variable in class micycle.pgs.PGS_Conversion.PShapeData
- filterAxisAligned(List<PEdge>, double) - Static method in class micycle.pgs.PGS_SegmentSet
-
Removes axis-aligned (horizontal and vertical) segments (within a given angle tolerance) from a collection of segments.
- filterByAverageLength(List<PEdge>, double) - Static method in class micycle.pgs.PGS_SegmentSet
-
Removes segments having a length either less than some fraction or more than
1/fraction
of the mean segment length from a collection of segments. - filterByMinLength(List<PEdge>, double) - Static method in class micycle.pgs.PGS_SegmentSet
-
Removes segments having a length less than the given length from a collection of segmensts.
- filterChildren(PShape, Predicate<PShape>) - Static method in class micycle.pgs.PGS_Processing
-
Filters out the children of a given PShape object based on a given Predicate function.
- filterNear(List<PEdge>, double) - Static method in class micycle.pgs.PGS_SegmentSet
-
Removes segments that are near others.
- findBreaks(PShape) - Static method in class micycle.pgs.PGS_Meshing
-
Returns the locations of invalid mesh face boundary segments if found.
- findContainedPoints(PShape, Collection<PVector>) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Tests for each point in the input whether it is contained in/inside the given shape; if it is, then the point is included in the output list.
- findContainingFace(PShape, PVector) - Static method in class micycle.pgs.PGS_Meshing
-
Finds the single face from the mesh that contains the query point.
- findContainingShape(PShape, PVector) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Finds the single child shape/cell (if any) that contains the query point from a GROUP shape input (a shape that has non-overlapping children).
- findShortestTour(List<PVector>) - Static method in class micycle.pgs.PGS_PointSet
-
Computes an approximate Traveling Salesman path for the set of points provided.
- fix(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Attempts to fix shapes with invalid geometry, while preserving its original form and location as much as possible.
- fixBreaks(PShape, double, double) - Static method in class micycle.pgs.PGS_Meshing
-
Removes gaps and overlaps from meshes/polygon collections that are intended to satisfy the following conditions: Vector-clean - edges between neighbouring polygons must either be identical or intersect only at endpoints. Non-overlapping - No two polygons may overlap.
- FLAT - Enum constant in enum class micycle.pgs.PGS_Morphology.CapStyle
-
End caps are truncated flat at the line ends.
- flatten(Collection<PShape>) - Static method in class micycle.pgs.PGS_Conversion
-
Flattens a collection of PShapes into a single GROUP PShape which has the input shapes as its children.
- flatten(PShape...) - Static method in class micycle.pgs.PGS_Conversion
-
Flattens a collection of PShapes into a single GROUP PShape which has the input shapes as its children.
- flipHorizontal(PShape) - Static method in class micycle.pgs.PGS_Transformation
-
Flips the shape horizontally based on its centre point (mirror over the x-axis passing through its centroid).
- flipHorizontal(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Flips the shape horizontally based on a line given by its Y location.
- flipVertical(PShape) - Static method in class micycle.pgs.PGS_Transformation
-
Flips the shape vertically based on its centre point (mirror over the y-axis passing through its centroid).
- flipVertical(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Flips the shape vertically based on a line given by its X location.
- forEachShape(PShape, Function<PShape, T>) - Static method in class micycle.pgs.PGS_Processing
-
Applies a specified transformation function to each child of the given PShape and returns a list of results produced by the function.
- forEachShapeWithIndex(PShape, BiFunction<Integer, PShape, T>) - Static method in class micycle.pgs.PGS_Processing
-
Applies a specified transformation function to each child of the given PShape along with its index and returns a list of results produced by the function.
- fromArray(double[][], boolean) - Static method in class micycle.pgs.PGS_Conversion
-
Creates a PShape from an array of doubles representing coordinates.
- fromChildren(Collection<PShape>) - Static method in class micycle.pgs.PGS_Conversion
-
Creates a single GROUP shape whose children shapes are the list given.
- fromContours(List<PVector>, List<List<PVector>>) - Static method in class micycle.pgs.PGS_Conversion
-
Generates a polygonal shape from lists of vertices representing its shell and holes.
- fromCubicBezier(PVector, PVector, PVector, PVector) - Static method in class micycle.pgs.PGS_Conversion
-
Creates a PATH PShape representing a cubic bezier curve, given by its parameters.
- fromEncodedPolyline(String) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a geometry in Encoded Polyline format into a PShape.
- fromGeoJSON(String) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a GeoJSON representation of a shape into its PShape counterpart.
- fromGraph(SimpleGraph<PVector, PEdge>) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a given SimpleGraph consisting of PVectors and PEdges into a PShape by polygonizing its edges.
- fromGraph(SimpleGraph<V, E>, double, double, double) - Static method in class micycle.pgs.PGS_Conversion
-
Computes a layout for the vertices of a graph using a Force-Directed placement algorithm.
- fromHexWKB(String) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a geometry in Well-Known Binary hex format into a PShape.
- fromJava2D(Shape) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a Java2D/java.awt Shape to a Processing PShape.
- fromPShape(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Transforms a PShape into a corresponding JTS Geometry.
- fromPShape(PShape) - Static method in class micycle.pgs.PGS_SegmentSet
-
Extracts a list of unique PEdge segments representing the given shape.
- fromPVector(Collection<PVector>) - Static method in class micycle.pgs.PGS_Conversion
-
Generates a shape from a list of vertices.
- fromPVector(PVector...) - Static method in class micycle.pgs.PGS_Conversion
-
Generates a shape from a list of vertices.
- fromQuadraticBezier(PVector, PVector, PVector) - Static method in class micycle.pgs.PGS_Conversion
-
Creates a PATH PShape representing a quadratic bezier curve, given by its parameters.
- fromWKB(byte[]) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a geometry in Well-Known Binary format into a PShape.
- fromWKB(String) - Static method in class micycle.pgs.PGS_Conversion
-
Reads a shape from a (binary) file containing the Well-Known Binary representation of it.
- fromWKT(String) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a geometry in Well-Known Text format into a PShape.
- frontChainPack(PShape, double, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a random circle packing of tangential circles with varying radii that overlap the given shape.
- frontChainPack(PShape, double, double, long) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a random circle packing of tangential circles with varying radii that overlap the given shape.
G
- gabrielFaces(IIncrementalTin, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a shape consisting of polygonal faces of a Gabriel graph.
- gaussian(double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random points having a gaussian/normal distribution.
- gaussian(double, double, double, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random points having a gaussian/normal distribution, using the specified seed.
- generateRandomGridPoints(PShape, int, boolean, double) - Static method in class micycle.pgs.PGS_Processing
-
Generates up to
maxPoints
number of random points that are contained within the shape region. - generateRandomGridPoints(PShape, int, boolean, double, long) - Static method in class micycle.pgs.PGS_Processing
-
Generates up to
maxPoints
number of random points that are contained within the shape region. - generateRandomPoints(PShape, int) - Static method in class micycle.pgs.PGS_Processing
-
Generates N random points that lie within the shape region.
- generateRandomPoints(PShape, int, long) - Static method in class micycle.pgs.PGS_Processing
-
Generates N random points that are contained within the shape region.
- GENETIC - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
Finds a coloring using a genetic algorithm.
- getChildren(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Recurses a GROUP PShape, finding all of its non-GROUP child PShapes.
- getFillColor(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Retrieves the fill color of a PShape.
- getPolygonInteriorSegments(List<PEdge>, PShape) - Static method in class micycle.pgs.PGS_SegmentSet
-
Retains line segments from a set of line segments that are wholly contained within a given shape.
- getShapeStylingData(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Retrieves the styling data associated with the specified PShape object.
- graphMatchedSegments(double, double, int, long) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates N non-intersecting segments via a Perfect matching algorithm applied to a triangulation populated with random points.
- graphMatchedSegments(List<PVector>) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates non-intersecting segments via a Perfect matching algorithm applied to a triangulation populated with the given points.
- graphMatchedSegments(IIncrementalTin) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates non-intersecting segments via a Perfect matching algorithm applied to the given triangulation.
H
- haltonLDS(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of deterministic stratified points (bounded by a rectangle) from a low discrepancy sequence (LDS) based on a Halton sequence.
- hammersleyLDS(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of deterministic stratified points (bounded by a rectangle) from a low discrepancy sequence (LDS) based on a Hammersley sequence.
- HANDLE_MULTICONTOUR - Static variable in class micycle.pgs.PGS_Conversion
-
A boolean flag that, when true, enables a specialised subroutine during the
fromPShape()
conversion to correctly convert single PShapes comprised of multiple contours, each representing a separate shape. - hashCode() - Method in class micycle.pgs.PGS_Conversion.PShapeData
- hatchSubdivision(double, double, int, int, long) - Static method in class micycle.pgs.PGS_Tiling
-
Randomly subdivides the plane into equal-width strips having varying lengths.
- height(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the vertical height of a shape (the height of its bounding-box).
- hexagon(double, double, int, double) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a hexagonal grid of points arranged in a hexagon pattern.
- hexGrid(double, double, double, double, double) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a hexagon grid of points that lie within a bounding rectangle.
- hexGrid(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a hexagon grid/lattice of points that lie within a bounding rectangle.
- hexLatticePack(PShape, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a tiled circle packing consisting of equal-sized circles arranged in a hexagonal lattice bounded by the input shape.
- hexTiling(double, double, double, boolean) - Static method in class micycle.pgs.PGS_Tiling
-
Generates a hexagonal tiling of the plane.
- hilbertSort(List<PVector>) - Static method in class micycle.pgs.PGS_PointSet
-
Sorts a list of points according to the Hilbert space-filling curve to ensure a high-degree of spatial locality in the sequence of points.
- hilbertSortFaces(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Sorts the faces/child shapes of a GROUP shape according to hilbert curve index of each face's centroid coordinate.
- holes(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Counts the number of holes in a shape.
- homotheticTransformation(PShape, PVector, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Deprecated.
I
- innerVoronoi(Collection<PVector>) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram for a set of points.
- innerVoronoi(Collection<PVector>, double[]) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram for a set of points.
- innerVoronoi(Collection<PVector>, double[], int) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a boundary-constrained Voronoi diagram for a set of points, with relaxation.
- innerVoronoi(Collection<PVector>, int) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram for a set of points, with relaxation.
- innerVoronoi(PShape, boolean) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram for a single shape, where shape vertices are voronoi point sites.
- innerVoronoi(PShape, boolean, double[], Collection<PVector>, int) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates an inner Voronoi diagram for the specified shape, optionally constrained to the shape's bounds, with additional options for including Steiner points and specifying the number of Lloyd's relaxations to apply.
- innerVoronoi(PShape, int) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates an inner Voronoi diagram of a given shape with a specified number of relaxations.
- innerVoronoi(PShape, Collection<PVector>) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates an inner Voronoi diagram of a given shape with additional sites.
- innerVoronoi(PShape, Collection<PVector>, int) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates an inner Voronoi diagram of a given shape with additional sites and relaxation.
- innerVoronoiRaw(Collection<PVector>, double[], int) - Static method in class micycle.pgs.PGS_Voronoi
-
Converts a collection of points into a Raw Voronoi diagram object within specified bounds, optionally applying Lloyd's relaxation to improve the diagram's properties.
- innerVoronoiRaw(PShape, double[], Collection<PVector>, int) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Voronoi diagram of a given shape, where shape vertices are voronoi point sites.
- interiorAngles(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Calculates all interior angles of a polygon represented by a
PShape
. - interpolate(PShape, PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Generates an intermediate shape between two shapes by interpolating between them.
- interpolate(PShape, PShape, int) - Static method in class micycle.pgs.PGS_Morphology
-
Generates intermediate shapes (frames) between two shapes by interpolating between them.
- intersect(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Calculates the intersection of two shapes, producing a new shape representing the shared area.
- intersect(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether the shapes intersect/overlap (meaning that have at least one point in common).
- intersections(Collection<PEdge>, Collection<PEdge>) - Static method in class micycle.pgs.PGS_SegmentSet
-
Computes all intersection points between two collections of line segments.
- intersectMesh(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Performs an intersection operation between a mesh-like shape (a polygonal coverage) and a polygonal area, while preserving the individual features of the mesh during the operation.
- isClockwise(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines if the vertices of the specified shape form a clockwise loop on the screen in Processing.
- isConformingMesh(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether a GROUP shape forms a conforming mesh / valid polygon coverage.
- isConvex(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether a shape is convex.
- islamicTiling(double, double, double, double) - Static method in class micycle.pgs.PGS_Tiling
-
Generates an "islamic-style" (Girih) tiling of the plane.
- isolines(Collection<PVector>, double, double, double) - Static method in class micycle.pgs.PGS_Contour
-
Generates a topographic-like isoline contour map from the given points.
- isolines(Collection<PVector>, double, double, double, int) - Static method in class micycle.pgs.PGS_Contour
-
Generates a topographic-like isoline contour map from the given points.
- isolines(Collection<PVector>, int, int) - Static method in class micycle.pgs.PGS_Contour
-
Generates a topographic-like isoline contour map from the given points.
- isolines(PShape, PVector, double) - Static method in class micycle.pgs.PGS_Contour
-
Generates a topographic-like isoline contour map from the shape's vertices and a given "high point".
- isSimple(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Checks whether a shape is simple.
- isValid(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Checks if a PShape is valid, and reports the validation error if it is invalid.
L
- LARGEST_DEGREE_FIRST - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
The largest degree first greedy coloring algorithm.
- largestEmptyCircle(PShape, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the largest empty circle that does not intersect any obstacles (up to a specified tolerance).
- largestEmptyCircle(PShape, PShape, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the largest empty circle that does not intersect any obstacles and lies within the specified boundary (up to a specified tolerance).
- largestEmptyCircles(PShape, PShape, int, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the
n
largest empty circles that do not intersect any obstacles (nor each other) within an optionalboundary
. - length(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Returns the length of a shape.
- lineSegmentsIntersection(List<PVector>) - Static method in class micycle.pgs.PGS_Processing
-
Computes all points of intersection between segments in a set of line segments.
M
- matchingQuadrangulation(IIncrementalTin) - Static method in class micycle.pgs.PGS_Meshing
-
Converts a triangulation into a quadrangulation, by pairing up ("matching") triangles and merging them into quads.
- maximumInscribedAARectangle(PShape, boolean) - Static method in class micycle.pgs.PGS_Optimisation
-
Finds the rectangle with a maximum area whose sides are parallel to the x-axis and y-axis ("axis-aligned"), contained/insribed within a convex shape.
- maximumInscribedCircle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the maximum inscribed circle within a given shape.
- maximumInscribedCircle(PShape, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the maximum inscribed circle within a given shape, using a specified tolerance.
- maximumInscribedCircle(PShape, double, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the maximum inscribed circle (MIC) within a given shape, using the specified accuracy, and optionally outputs the center and radius.
- maximumInscribedCircle(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Return the maximum circle (at a given centerpoint inside/outside the circle)
- maximumInscribedPack(PShape, double, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Packs maximum inscribed circles within the given shape using the Largest Empty Circle (LEC) algorithm.
- maximumInscribedPack(PShape, int, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Packs a specified number of maximum inscribed circles within the given shape using the Largest Empty Circle (LEC) algorithm.
- maximumInscribedRectangle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Finds an approximate largest area rectangle (of arbitrary orientation) contained within a polygon.
- maximumInscribedTriangle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Finds an approximate largest area triangle (of arbitrary orientation) contained within a polygon.
- maximumInteriorAngle(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the maximum/largest interior angle of a polygon.
- maximumPerimeterSquare(PShape, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Finds the largest area perimeter square of the input.
- medialAxis(PShape, double, double, double) - Static method in class micycle.pgs.PGS_Contour
-
Computes the medial axis of the given shape, providing a characterization of the skeleton of a shape.
- median(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the geometric median location of a shape's vertices.
- micycle.pgs - package micycle.pgs
-
Processing Geometry Suite is a software project that provides easy access to geometric algorithms in the form of a Processing library.
- minimumAreaRectangle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum-area rectangle that encloses a shape.
- minimumBoundingCircle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum bounding circle (MBC) that encloses all vertices of the provided shape.
- minimumBoundingCircle(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum bounding circle (MBC) for the given shape, and optionally returns the center and radius.
- minimumBoundingEllipse(PShape, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum bounding ellipse that encloses a shape.
- minimumBoundingTriangle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum-area bounding triangle that encloses a shape.
- minimumDiameter(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum diameter of a shape.
- minimumInteriorAngle(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the minimum/interior angle of a polygon.
- minimumSpanningTree(List<PVector>) - Static method in class micycle.pgs.PGS_PointSet
-
Computes the Euclidean minimum spanning tree (EMST) of a set of points.
- minimumWidthAnnulus(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum-width annulus (the donut-like region between two concentric circles with minimal width that encloses the vertices of the given
PShape
). - minimumWidthRectangle(PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes the minimum-width bounding rectangle that encloses a shape.
- minkDifference(PShape, PShape) - Static method in class micycle.pgs.PGS_Morphology
-
Computes a Minkowski difference (a.k.a erosion) of the two source shapes.
- minkSum(PShape, PShape) - Static method in class micycle.pgs.PGS_Morphology
-
Computes a Minkowski sum (a.k.a dilation) of the two source shapes.
- MITER - Enum constant in enum class micycle.pgs.PGS_Contour.OffsetStyle
- multiplicativelyWeightedVoronoi(Collection<PVector>, double[]) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Multiplicatively Weighted Voronoi Diagrams diagram for a set of weighted sites.
- multiplicativelyWeightedVoronoi(Collection<PVector>, double[], boolean) - Static method in class micycle.pgs.PGS_Voronoi
-
Generates a Multiplicatively Weighted Voronoi Diagrams diagram for a set of weighted sites.
N
- nest(PShape, int, double) - Static method in class micycle.pgs.PGS_Processing
-
Creates a nested shape having n levels of inner polygons; each inner polygon is obtained by joining the points at some fractional distance
r
along each side of the previous polygon. - nodedSegments(double, double, int, long) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates N non-intersecting segments via intersection and noding.
- nodeNonMesh(PShape) - Static method in class micycle.pgs.PGS_Meshing
-
Transforms a non-conforming mesh shape into a conforming mesh by performing a "noding" operation.
- normalise(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Normalises a shape by standardising its vertex ordering and orientation: The outer shell (exterior contour) is oriented clockwise (CW). All holes (interior contours) are oriented counterclockwise (CCW). Each contour (shell or hole) is rotated so its sequence starts at the vertex with the minimum coordinate (lexicographically by x, then y).
- nRooksLDS(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random stratified points (bounded by a rectangle) based on the "N-Rooks" sampling pattern.
- nRooksLDS(double, double, double, double, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random stratified points (bounded by a rectangle) based on the "N-Rooks" sampling pattern.
O
- obstaclePack(PShape, Collection<PVector>, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Packs circles of varying radii within a given shape, whilst respecting pointal obstacles using the Largest Empty Circle (LEC) algorithm.
- offsetCurvesInward(PShape, PGS_Contour.OffsetStyle, double) - Static method in class micycle.pgs.PGS_Contour
-
Generates inward-facing offset curves from a shape.
- offsetCurvesInward(PShape, PGS_Contour.OffsetStyle, double, int) - Static method in class micycle.pgs.PGS_Contour
-
Generates N inward-facing offset curves from a shape.
- offsetCurvesOutward(PShape, PGS_Contour.OffsetStyle, double, int) - Static method in class micycle.pgs.PGS_Contour
-
Generates N outward-facing offset curves from a shape.
- originScale(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Scales a shape relative to the origin (0,0).
- overlap(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Measures the degree of mutual overlap between two shapes.
- overlapRegions(Collection<PShape>, boolean) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Finds all regions covered by at least two input shapes.
P
- parallelSegments(double, double, double, double, double, int) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates a set of N straight parallel segments, centered on a given point.
- penroseTiling(double, double, double, int) - Static method in class micycle.pgs.PGS_Tiling
-
Generates a Penrose Tiling (consisting of rhombi).
- PENTA - Enum constant in enum class micycle.pgs.PGS_Construction.SierpinskiTriCurveType
- PGS_CirclePacking - Class in micycle.pgs
-
Circle packings of shapes, subject to varying constraints and patterns of tangencies.
- PGS_Coloring - Class in micycle.pgs
-
Minimal colorings of meshes (or mesh-like shapes).
- PGS_Coloring.ColoringAlgorithm - Enum Class in micycle.pgs
-
Specifies the algorithm/heuristic used by the underlying graph coloring process to find an approximate minimal coloring for mesh faces.
- PGS_Construction - Class in micycle.pgs
-
Construct uncommon/interesting 2D geometries (beyond those offered in Processing).
- PGS_Construction.SierpinskiTriCurveType - Enum Class in micycle.pgs
- PGS_Contour - Class in micycle.pgs
-
Methods for producing different kinds of shape contours. *
- PGS_Contour.OffsetStyle - Enum Class in micycle.pgs
-
Specifies the join style for offset curves.
- PGS_Conversion - Class in micycle.pgs
-
Facilitates conversion between Processing's
PShapes
and JTS'sGeometries
, along with various other formats. - PGS_Conversion.PShapeData - Class in micycle.pgs
-
A utility class for storing and manipulating the visual properties of PShapes from the Processing library.
- PGS_Hull - Class in micycle.pgs
-
Generates various types of geomtric hulls (convex, concave, etc.) for polygons and point sets.
- PGS_Meshing - Class in micycle.pgs
-
Mesh generation (excluding triangulation) and processing.
- PGS_Morphology - Class in micycle.pgs
-
Methods that affect the geometry or topology of shapes.
- PGS_Morphology.CapStyle - Enum Class in micycle.pgs
-
The end cap style to use.
- PGS_Optimisation - Class in micycle.pgs
-
Solve geometric optimisation problems, such as bounding volumes, inscribed areas, optimal distances, etc.
- PGS_Optimisation.RectPackHeuristic - Enum Class in micycle.pgs
-
Various packing heuristics for
rectpack()
. - PGS_PointSet - Class in micycle.pgs
-
Generation of random sets of 2D points having a variety of different distributions and constraints (and associated functions).
- PGS_Processing - Class in micycle.pgs
-
Methods that process shape geometry: partitioning, slicing, cleaning, etc.
- PGS_SegmentSet - Class in micycle.pgs
-
Generation of random sets of non-intersecting line segments (and associated functions).
- PGS_ShapeBoolean - Class in micycle.pgs
-
Boolean set-operations for 2D shapes.
- PGS_ShapePredicates - Class in micycle.pgs
-
Various shape metrics, predicates and descriptors.
- PGS_Tiling - Class in micycle.pgs
-
Tiling, tessellation and subdivision of the plane using periodic or non-periodic geometric shapes.
- PGS_Transformation - Class in micycle.pgs
-
Various geometric and affine transformations for PShapes that affect vertex coordinates.
- PGS_Triangulation - Class in micycle.pgs
-
Delaunay and earcut triangulation of shapes and point sets.
- PGS_Voronoi - Class in micycle.pgs
-
Voronoi Diagrams of shapes and point sets.
- phyllotaxis(double, double, int, double) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of points arranged in a phyllotaxis pattern (an arrangement similar to the florets in the head of a sunflower), using the golden ratio (the most irrational number) to position points with the least possible aliasing (which is arguably the "best" arrangement).
- phyllotaxis(double, double, int, double, double) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of points arranged in a phyllotaxis pattern (an arrangement similar to the florets in the head of a sunflower), using a user-defined theta.
- pinchWarp(PShape, PVector, double) - Static method in class micycle.pgs.PGS_Morphology
-
Applies a pinch warping effect to a shape, distorting vertices towards a specified point.
- plasticJitteredLDS(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of deterministic stratified points (bounded by a rectangle) from a low discrepancy sequence (LDS) based on an irrational number.
- plasticJitteredLDS(double, double, double, double, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of deterministic stratified points (bounded by a rectangle) from a low discrepancy sequence (LDS) based on an irrational number.
- plasticLDS(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of deterministic stratified points (bounded by a rectangle) from a low discrepancy sequence (LDS) based on an irrational number (the plastic constant).
- pointOnExterior(PShape, double, double) - Static method in class micycle.pgs.PGS_Processing
-
Extracts a point from the perimeter (exterior) of the given shape at a specific position along its perimeter.
- pointOnExteriorByDistance(PShape, double, double) - Static method in class micycle.pgs.PGS_Processing
-
Extracts a point from the perimeter (exterior) of the given shape at some distance along its perimeter.
- pointsOnExterior(PShape, double, double) - Static method in class micycle.pgs.PGS_Processing
-
Sample points along every linear component of a shape.
- pointsOnExterior(PShape, int, double) - Static method in class micycle.pgs.PGS_Processing
-
Extracts multiple points evenly distributed along the boundary of individual rings within a shape, including both exterior and interior rings (i.e., holes).
- pointsOnExterior(PShape, int, double, double) - Static method in class micycle.pgs.PGS_Processing
-
Extract a fixed number of evenly spaced samples from every linear component.
- poisson(double, double, double, double, double) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random points (constrained within a rectangular region) via Poisson Disk Sampling.
- poisson(double, double, double, double, double, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random points (constrained within a rectangular region) via Poisson Disk Sampling, using the specified seed.
- poissonN(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a poisson point set having N points constrained within a rectangular region using a random seed.
- poissonN(double, double, double, double, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a poisson point set having N points constrained within a rectangular region.
- poissonTriangulation(PShape, double) - Static method in class micycle.pgs.PGS_Triangulation
-
Creates a Delaunay triangulation of the shape where additional steiner points, populated by poisson sampling, are included.
- poissonTriangulationMesh(PShape, double) - Static method in class micycle.pgs.PGS_Triangulation
-
Creates a Delaunay triangulation of the shape where additional steiner points, populated by poisson sampling, are included.
- poissonTriangulationPoints(PShape, double) - Static method in class micycle.pgs.PGS_Triangulation
-
Creates a Delaunay triangulation of the shape where additional steiner points, populated by poisson sampling, are included.
- polygonizeLines(List<PVector>) - Static method in class micycle.pgs.PGS_Processing
-
Finds the polygonal faces formed by a set of intersecting line segments.
- PRESERVE_STYLE - Static variable in class micycle.pgs.PGS_Conversion
-
A boolean flag that affects whether a PShape's style (fillColor, strokeColor, strokeWidth) is preserved during
PShape->Geometry->PShape
conversion (i.e. whentoPShape(fromPShape(myPShape))
is called). - prunePointsWithinDistance(List<PVector>, double) - Static method in class micycle.pgs.PGS_PointSet
-
Returns a filtered copy of the input, containing no points that are within the
distanceTolerance
of each other. - pruneRandomRemoveN(Collection<PVector>, int) - Static method in class micycle.pgs.PGS_PointSet
-
Remove exactly removeCount points chosen uniformly at random.
- pruneRandomRemoveN(Collection<PVector>, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Remove exactly removeCount points chosen uniformly at random, using the provided seed.
- pruneRandomToN(Collection<PVector>, int) - Static method in class micycle.pgs.PGS_PointSet
-
Keep exactly keepCount points chosen uniformly at random.
- pruneRandomToN(Collection<PVector>, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Keep exactly keepCount points chosen uniformly at random, using the provided seed.
- pruneSparsePoints(Collection<PVector>, double) - Static method in class micycle.pgs.PGS_PointSet
-
Prunes a list of points by removing points that are considered not sufficiently dense.
Q
- quadSubdivision(double, double, int) - Static method in class micycle.pgs.PGS_Tiling
-
Recursively and randomly subdivides the given/bounded plane into convex quad polygons.
- quadSubdivision(double, double, int, long) - Static method in class micycle.pgs.PGS_Tiling
-
Recursively and randomly subdivides the given/bounded plane into convex quad polygons.
R
- radialSortFaces(PShape, PVector, double) - Static method in class micycle.pgs.PGS_Optimisation
-
Sorts the faces (children) of a mesh radially around a given centre, then applies a circular rotation to the order based on the offset parameter.
- radialWarp(PShape, double, double, boolean) - Static method in class micycle.pgs.PGS_Morphology
-
Distorts a polygonal shape by radially displacing its vertices along the line connecting each vertex with the shape's centroid, creating a warping or perturbing effect.
- random(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random (uniform) points that lie within a bounding rectangle.
- random(double, double, double, double, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of random (uniform) points that lie within a bounding rectangle, using the specified seed.
- RANDOM - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
The greedy coloring algorithm with a random vertex ordering.
- rectPack(List<PVector>, int, int, PGS_Optimisation.RectPackHeuristic) - Static method in class micycle.pgs.PGS_Optimisation
-
Packs a collection of rectangles, according to the given packing heuristic, into rectangular 2D bin(s).
- rectSubdivision(double, double, int) - Static method in class micycle.pgs.PGS_Tiling
-
Recursively and randomly subdivides the given/bounded plane into rectangles.
- rectSubdivision(double, double, int, long) - Static method in class micycle.pgs.PGS_Tiling
-
Recursively and randomly subdivides the given/bounded plane into rectangles.
- reducePrecision(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Reduces the precision of a shape, whilst ensuring the output shape is valid.
- relativeNeighborFaces(IIncrementalTin, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a shape consisting of polygonal faces of a Relative neighborhood graph (RNG).
- removeHiddenLines(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Removes overlap between polygons contained in a
GROUP
shape, preserving only visible line segments suitable for pen plotting and similar applications. - removeSmallHoles(PShape, double) - Static method in class micycle.pgs.PGS_Processing
-
Returns a copy of the shape where holes having an area less than the specified threshold are removed.
- reorderChildren(PShape, Comparator<PShape>) - Static method in class micycle.pgs.PGS_Conversion
-
Reorders the child shapes of a given shape.
- repulsionPack(PShape, double, double, long) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a random circle packing of circles with varying radii that overlap the given shape.
- repulsionPack(PShape, List<PVector>) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a circle packing of a shape using a given collection of (overlapping) circles.
- resize(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Resizes a shape (based on its envelope) to the given dimensions, relative to its centroid.
- resizeByHeight(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Resizes a shape (based on its envelope) to the given height relative to its centroid; the width is resized accordingly to maintain the shape's aspect ratio.
- resizeByMajorAxis(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Resizes a shape (based on the longest axis of its envelope) to the given size relative to its centroid.
- resizeByWidth(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Resizes a shape (based on its envelope) to the given width relative to its centroid; the height is resized accordingly to maintain the shape's aspect ratio.
- ring(double, double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of n points that are randomly distributed on a ring (annulus).
- ring(double, double, double, double, double, int, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a set of points that are randomly distributed on a ring (annulus).
- RLF - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
Recursive largest-first coloring (recommended).
- RLF_BRUTE_FORCE_4COLOR - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
Repeatedly calls the recursive largest-first (RLF) algorithm until a 4-coloring (or less) is found.
- rotate(PShape, PVector, double) - Static method in class micycle.pgs.PGS_Transformation
-
Rotates a shape around a given point.
- rotateAroundCenter(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Rotates a shape around its centroid.
- round(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Rounds polygon corners by replacing each corner with a circular arc.
- ROUND - Enum constant in enum class micycle.pgs.PGS_Contour.OffsetStyle
- ROUND - Enum constant in enum class micycle.pgs.PGS_Morphology.CapStyle
-
The usual round end caps.
- roundVertexCoords(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Rounds the x and y coordinates (to the closest int) of all vertices belonging to the shape.
- roundVertexCoords(PShape, int) - Static method in class micycle.pgs.PGS_Conversion
-
Rounds the x and y coordinates (to
n
decimal places) of all vertices belonging to the shape.
S
- scale(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Scales the dimensions of the shape by a scaling factor relative to its centroid.
- scale(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Scales the shape relative to its centroid.
- scale(PShape, double, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Scale a shape around a point.
- scale(PShape, double, double, PVector) - Static method in class micycle.pgs.PGS_Transformation
-
Scale a shape around a point.
- scaleArea(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Scales the area of a given shape by a specified scale factor.
- scaleAreaTo(PShape, double) - Static method in class micycle.pgs.PGS_Transformation
-
Scales the given PShape to the target area, relative to its centroid.
- SEED - Static variable in class micycle.pgs.PGS_Coloring
- segmentsOnExterior(PShape, double, double, double) - Static method in class micycle.pgs.PGS_Processing
-
Extracts evenly spaced dashed line segments along every boundary of a shape.
- setAllFillColor(PShape, int) - Static method in class micycle.pgs.PGS_Conversion
-
Sets the fill color for the PShape and all of its children recursively (and disables stroke).
- setAllStrokeColor(PShape, int, double) - Static method in class micycle.pgs.PGS_Conversion
-
Sets the stroke color for the PShape and all of its children recursively.
- setAllStrokeColor(PShape, int, double, int) - Static method in class micycle.pgs.PGS_Conversion
-
Sets the stroke color and cap style for the PShape and all of its children recursively.
- setAllStrokeToFillColor(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Sets the stroke color equal to the fill color for the PShape and all of its descendent shapes individually (that is, each child shape belonging to the shape (if any) will have its stroke color set to its own fill color, and not the parent-most shape's fill color).
- setAllStrokeToFillColor(PShape, double) - Static method in class micycle.pgs.PGS_Conversion
-
Sets the stroke color equal to the fill color, and the strokeWeight to the specified value, for the PShape and all of its descendent shapes individually (that is, each child shape belonging to the shape (if any) will have its stroke color set to its own fill color, and not the parent-most shape's fill color).
- shapeIntersection(PShape, PShape) - Static method in class micycle.pgs.PGS_Processing
-
Computes all points of intersection between the linework of two shapes.
- shear(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Shears a given shape by specified angles along the x and y axis and returns the result as a new PShape.
- similarity(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Measures the degree of similarity between two shapes using the Hausdorff distance metric.
- simpleSubtract(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Subtracts
holes
from theshell
, without geometric processing. - simplify(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Simplifies a shape using the Douglas-Peucker algorithm, reducing the complexity and number of vertices of the shape.
- simplifyDCE(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Simplify the shape using DCE, removing vertices with relevance < r.
- simplifyDCE(PShape, DiscreteCurveEvolution.DCETerminationCallback) - Static method in class micycle.pgs.PGS_Morphology
-
Simplifies a shape via Discrete Curve Evolution.
- simplifyHobby(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Creates a Hobby Curve from the vertices of the shape.
- simplifyMesh(PShape, double, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Simplifies the boundaries of the faces in a mesh while preserving the original mesh topology.
- simplifyTopology(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Simplifies a shape, whilst preserving the topological structure of the shape (holes, etc.).
- simplifyVW(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Simplifies a shape using the Visvalingam-Whyatt area-based algorithm, reducing the complexity and number of vertices of the shape.
- sineWarp(PShape, double, double, double) - Static method in class micycle.pgs.PGS_Morphology
-
Warps/perturbs a shape by displacing vertices (both positively and negatively) according to the magnitude of a sine wave which follows the shape perimeter at some frequency.
- slice(PShape, PVector, PVector) - Static method in class micycle.pgs.PGS_Processing
-
Slices a shape using a line given by its start and endpoints.
- sliceDivision(double, double, int, boolean, long) - Static method in class micycle.pgs.PGS_Tiling
-
Divides the plane into randomly “sliced” polygonal regions.
- SMALLEST_DEGREE_LAST - Enum constant in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
The smallest degree last greedy coloring algorithm.
- smooth(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Smoothes a shape.
- smoothEllipticFourier(PShape, int) - Static method in class micycle.pgs.PGS_Morphology
-
Calculates the Elliptic Fourier Descriptors (EFD) of a specified shape, yielding a simplified/smoothed shape representation based on the specified number of descriptors.
- smoothGaussian(PShape, double) - Static method in class micycle.pgs.PGS_Morphology
-
Smoothes a shape by applying a gaussian filter to vertex coordinates.
- smoothLaneRiesenfeld(PShape, int, int, double) - Static method in class micycle.pgs.PGS_Morphology
-
Smooths a shape using Lane-Riesenfeld curve subdivision with 4-point refinement to reduce contraction.
- smoothMesh(PShape, double, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Smoothes a mesh via iterative weighted Laplacian smoothing.
- smoothMesh(PShape, int, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Smoothes a mesh via iterative weighted Laplacian smoothing.
- snapHull(PShape, double) - Static method in class micycle.pgs.PGS_Hull
-
Computes a hull, having a variable level of convexity, of a shape.
- sobolLDS(double, double, double, double, int) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a 2D set of deterministic stratified points (bounded by a rectangle) from the Sobol low discrepancy sequence (LDS).
- solveApollonius(PVector, PVector, PVector, int, int, int) - Static method in class micycle.pgs.PGS_Optimisation
-
Solves the Problem of Apollonius (finding a circle tangent to three other circles in the plane).
- spannerFaces(IIncrementalTin, int, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a shape consisting of polygonal faces formed by edges returned by a greedy sparse spanner applied to a triangulation.
- sphericity(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Measures the sphericity of a shape; the ratio of the maximum inscribed circle to the minimum bounding circle.
- spiralQuadrangulation(List<PVector>) - Static method in class micycle.pgs.PGS_Meshing
-
Produces a quadrangulation from a point set.
- spiralSortFaces(PShape, PShape) - Static method in class micycle.pgs.PGS_Optimisation
-
Reorders the faces of a mesh into an anti-clockwise “spiral” (breadth-first rings) starting from a given face, then returns a new, flattened PShape containing exactly those faces in spiral order.
- split(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Splits a shape into four equal quadrants (based on the envelope of the shape).
- split(PShape, int) - Static method in class micycle.pgs.PGS_Processing
-
Splits a shape into
4^(1+recursions)
rectangular partitions. - splitEdges(PShape, int) - Static method in class micycle.pgs.PGS_Meshing
-
Splits each edge of a given mesh shape into a specified number of equal-length parts and creates a new shape from the resulting smaller edges.
- splitQuadrangulation(IIncrementalTin) - Static method in class micycle.pgs.PGS_Meshing
-
Produces a quadrangulation from a triangulation, by splitting each triangle into three quadrangles (using the Catmull and Clark technique).
- SQUARE - Enum constant in enum class micycle.pgs.PGS_Morphology.CapStyle
-
End caps are squared off at the buffer distance beyond the line ends.
- squareGrid(double, double, double, double, double) - Static method in class micycle.pgs.PGS_PointSet
-
Generates a square grid/lattice of points that lie within a bounding rectangle.
- squareLatticePack(PShape, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a tiled circle packing consisting of equal-sized circles arranged in a square lattice (or grid) bounded by the input shape.
- squareTriangleTiling(double, double, double) - Static method in class micycle.pgs.PGS_Tiling
-
Generates a non-periodic tiling, comprising squares and equilateral triangles.
- squareTriangleTiling(double, double, double, long) - Static method in class micycle.pgs.PGS_Tiling
-
Generates a non-periodic tiling, comprising squares and equilateral triangles, having a given seed.
- stochasticMerge(PShape, int, long) - Static method in class micycle.pgs.PGS_Meshing
-
Randomly merges together / dissolves adjacent faces of a mesh.
- stochasticPack(PShape, int, double, boolean) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a random circle packing of the input shape by generating random points one-by-one and calculating the maximum radius a circle at each point can have (such that it's tangent to its nearest circle or a shape vertex).
- stochasticPack(PShape, int, double, boolean, long) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a seeded random circle packing within the input shape.
- stochasticSegments(double, double, int) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates a set of N random non-intersecting line segments via brute-forcing.
- stochasticSegments(double, double, int, double) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates a set of N random non-intersecting line segments of the given length via brute-forcing.
- stochasticSegments(double, double, int, double, double, long) - Static method in class micycle.pgs.PGS_SegmentSet
-
Generates a set of N random non-intersecting line segments via brute-forcing.
- straightSkeleton(PShape) - Static method in class micycle.pgs.PGS_Contour
-
Computes the straight skeleton for a shape.
- straightSkeleton(PShape, int) - Static method in class micycle.pgs.PGS_Contour
-
Computes the straight skeleton for a shape.
- stretch(List<PEdge>, double) - Static method in class micycle.pgs.PGS_SegmentSet
-
Stretches each PEdge segment in the provided list by a specified factor.
- stroke - Variable in class micycle.pgs.PGS_Conversion.PShapeData
- strokeColor - Variable in class micycle.pgs.PGS_Conversion.PShapeData
- strokeWeight - Variable in class micycle.pgs.PGS_Conversion.PShapeData
- subdivideMesh(PShape, double) - Static method in class micycle.pgs.PGS_Meshing
-
Subdivides the faces of a mesh using the Catmull-Clark split approach, wherein each face is divided into N parts, where N is the number of vertices in the shape.
- subtract(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Subtracts one shape (b) from another shape (a) and returns the resulting shape.
- subtractMesh(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Subtracts a polygonal area from a mesh-like shape or polygonal coverage, ensuring each individual face or feature of the mesh is preserved during the operation.
- symDifference(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Calculates the symmetric difference between two shapes.
T
- tangencyPack(IIncrementalTin, double) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a circle packing having a pattern of tangencies specified by a triangulation.
- tangencyPack(IIncrementalTin, double[]) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a circle packing having a pattern of tangencies specified by a triangulation.
- tangentAngle(PShape, double) - Static method in class micycle.pgs.PGS_Processing
-
Calculates the angle of the line tangent to the shape at a specific point on its perimeter.
- TETRA - Enum constant in enum class micycle.pgs.PGS_Construction.SierpinskiTriCurveType
- thomasClusters(double, double, double, double, double, double, double, long) - Static method in class micycle.pgs.PGS_PointSet
-
Generates random points having clustered properties using the Thomas Point Process.
- toArray(List<PVector>) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a list of PVectors into an array of coordinates.
- toArray(PShape, boolean) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a simple PShape into an array of its coordinates.
- toBag(List<PEdge>) - Static method in class micycle.pgs.PGS_SegmentSet
- toCentroidDualGraph(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a mesh-like PShape into its centroid-based undirected dual-graph.
- toCircles(Collection<PVector>) - Static method in class micycle.pgs.PGS_Conversion
-
Creates a PShape having circle geometries representing a collection of circles.
- toContours(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Extracts the contours from a
POLYGON
orPATH
PShape, represented as lists of PVector points. - toDualGraph(IIncrementalTin) - Static method in class micycle.pgs.PGS_Triangulation
-
Finds the dual-graph of a triangulation.
- toDualGraph(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a mesh-like PShape into its undirected, unweighted dual-graph.
- toEncodedPolyline(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Writes a single holeless shape into the string representation of its Google Encoded Polyline format.
- toGeoJSON(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Writes a shape into the string representation of its GeoJSON format.
- toGraph(IIncrementalTin) - Static method in class micycle.pgs.PGS_Triangulation
-
Finds the graph equivalent to a triangulation.
- toGraph(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Transforms a given PShape into a simple graph representation.
- toHexWKB(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Writes a shape into the hexadecimal string representation of its Well-Known Binary format.
- toJava2D(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Creates a Java2D/java.awt Shape representing a PShape.
- toPointsPShape(Collection<PVector>) - Static method in class micycle.pgs.PGS_Conversion
-
Transforms a list of points into a POINTS PShape.
- toPointsPShape(PVector...) - Static method in class micycle.pgs.PGS_Conversion
-
Transforms a variable arg list of points into a POINTS PShape.
- TopRightCornerDistance - Enum constant in enum class micycle.pgs.PGS_Optimisation.RectPackHeuristic
-
Packs rectangles such that the distance between the top-right corner of each rectangle and that of the bin is maximised.
- toPShape(Collection<? extends Geometry>) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a collection of JTS Geometries into a corresponding GROUP PShape.
- toPShape(Collection<PEdge>) - Static method in class micycle.pgs.PGS_SegmentSet
-
Converts a collection of
PEdges
into aLINES
shape. - toPShape(Collection<PEdge>, Integer, Integer, Integer) - Static method in class micycle.pgs.PGS_SegmentSet
-
Converts a collection of
PEdges
into aLINES
shape, having the (optional) styling provided. - toPShape(Geometry) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a JTS Geometry into a corresponding PShape.
- toPShape(IIncrementalTin) - Static method in class micycle.pgs.PGS_Triangulation
-
Converts a triangulated mesh object to a PShape representing the triangulation.
- toPVector(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Extracts the vertices of a PShape into a list of PVectors.
- toString() - Method in class micycle.pgs.PGS_Conversion.PShapeData
- toTinfourGraph(IIncrementalTin) - Static method in class micycle.pgs.PGS_Triangulation
-
Finds the graph equivalent to a triangulation.
- touch(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Determines whether the have at least one point in common, but where their interiors do not intersect.
- TouchingPerimeter - Enum constant in enum class micycle.pgs.PGS_Optimisation.RectPackHeuristic
-
Packs rectangles such that the total touching perimeter length is maximised.
- touchScale(PShape, PShape) - Static method in class micycle.pgs.PGS_Transformation
-
Scales
shape
about its centroid until it first contacts the linear boundary defined byboundary
. - toWKB(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Writes a shape into Well-Known Binary format.
- toWKB(PShape, String) - Static method in class micycle.pgs.PGS_Conversion
-
Converts a shape into Well-Known Binary format and writes the bytes to a file.
- toWKT(PShape) - Static method in class micycle.pgs.PGS_Conversion
-
Writes the Well-Known Text representation of a shape.
- transform(PShape, UnaryOperator<PShape>) - Static method in class micycle.pgs.PGS_Processing
-
Applies a specified transformation function to each child of the given PShape and returns a new PShape containing the transformed children.
- transformWithIndex(PShape, BiFunction<Integer, PShape, PShape>) - Static method in class micycle.pgs.PGS_Processing
-
Applies a specified transformation function to each child of the given PShape, providing the index of each child, and returns a new PShape containing the transformed children.
- translate(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Translates a shape by the given coordinates.
- translateCentroidTo(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Translates a shape such that its centroid aligns with the specified (x, y) coordinates.
- translateCornerTo(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Translates the given shape such that the upper-left corner of its bounding box aligns with the specified (x, y) coordinates.
- translateEnvelopeTo(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Translates a shape such that the centroid of its bounding box is equivalent to the given coordinates.
- translateTo(PShape, double, double) - Static method in class micycle.pgs.PGS_Transformation
-
Deprecated.Use
translateCentroidTo()
instead. - translateToOrigin(PShape) - Static method in class micycle.pgs.PGS_Transformation
-
Translates the given shape such that the upper-left corner of its bounding box aligns with the origin point (0, 0) of the Processing coordinate system.
- trapezoidPartition(PShape) - Static method in class micycle.pgs.PGS_Processing
-
Decomposes/partitions a shape into axis-aligned (stip-like) trazepoids.
- TRI - Enum constant in enum class micycle.pgs.PGS_Construction.SierpinskiTriCurveType
- triangleSubdivision(double, double, int) - Static method in class micycle.pgs.PGS_Tiling
-
Recursively and randomly subdivides the given/bounded plane into triangles.
- triangleSubdivision(double, double, int, long) - Static method in class micycle.pgs.PGS_Tiling
-
Recursively and randomly subdivides the given/bounded plane into triangles.
- trinscribedPack(PShape, int, int) - Static method in class micycle.pgs.PGS_CirclePacking
-
Generates a circle packing of the input shape, using the inscribed circles (or incircles) of triangles from a triangulation of the shape.
U
- union(Collection<PShape>) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Performs a geometric union operation on a collection of shapes, merging them into a new shape that represents the total area of all the input shapes.
- union(PShape...) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Performs a geometric union operation on a variable number of shapes, merging them into a new shape that encompasses the total area of all input shapes.
- union(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Combines two shapes into a single new shape, representing the total area of both input shapes.
- unionLines(Collection<PShape>) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Unions the linework of a collection of shapes, creating polygonal faces from their intersecting lines.
- unionLines(PShape...) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Unions the linework of the given shapes (varargs form).
- unionLines(PShape, PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Unions the linework of two shapes, creating polygonal faces from their intersecting lines.
- unionMesh(Collection<PShape>) - Static method in class micycle.pgs.PGS_ShapeBoolean
- unionMesh(PShape) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Merges a mesh-like PShape (i.e., a GROUP PShape whose children represent faces with shared edges) into a single shape that denotes the boundary of the entire mesh.
- unionMeshWithoutHoles(Collection<PShape>) - Static method in class micycle.pgs.PGS_ShapeBoolean
-
Deprecated.This method is deprecated due to the lack of support for meshes with holes.
- urquhartFaces(IIncrementalTin, boolean) - Static method in class micycle.pgs.PGS_Meshing
-
Generates a shape consisting of polygonal faces of an Urquhart graph.
V
- valueOf(String) - Static method in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class micycle.pgs.PGS_Construction.SierpinskiTriCurveType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class micycle.pgs.PGS_Contour.OffsetStyle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class micycle.pgs.PGS_Morphology.CapStyle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class micycle.pgs.PGS_Optimisation.RectPackHeuristic
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class micycle.pgs.PGS_Coloring.ColoringAlgorithm
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class micycle.pgs.PGS_Construction.SierpinskiTriCurveType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class micycle.pgs.PGS_Contour.OffsetStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class micycle.pgs.PGS_Morphology.CapStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class micycle.pgs.PGS_Optimisation.RectPackHeuristic
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variableBuffer(PShape, double, double) - Static method in class micycle.pgs.PGS_Morphology
-
Buffers a shape with a varying buffer distance (interpolated between a start distance and an end distance) along the shape's perimeter.
- variableBuffer(PShape, BiFunction<Coordinate, Double, Double>) - Static method in class micycle.pgs.PGS_Morphology
-
Applies a variable buffer to a shape.
- vertexCount(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Returns the total number of vertices that make up a shape.
- visibilityPolygon(PShape, Collection<PVector>) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes a visibility polygon / isovist, the area visible from a set of given points in space, considering occlusions caused by obstacles.
- visibilityPolygon(PShape, PVector) - Static method in class micycle.pgs.PGS_Optimisation
-
Computes a visibility polygon / isovist, the area visible from a given point in a space, considering occlusions caused by obstacles.
W
- weightedMedian(Collection<PVector>) - Static method in class micycle.pgs.PGS_PointSet
-
Finds the geometric median point of a set of weighted sample points.
- width(PShape) - Static method in class micycle.pgs.PGS_ShapePredicates
-
Computes the horizontal width of a shape (the width of its bounding-box).
All Classes and Interfaces|All Packages
boundingBox(PShape)
instead.