SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A class that provides point-location based on entities' associated meshsets. More...
#include <ModelEntityPointLocator.h>
Public Member Functions | |
smtkTypeMacro (smtk::mesh::moab::ModelEntityPointLocator) | |
smtkCreateMacro (smtk::common::Extension) | |
smtkSuperclassMacro (smtk::model::PointLocatorExtension) | |
bool | closestPointOn (const smtk::model::EntityRef &entity, std::vector< double > &closestPoints, const std::vector< double > &sourcePoints, bool snapToPoint) override |
Overwrites closestPoints with points on entity closest to sourcePoints. | |
bool | randomPoint (const smtk::model::EntityRef &entity, std::size_t nPoints, std::vector< double > &points, std::size_t seed) override |
Generate nPoints random points on entity and store the results in points. More... | |
Public Member Functions inherited from smtk::model::PointLocatorExtension | |
smtkTypeMacro (PointLocatorExtension) | |
smtkSuperclassMacro (smtk::common::Extension) | |
smtkSharedFromThisMacro (smtk::common::Extension) | |
bool | randomPoint (const EntityRef &entity, std::size_t nPoints, std::vector< double > &points) |
Same as above, but seeded with a hardware-supplied random integer. | |
Public Member Functions inherited from smtk::common::Extension | |
smtkTypeMacroBase (Extension) | |
Additional Inherited Members | |
Static Public Member Functions inherited from smtk::common::Extension | |
static bool | registerExtension (const std::string &name, std::function< Extension::Ptr(void)> ctor, bool oneShot=true) |
Register an extension with a unique name. More... | |
static bool | unregisterExtension (const std::string &name) |
Remove an extension from the registry. | |
static void | visitAll (std::function< std::pair< bool, bool >(const std::string &, Extension::Ptr)> visitor) |
Call the given function on each registered extension. More... | |
template<typename T > | |
static void | visit (std::function< std::pair< bool, bool >(const std::string &, T)> visitor) |
Iterate over all the extensions that are subclasses of the given type. More... | |
static Extension::Ptr | find (const std::string &name, bool removeOneShot=true) |
Find an extension given a specific name. | |
template<typename T > | |
static T::Ptr | findAs (const std::string &name) |
Find the first extension with a given name and type. | |
A class that provides point-location based on entities' associated meshsets.
|
overridevirtual |
Generate nPoints random points on entity and store the results in points.
Return true if successful.
Implements smtk::model::PointLocatorExtension.