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

#include <Selection.hpp>

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

Public Member Functions

 CylinderSelection (const json &selection, const BBox &mesh_bbox)
 
bool inside (const size_t p_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 ()
 
virtual int id (const size_t element_id, const std::vector< int > &vs, const RowVectorNd &p) const
 

Protected Attributes

RowVectorNd axis_
 
RowVectorNd point_
 
double radius2_
 
double height_
 
- 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 107 of file Selection.hpp.

Constructor & Destructor Documentation

◆ CylinderSelection()

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

Definition at line 185 of file Selection.cpp.

References axis_, height_, polyfem::utils::Selection::id_, point_, and radius2_.

Member Function Documentation

◆ inside()

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

Implements polyfem::utils::Selection.

Definition at line 209 of file Selection.cpp.

References axis_, height_, point_, and radius2_.

Member Data Documentation

◆ axis_

RowVectorNd polyfem::utils::CylinderSelection::axis_
protected

Definition at line 117 of file Selection.hpp.

Referenced by CylinderSelection(), and inside().

◆ height_

double polyfem::utils::CylinderSelection::height_
protected

Definition at line 120 of file Selection.hpp.

Referenced by CylinderSelection(), and inside().

◆ point_

RowVectorNd polyfem::utils::CylinderSelection::point_
protected

Definition at line 118 of file Selection.hpp.

Referenced by CylinderSelection(), and inside().

◆ radius2_

double polyfem::utils::CylinderSelection::radius2_
protected

Definition at line 119 of file Selection.hpp.

Referenced by CylinderSelection(), and inside().


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