Loading...
Searching...
No Matches
meshkit::native_detail::RegionLimits Class Reference

Bounding-volume hierarchy over quad-region bounding boxes that answers the smallest region spacing touching a footprint. More...

#include </home/runner/work/Meshkit/Meshkit/src/native/regionlimits.hpp>

Collaboration diagram for meshkit::native_detail::RegionLimits:

Public Member Functions

 RegionLimits (const std::vector< plan::QuadRegion > &regions, Work &work)
 Index every region that has a positive spacing and a non-empty ring.
 
double minimum (const Box2 &bounds, Work &work) const
 Smallest spacing among indexed regions whose box meets a footprint.
 

Detailed Description

Bounding-volume hierarchy over quad-region bounding boxes that answers the smallest region spacing touching a footprint.

Owns copies of the boxes and spacings; keeps no reference to its inputs.

Constructor & Destructor Documentation

◆ RegionLimits()

meshkit::native_detail::RegionLimits::RegionLimits ( const std::vector< plan::QuadRegion > & regions,
Work & work )
inline

Index every region that has a positive spacing and a non-empty ring.

Parameters
[in]regionsBorrowed regions; each ring's bounding box is stored with its spacing.
[in,out]workBudget charged while building.
Exceptions
Stopregion_size (status Infeasible) for a nonfinite or negative spacing, or from work.
Here is the call graph for this function:

Member Function Documentation

◆ minimum()

double meshkit::native_detail::RegionLimits::minimum ( const Box2 & bounds,
Work & work ) const
inline

Smallest spacing among indexed regions whose box meets a footprint.

Parameters
[in]boundsFootprint box in XY units; touching counts (see meets()).
[in,out]workBudget charged per visited node.
Returns
Spacing in XY units, or 0 when no indexed region box meets bounds.
Exceptions
Stopfrom work.
Here is the call graph for this function:

The documentation for this class was generated from the following file: