Loading...
Searching...
No Matches
operation.hpp File Reference
#include "meshkit/mesh.hpp"
#include <chrono>
#include <stdexcept>
#include <cmath>
#include <limits>
#include <initializer_list>
#include <utility>
Include dependency graph for operation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  meshkit::native_detail::Stop
 Exception object thrown by fail() to abort a native operation. More...
 
struct  meshkit::native_detail::Work
 Work-unit budget, workspace-estimate gate and cancellation poll for one operation. More...
 

Namespaces

namespace  meshkit
 The Qt-free MeshKit library: job events and progress (meshkit::runtime), the neutral mesh model, meshing jobs, the constrained Delaunay kernel and terrain surfaces (meshkit::core), and the MKB and SMS 2DM codecs (meshkit::io).
 
namespace  meshkit::native_detail
 Implementation helpers of the native jobs and codecs (failure signalling, work accounting, file publication); not installed and not part of the supported API.
 

Functions

void meshkit::native_detail::fail (std::string code, std::string message, RunStatus status=RunStatus::Infeasible)
 Abort the current native operation by throwing a Stop.
 
std::uint64_t meshkit::native_detail::edgeKey (Index a, Index b)
 Order-independent 64-bit key of an undirected edge.
 
Box2 meshkit::native_detail::box (const Point2 *p, int n)
 Axis-aligned bounding box of a point array.
 
bool meshkit::native_detail::meets (const Box2 &a, const Box2 &b)
 Closed overlap test of two normalized boxes; touching edges or corners count.
 
bool meshkit::native_detail::finite (Point2 p)
 Test whether both coordinates are finite.
 
bool meshkit::native_detail::utf8 (const std::string &s)
 Check that a byte string is well-formed UTF-8.
 
double meshkit::native_detail::seconds (std::chrono::steady_clock::time_point start)
 Elapsed steady-clock time.