PolyFEM
Loading...
Searching...
No Matches
polyfem::utils::BoxSideSelection Class Reference

#include <Selection.hpp>

Inheritance diagram for polyfem::utils::BoxSideSelection:
[legend]
Collaboration diagram for polyfem::utils::BoxSideSelection:
[legend]

Public Member Functions

 BoxSideSelection (const json &selection, const BBox &mesh_bbox)
 
bool inside (const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const override
 
int id (const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const override
 
- Public Member Functions inherited from polyfem::utils::Selection
 Selection (const int id)
 
virtual ~Selection ()
 

Protected Attributes

BBox mesh_bbox_
 
double tolerance_
 
int id_offset_
 
- Protected Attributes inherited from polyfem::utils::Selection
size_t id_
 

Additional Inherited Members

- Public Types inherited from polyfem::utils::Selection
typedef std::array< RowVectorNd, 2 > BBox
 
- Static Public Member Functions inherited from polyfem::utils::Selection
static std::shared_ptr< Selectionbuild (const json &j_selections, const BBox &mesh_bbox, const std::string &root_path="")
 Build a selection objects from a JSON selection.
 
static std::vector< std::shared_ptr< utils::Selection > > build_selections (const json &j_selections, const BBox &mesh_bbox, const std::string &root_path="")
 Build a vector of selection objects from a JSON selection(s).
 
- Protected Member Functions inherited from polyfem::utils::Selection
 Selection ()
 

Detailed Description

Definition at line 69 of file Selection.hpp.

Constructor & Destructor Documentation

◆ BoxSideSelection()

polyfem::utils::BoxSideSelection::BoxSideSelection ( const json selection,
const BBox mesh_bbox 
)

Definition at line 120 of file Selection.cpp.

References id_offset_, and tolerance_.

Member Function Documentation

◆ id()

int polyfem::utils::BoxSideSelection::id ( const size_t  element_id,
const std::vector< int > &  vs,
const RowVectorNd p 
) const
overridevirtual

Reimplemented from polyfem::utils::Selection.

Definition at line 131 of file Selection.cpp.

References id_offset_, mesh_bbox_, and tolerance_.

◆ inside()

bool polyfem::utils::BoxSideSelection::inside ( const size_t  p_id,
const std::vector< int > &  vs,
const RowVectorNd p 
) const
inlineoverridevirtual

Implements polyfem::utils::Selection.

Definition at line 76 of file Selection.hpp.

Member Data Documentation

◆ id_offset_

int polyfem::utils::BoxSideSelection::id_offset_
protected

Definition at line 86 of file Selection.hpp.

Referenced by BoxSideSelection(), and id().

◆ mesh_bbox_

BBox polyfem::utils::BoxSideSelection::mesh_bbox_
protected

Definition at line 84 of file Selection.hpp.

Referenced by id().

◆ tolerance_

double polyfem::utils::BoxSideSelection::tolerance_
protected

Definition at line 85 of file Selection.hpp.

Referenced by BoxSideSelection(), and id().


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