Loading...
Searching...
No Matches
quadblocks.h File Reference

Automatic open-area quad blocks (workplans/MESH_REGIONAL_TRIQUAD_PLAN_2026-10-03.md, phases 2-3). More...

#include "mesh/meshquadregion.h"
#include <QPointF>
#include <QPolygonF>
#include <QRectF>
#include <QVector>
#include <functional>
Include dependency graph for quadblocks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh::QuadBlockGrid
 Local cell size on a regular grid; NaN marks unusable cells. More...
 
struct  mesh::QuadBlockOptions
 Policy for placeQuadBlocks(). More...
 

Namespaces

namespace  mesh
 The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and cell attributes, the mesh generator, quad regions, matching and cleanup, mesh statistics, and the INP and 2DM mesh codecs.
 

Functions

QuadBlockGrid mesh::quadBlockGridFromMesh (const MeshResult &mesh, double pitch, const QVector< QVector< QPointF > > &blockers)
 Estimate local equilateral side lengths from triangles and mask existing quads/features.
 
QuadBlockGrid mesh::quadBlockGridFromField (const QRectF &r, double pitch, const std::function< double(const QRectF &)> &f, const QVector< QVector< QPointF > > &b, const std::function< bool()> &cancel, qint64 cap)
 Build a block grid from a size field over a rectangle, before any triangulation (Qt adapter over meshkit::plan::quadBlockGridFromField).
 
QVector< QuadRegion > mesh::placeQuadBlocks (const QuadBlockGrid &grid, const QuadBlockOptions &options)
 Greedily select axis-aligned mapped quad regions from approximately uniform usable grid bands.
 

Detailed Description

Automatic open-area quad blocks (workplans/MESH_REGIONAL_TRIQUAD_PLAN_2026-10-03.md, phases 2-3).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
Apache-2.0

Automatic open-area quad blocks (workplans/MESH_REGIONAL_TRIQUAD_PLAN_2026-10-03.md, phases 2-3). Rectangles are placed where the cells a first triangle pass produced are nearly uniform and no feature runs, then embedded as mapped quad regions in a second pass; the generator's conforming patch seams make the triangle-to-quad joins exact.