Toponaming: Bring in composite shapes for findSubshapesWithSharedVertex ( searchSubShape )

This commit is contained in:
Zheng, Lei
2024-07-18 17:09:48 -04:00
committed by bgbsww
parent 3fa339e9eb
commit f6494bdf05
8 changed files with 181 additions and 49 deletions

View File

@@ -54,11 +54,12 @@ namespace Data
//struct MappedChildElements;
/// Option for App::GeoFeature::searchElementCache()
enum class SearchOptions {
enum class SearchOption {
/// Whether to compare shape geometry
CheckGeometry = 1,
SingleResult = 2,
};
typedef Base::Flags<SearchOption> SearchOptions;
/** Segments
* Sub-element type of the ComplexGeoData type
@@ -483,5 +484,5 @@ protected:
} //namespace App
ENABLE_BITMASK_OPERATORS(Data::SearchOption)
#endif

View File

@@ -165,7 +165,7 @@ public:
* reference to the same geometry of the old element.
*/
virtual const std::vector<std::string>& searchElementCache(const std::string &element,
Data::SearchOptions options = Data::SearchOptions::CheckGeometry,
Data::SearchOptions options = Data::SearchOption::CheckGeometry,
double tol = 1e-7,
double atol = 1e-10) const;