|
PolyFEM
|
#include <Selection.hpp>
Public Member Functions | |
| FileSelection (const io::ResourceIO &resources, const std::string &path, const int id_offset=0) | |
| 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::SpecifiedSelection | |
| SpecifiedSelection (const std::vector< int > &ids) | |
Public Member Functions inherited from polyfem::utils::Selection | |
| Selection (const int id) | |
| virtual | ~Selection () |
| bool | boundary_only () const |
Private Attributes | |
| std::vector< std::pair< int, std::vector< int > > > | data_ |
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< Selection > | build (const json &j_selections, const BBox &mesh_bbox, const io::ResourceIO &resources) |
| 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 io::ResourceIO &resources) |
| Build a vector of selection objects from a JSON selection(s). | |
Protected Member Functions inherited from polyfem::utils::SpecifiedSelection | |
| SpecifiedSelection () | |
Protected Member Functions inherited from polyfem::utils::Selection | |
| Selection () | |
Protected Attributes inherited from polyfem::utils::SpecifiedSelection | |
| std::vector< int > | ids_ |
Protected Attributes inherited from polyfem::utils::Selection | |
| size_t | id_ |
Definition at line 192 of file Selection.hpp.
| polyfem::utils::FileSelection::FileSelection | ( | const io::ResourceIO & | resources, |
| const std::string & | path, | ||
| const int | id_offset = 0 |
||
| ) |
Definition at line 310 of file Selection.cpp.
References data_, polyfem::io::ResourceIO::describe(), polyfem::utils::SpecifiedSelection::ids_, polyfem::log_and_throw_error(), and polyfem::io::ResourceIO::read_int_matrix().
|
overridevirtual |
Reimplemented from polyfem::utils::SpecifiedSelection.
Definition at line 362 of file Selection.cpp.
References data_, and polyfem::utils::SpecifiedSelection::id().
|
overridevirtual |
Reimplemented from polyfem::utils::SpecifiedSelection.
Definition at line 348 of file Selection.cpp.
References data_, and polyfem::utils::SpecifiedSelection::inside().
|
private |
Definition at line 204 of file Selection.hpp.
Referenced by FileSelection(), id(), and inside().