#include <zcross_extractor.H>
Collaboration diagram for ZCrossExtractor< ScalarField, Confidence, FaceGenerator >:
Public Member Functions | |
Constructors | |
ZCrossExtractor (const BMESH *mesh_in, ScalarField sfield_in=ScalarField(), Confidence conf_in=Confidence(), FaceGenerator fgen_in=FaceGenerator()) | |
Extraction Functions | |
void | extract () |
Extract the zero crossing lines from the given mesh. | |
Accessors | |
const BMESH * | get_mesh () const |
Result Accessors | |
const std::vector< ZXseg > & | segs () const |
Access the resulting extracted segments. | |
void | reset () |
Clear the extracted segments. | |
Private Member Functions | |
bool | get_zcross_points (const Bface *f, BarycentricCoord bc_pts[2], int edge_nums[2]) |
double | get_confidence (const Bface *f, const BarycentricCoord &bc) |
bool | walk_line (Bface *start_face, Bface *next_face, std::vector< ZCrossSeg > &line) |
void | extract_line (Bface *f) |
void | add_seg (const ZCrossSeg &seg) |
Private Attributes | |
std::vector< ZXseg > | extracted_segs |
std::vector< bool > | face_markers |
const BMESH * | mesh |
ScalarField | sfield |
Confidence | conf |
FaceGenerator | fgen |
This class is templated on a series of functors (function objects) that determine what type of zero crossing lines it extracts, what confidence it assigns to each extracted point, and how the faces of a mesh (in terms of ordering and number) are processed to extract the zero crossing lines. The interfaces of the three functors can be found in the following abstract base classes:
ScalarField
-Confidence
-FaceGenerator
-
Definition at line 155 of file zcross_extractor.H.
|
Definition at line 162 of file zcross_extractor.H. |
|
Definition at line 727 of file zcross_extractor.H. References mlib::isZero(), STYPE_SUGLINE, and Bface::v(). |
|
Extract the zero crossing lines from the given mesh.
Definition at line 428 of file zcross_extractor.H. References BMESH::bf(), ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extract_line(), ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::face_markers, ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::fgen, ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::mesh, BMESH::nfaces(), and ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::reset(). |
|
Definition at line 637 of file zcross_extractor.H. Referenced by ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extract(). |
|
Definition at line 531 of file zcross_extractor.H. |
|
Definition at line 182 of file zcross_extractor.H. References ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::mesh. Referenced by ZCrossRandFaceGenerator::operator()(), and ZCrossAllFaceGenerator::operator()(). |
|
Definition at line 461 of file zcross_extractor.H. References mlib::isEqual(). |
|
Clear the extracted segments.
Definition at line 194 of file zcross_extractor.H. References ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extracted_segs. Referenced by ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extract(). |
|
Access the resulting extracted segments.
Definition at line 190 of file zcross_extractor.H. References ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extracted_segs. Referenced by ZCrossPreviousFaceGenerator::operator()(). |
|
Definition at line 551 of file zcross_extractor.H. References Bface::index(), Bface::nbr(), and nfaces. |
|
Definition at line 221 of file zcross_extractor.H. |
|
Definition at line 214 of file zcross_extractor.H. Referenced by ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::reset(), and ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::segs(). |
|
Definition at line 216 of file zcross_extractor.H. Referenced by ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extract(). |
|
Definition at line 222 of file zcross_extractor.H. Referenced by ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extract(). |
|
Definition at line 218 of file zcross_extractor.H. Referenced by ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::extract(), and ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::get_mesh(). |
|
Definition at line 220 of file zcross_extractor.H. |