10,893 research outputs found
A New Algorithm for Boolean Operations on General Polygons
International audienceA new algorithm for Boolean operations on general planar polygons is presented. It is available for general planar polygons (manifold or non-manifold, with or without holes). Edges of the two general polygons are subdivided at the intersection points and touching points. Thus, the boundaryof the Boolean operation resultant polygon is made of some whole edges of the polygons after the subdivision process. We use the simplex theory to build the basic mathematical model of the new algorithm. The subordination problem between an edge and a polygon is reduced to a problem of determining whether a point is on some edges of some simplices or inside the simplices, and the associated simplicial chain of the resultant polygon is just an assembly of some simplices and their coefficients of the two polygons after the subdivision process. Examples show that the running time required bythe new algorithm is less than one-third of that bythe Rivero and Feito algorithm
Efficient algorithm for general polygon clipping
International audienceWe present an efficient algorithm to determine the intersection of two planar general polygons. A new method based on rotation angle is proposed to obtain the classification of an edge with respect to a polygon. The edge candidates can be determined efficiently by a 1-dimensional range searching approach based on an AVL tree (a balanced binary search tree). The simplicial chain is used to represent the general polygons, and to determine the classification of polygon edges. Examples are given to illustrate the algorithm
Detecting Weakly Simple Polygons
A closed curve in the plane is weakly simple if it is the limit (in the
Fr\'echet metric) of a sequence of simple closed curves. We describe an
algorithm to determine whether a closed walk of length n in a simple plane
graph is weakly simple in O(n log n) time, improving an earlier O(n^3)-time
algorithm of Cortese et al. [Discrete Math. 2009]. As an immediate corollary,
we obtain the first efficient algorithm to determine whether an arbitrary
n-vertex polygon is weakly simple; our algorithm runs in O(n^2 log n) time. We
also describe algorithms that detect weak simplicity in O(n log n) time for two
interesting classes of polygons. Finally, we discuss subtle errors in several
previously published definitions of weak simplicity.Comment: 25 pages and 13 figures, submitted to SODA 201
BFACF-style algorithms for polygons in the body-centered and face-centered cubic lattices
In this paper the elementary moves of the BFACF-algorithm for lattice
polygons are generalised to elementary moves of BFACF-style algorithms for
lattice polygons in the body-centred (BCC) and face-centred (FCC) cubic
lattices. We prove that the ergodicity classes of these new elementary moves
coincide with the knot types of unrooted polygons in the BCC and FCC lattices
and so expand a similar result for the cubic lattice. Implementations of these
algorithms for knotted polygons using the GAS algorithm produce estimates of
the minimal length of knotted polygons in the BCC and FCC lattices
-Stars or On Extending a Drawing of a Connected Subgraph
We consider the problem of extending the drawing of a subgraph of a given
plane graph to a drawing of the entire graph using straight-line and polyline
edges. We define the notion of star complexity of a polygon and show that a
drawing of an induced connected subgraph can be extended with at
most bends per edge, where is the
largest star complexity of a face of and is the size of the
largest face of . This result significantly improves the previously known
upper bound of [5] for the case where is connected. We also show
that our bound is worst case optimal up to a small additive constant.
Additionally, we provide an indication of complexity of the problem of testing
whether a star-shaped inner face can be extended to a straight-line drawing of
the graph; this is in contrast to the fact that the same problem is solvable in
linear time for the case of star-shaped outer face [9] and convex inner face
[13].Comment: Appears in the Proceedings of the 26th International Symposium on
Graph Drawing and Network Visualization (GD 2018
Approximate Euclidean shortest paths in polygonal domains
Given a set of pairwise disjoint simple polygonal obstacles
in defined with vertices, we compute a sketch of
whose size is independent of , depending only on and the
input parameter . We utilize to compute a
-approximate geodesic shortest path between the two given points
in time. Here, is a user
parameter, and is a small positive constant (resulting from the time
for triangulating the free space of using the algorithm in
\cite{journals/ijcga/Bar-YehudaC94}). Moreover, we devise a
-approximation algorithm to answer two-point Euclidean distance
queries for the case of convex polygonal obstacles.Comment: a few updates; accepted to ISAAC 201
- …