|
PolyFEM
|
#include <Selection.hpp>
Public Types | |
| typedef std::array< RowVectorNd, 2 > | BBox |
Public Member Functions | |
| Selection (const int id) | |
| virtual | ~Selection () |
| virtual bool | inside (const size_t p_id, const std::vector< int > &vs, const RowVectorNd &p) const =0 |
| virtual int | id (const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const |
| bool | boundary_only () const |
Static Public Member Functions | |
| 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 | |
| Selection () | |
Protected Attributes | |
| size_t | id_ |
Private Attributes | |
| bool | boundary_only_ = true |
Definition at line 11 of file Selection.hpp.
| typedef std::array<RowVectorNd, 2> polyfem::utils::Selection::BBox |
Definition at line 14 of file Selection.hpp.
|
inline |
Definition at line 16 of file Selection.hpp.
|
inlinevirtual |
Definition at line 18 of file Selection.hpp.
|
inlineprotected |
Definition at line 53 of file Selection.hpp.
|
inline |
Definition at line 47 of file Selection.hpp.
References boundary_only_.
|
static |
Build a selection objects from a JSON selection.
| j_selections | JSON object of selection(s). |
| mesh_bbox | Bounding box of the mesh. |
| resources | Logical resource reader. |
Definition at line 14 of file Selection.cpp.
References polyfem::log_and_throw_error().
Referenced by build_selections().
|
static |
Build a vector of selection objects from a JSON selection(s).
| j_selections | JSON object of selection(s). |
| mesh_bbox | Bounding box of the mesh. |
| resources | Logical resource reader. |
Definition at line 47 of file Selection.cpp.
References build(), and polyfem::log_and_throw_error().
Referenced by polyfem::mesh::GeometryLoader::apply_geometry_selection(), and polyfem::mesh::GeometryLoader::load_fem_entry().
|
inlinevirtual |
Reimplemented in polyfem::utils::BoxSideSelection, polyfem::utils::SpecifiedSelection, and polyfem::utils::FileSelection.
Definition at line 22 of file Selection.hpp.
References id_.
|
pure virtual |
Implemented in polyfem::utils::BoxSelection, polyfem::utils::BoxSideSelection, polyfem::utils::SphereSelection, polyfem::utils::CylinderSelection, polyfem::utils::AxisPlaneSelection, polyfem::utils::PlaneSelection, polyfem::utils::UniformSelection, polyfem::utils::SpecifiedSelection, and polyfem::utils::FileSelection.
|
private |
Definition at line 50 of file Selection.hpp.
Referenced by boundary_only().
|
protected |
Definition at line 55 of file Selection.hpp.
Referenced by polyfem::utils::CylinderSelection::CylinderSelection(), id(), and polyfem::utils::SphereSelection::SphereSelection().