14 #include "libmesh/bounding_box.h" 15 #include "libmesh/face_tri3.h" 16 #include "libmesh/mesh_tet_interface.h" 22 #include <unordered_map> 128 std::unordered_map<dof_id_type, std::vector<dof_id_type>>
_ray_grid;
bool containsBySolidAngle(const Point &point) const
Robust fallback containment query based on accumulated solid angle.
const std::unique_ptr< libMesh::PointLocatorBase > _point_locator
Pre-built point locator for fast proximity-to-surface detection.
Real _z_min
Minimum global z coordinate used to map query points into yz-grid bins.
Real _z_cell_size
Width of one yz-grid cell in the z direction.
Real _y_cell_size
Width of one yz-grid cell in the y direction.
RayIntersection
Result of intersecting the positive x-direction ray with a triangle.
bool pointOnSurface(const Point &point) const
Detect whether a query point lies on or extremely near the manifold surface.
Real _y_min
Minimum global y coordinate used to map query points into yz-grid bins.
const Real _surface_tolerance
Absolute tolerance used throughout validation and geometric classification.
std::size_t _num_z_cells
Number of yz-grid bins in the z direction.
const libMesh::BoundingBox _bounding_box
Global bounding box of the transformed manifold.
std::unordered_map< dof_id_type, std::vector< dof_id_type > > _ray_grid
Lookup from packed yz-grid cell index to triangles that could intersect the +x query ray...
void buildCandidateGrid()
Build the yz-plane lookup grid used to accelerate +x ray queries.
bool pointInsideBoundingBox(const Point &point) const
Cheap global bounding-box rejection for containment queries.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const libMesh::BoundingBox & boundingBox() const
std::size_t numTriangles() const
TriangleManifold(MeshBase &mesh, const Real surface_tolerance)
Build a manifold classifier from a prepared surface mesh.
std::vector< dof_id_type > rayCandidates(const Point &point) const
Get the subset of triangles whose yz extents may intersect the query ray.
Utility for querying point containment against a closed triangulated surface mesh.
RayIntersection rayIntersectsTriangle(const Point &point, const libMesh::Elem &tri) const
Intersect a positive x-direction ray with a single triangle.
bool contains(const Point &point) const
void finalize()
Complete post-parse validation and acceleration-structure setup.
std::size_t _num_y_cells
Number of yz-grid bins in the y direction.