![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Defines null (empty) geom object. More...
#include <geomObjects.h>
Public Member Functions | |
| NullGeomObject (std::string description="") | |
| Constructor. | |
| NullGeomObject (const NullGeomObject &other) | |
| Copy constructor. | |
| NullGeomObject & | operator= (const NullGeomObject &other) |
| Assignment operator. | |
| void | transform (const util::Point &translation, const double &scale, const double &angle, const util::Point &axis, const util::Point *rotationPoint) override |
Similarity about pivot \(\mathbf p\) (default: old center d_x), then rigid displacement \(\mathbf t\) = translation: \(\mathbf y = \mathbf p + s\,\mathbf R(\mathbf x-\mathbf p) + \mathbf t\). When \(\theta=0\) and \(s=1\), \(\mathbf y = \mathbf x + \mathbf t\) for every point and the center. | |
| virtual std::string | printStr (int nt, int lvl) const override |
| Returns the string containing printable information about the object. | |
| void | print (int nt, int lvl) const override |
| Prints the information about the object. | |
| void | print () const override |
| Prints the information about the object. | |
Public Member Functions inherited from geom::GeomObject | |
| GeomObject (std::string name="", std::string description="") | |
| Constructor. | |
| virtual double | volume () const |
| Computes the volume (area in 2d, length in 1d) of object. | |
| virtual util::Point | center () const |
| Computes the center of object. | |
| virtual std::pair< util::Point, util::Point > | box () const |
| Computes the bounding box of object. | |
| virtual std::pair< util::Point, util::Point > | box (const double &tol) const |
| Computes the bounding box of object. | |
| virtual double | inscribedRadius () const |
| Computes the radius of biggest circle/sphere completely within the object. | |
| virtual double | boundingRadius () const |
| Computes the radius of smallest circle/sphere such that object can be fit into it. | |
| virtual bool | wallContactQuery (const util::Point &x, WallContactHit &hit) const |
Closest-point / signed-gap query for analytical wall contact. Default: unsupported (returns false, clears hit). | |
| virtual bool | isInside (const util::Point &x) const |
| Checks if point is inside this object. | |
| virtual bool | isOutside (const util::Point &x) const |
| Checks if point is outside of this object. | |
| virtual bool | isNear (const util::Point &x, const double &tol) const |
| Checks if point is within given distance of this object. | |
| virtual bool | isNearBoundary (const util::Point &x, const double &tol, const bool &within) const |
| Checks if point is within given distance of this object. | |
| virtual bool | doesIntersect (const util::Point &x) const |
| Checks if point lies exactly on the boundary. | |
| virtual bool | isInside (const std::pair< util::Point, util::Point > &box) const |
| Checks if box is completely inside. | |
| virtual bool | isOutside (const std::pair< util::Point, util::Point > &box) const |
| Checks if box is outside of the object. | |
| virtual bool | isNear (const std::pair< util::Point, util::Point > &box, const double &tol) const |
| Checks if box is within given distance of this object. | |
| virtual bool | doesIntersect (const std::pair< util::Point, util::Point > &box) const |
| Checks if box intersects this object. | |
Additional Inherited Members | |
Data Fields inherited from geom::GeomObject | |
| const std::string | d_name |
| name of object | |
| const std::string | d_description |
| Further description of object. | |
| std::vector< std::string > | d_tags |
| Tags/attributes about the object. | |
Defines null (empty) geom object.
Definition at line 356 of file geomObjects.h.
|
inline |
Constructor.
Definition at line 361 of file geomObjects.h.
|
inline |
Copy constructor.
| other | Object to copy from |
Definition at line 368 of file geomObjects.h.
References geom::GeomObject::d_tags.
|
inline |
Assignment operator.
| other | Object to copy from |
Definition at line 378 of file geomObjects.h.
References geom::GeomObject::d_tags.
|
inlineoverridevirtual |
Prints the information about the object.
Reimplemented from geom::GeomObject.
Definition at line 420 of file geomObjects.h.
References print().
Referenced by print().
|
inlineoverridevirtual |
Prints the information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Reimplemented from geom::GeomObject.
Definition at line 413 of file geomObjects.h.
References printStr().
|
inlineoverridevirtual |
Returns the string containing printable information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Reimplemented from geom::GeomObject.
Definition at line 399 of file geomObjects.h.
References geom::GeomObject::d_name, and util::io::getTabS().
Referenced by print().
|
inlineoverridevirtual |
Similarity about pivot \(\mathbf p\) (default: old center d_x), then rigid displacement \(\mathbf t\) = translation: \(\mathbf y = \mathbf p + s\,\mathbf R(\mathbf x-\mathbf p) + \mathbf t\). When \(\theta=0\) and \(s=1\), \(\mathbf y = \mathbf x + \mathbf t\) for every point and the center.
| translation | Rigid translation vector \(\mathbf t\) (added after rotate+scale about \(\mathbf p\)) |
| scale | Uniform scale factor |
| angle | Rotation angle (radians) |
| axis | Axis of rotation |
| rotationPoint | If non-null, use as \(\mathbf p\); if null, use old d_x as pivot. |
Reimplemented from geom::GeomObject.
Definition at line 386 of file geomObjects.h.