From 335e9c6b4bbc5bbf1a861ac16abf612f5519dd5e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 5 Jan 2024 20:20:14 +0000 Subject: Template GeometicPlane on Position type --- assetFactory/faceController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assetFactory') diff --git a/assetFactory/faceController.h b/assetFactory/faceController.h index fb89d25..e940640 100644 --- a/assetFactory/faceController.h +++ b/assetFactory/faceController.h @@ -11,7 +11,7 @@ class FaceController : public Mutation, public Style, public Persistence::Persistable { public: - class Split : public Persistable, public GeometricPlane { + class Split : public Persistable, public GeometricPlaneT { public: std::string id; -- cgit v1.2.3 From 6a1df3dfbae98a05e74c646cc216fbc19ffdb6d6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Jan 2024 13:04:31 +0000 Subject: Template Ray on position type --- assetFactory/faceController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assetFactory') diff --git a/assetFactory/faceController.cpp b/assetFactory/faceController.cpp index d045b3c..10a0c1e 100644 --- a/assetFactory/faceController.cpp +++ b/assetFactory/faceController.cpp @@ -90,7 +90,7 @@ FaceController::split( const size_t nextIdx = (curIdx + 1) % vertexRelations.size(); const auto ¤t = vertexRelations[curIdx], next = vertexRelations[nextIdx]; if (GeometricPlane::isIntersect(current.second, next.second)) { - const auto ray = Ray::fromPoints(mesh.point(current.first), mesh.point(next.first)); + const auto ray = RayFactory::fromPoints(mesh.point(current.first), mesh.point(next.first)); const auto intersect = split.getRayIntersectPosition(ray); assert(intersect); const auto newv = mesh.add_vertex(intersect->position); -- cgit v1.2.3