pub fn append_to_ring<P, const CW: bool, const CL: bool>(
polygon: &mut Polygon<P, CW, CL>,
point: P,
ring_index: Option<usize>,
)where
P: PointTrait,Expand description
Push point onto the polygon’s outer ring (ring_index = None)
or its ring_index-th interior ring (ring_index = Some(i)).
Mirrors the append(polygon, point, ring_index) overload of
boost::geometry::append from
boost/geometry/algorithms/append.hpp, where the outer ring is
index -1 and interior rings are 0..n.
An out-of-range interior ring_index is a no-op, matching Boost:
append.hpp:96-104 guards the interior write with
else if (ring_index < num_interior_rings(polygon)) and has no
fall-through, so an index past the last hole silently does nothing.