diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-08 11:48:17 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-08 11:48:17 +0100 |
commit | 144f9b57295f7fee9306ee1a4480c165a834e6ca (patch) | |
tree | 71fbc8d8eb4c1d46a45912eafa2b1207a582c52a /assetFactory | |
parent | Generate extrusion face names from halfedge adjacent face names (diff) | |
download | ilt-144f9b57295f7fee9306ee1a4480c165a834e6ca.tar.bz2 ilt-144f9b57295f7fee9306ee1a4480c165a834e6ca.tar.xz ilt-144f9b57295f7fee9306ee1a4480c165a834e6ca.zip |
Remove no longer required getAdjacentFaceName
Diffstat (limited to 'assetFactory')
-rw-r--r-- | assetFactory/faceController.cpp | 12 | ||||
-rw-r--r-- | assetFactory/faceController.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/assetFactory/faceController.cpp b/assetFactory/faceController.cpp index 92cc8d2..7e4b0e1 100644 --- a/assetFactory/faceController.cpp +++ b/assetFactory/faceController.cpp @@ -15,18 +15,6 @@ FaceController::apply(ModelFactoryMesh & mesh, const StyleStack & parents, const }); } -std::string -FaceController::getAdjacentFaceName( - const ModelFactoryMesh & mesh, const std::span<const OpenMesh::FaceHandle> ofrange, OpenMesh::FaceHandle nf) -{ - const auto nfrange = mesh.ff_range(nf); - if (const auto target = std::find_first_of(ofrange.begin(), ofrange.end(), nfrange.begin(), nfrange.end()); - target != ofrange.end()) { - return mesh.property(mesh.nameFaceProperty, *target); - }; - return {}; -}; - void FaceController::applySingle(ModelFactoryMesh & mesh, const StyleStack & parents, const std::string & name, Shape::CreatedFaces & faces) const diff --git a/assetFactory/faceController.h b/assetFactory/faceController.h index 91860f4..8d30dc6 100644 --- a/assetFactory/faceController.h +++ b/assetFactory/faceController.h @@ -46,8 +46,6 @@ private: void applySingle(ModelFactoryMesh & mesh, const Style::StyleStack & parents, const std::string & name, Shape::CreatedFaces & faces) const; - static std::string getAdjacentFaceName(const ModelFactoryMesh & mesh, - const std::span<const OpenMesh::FaceHandle> ofrange, OpenMesh::FaceHandle nf); Shape::CreatedFaces extrude(ModelFactoryMesh & mesh, const std::string & faceName, OpenMesh::FaceHandle) const; Shape::CreatedFaces split( ModelFactoryMesh & mesh, const std::string & faceName, OpenMesh::FaceHandle &, const Split &) const; |