|
| template<typename F > |
| bool | MR::forEachObjectKind (F &&func) |
| | Calls func, which is ( auto kind ) -> bool, for each known object kind. If it returns true, stops immediately and also returns true.
|
| |
| template<typename ... P> |
| std::shared_ptr< VisualObject > | MR::makeObjectFromEnum (FeaturesObjectKind kind, P &&... params) |
| | Allocates an object of type kind, passing params... to its constructor.
|
| |
| template<typename ... P> |
| std::shared_ptr< VisualObject > | MR::makeObjectFromClassName (std::string className, P &&... params) |
| | Allocates an object of type kind, passing params... to its constructor.
|
| |
| MRMESH_API std::optional< Vector3f > | MR::getFeatureNormal (FeatureObject *feature) |
| | Using forEachObjectKind the template collects a list of features for which the method ...->getNormal() is available.
|
| |
| MRMESH_API std::optional< Vector3f > | MR::getFeatureDirection (FeatureObject *feature) |
| | Using forEachObjectKind the template collects a list of features for which the method ...->getDirection() is available.
|
| |
| MRMESH_API std::unordered_set< std::string > | MR::getFeaturesTypeWithNormals () |
| | Try to getNormal from specific feature using forEachObjectKind template. Returns nullopt is ...->getNormal() is not available for given feature type.
|
| |
| MRMESH_API std::unordered_set< std::string > | MR::getFeaturesTypeWithDirections () |
| | Try to getDirection from specific feature using forEachObjectKind template. Returns nullopt is ...->getDirection() is not available for given feature type.
|
| |