-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ API #7
C++ API #7
Conversation
|
Some further remarks:
|
I added the most basic parameters. There are a lot more parameters that could be added, but those are tricky to tune without looking at output of intermediate steps in reconstruction pipeline. So I started with the most basic ones here that are easy to understand and not dependent on the quality of the point cloud. These should be sufficient for most use cases. Ideally we can in the future have a method to automatically judge the point cloud quality (eg based on pointdensity, and planarity) to set the quality dependent parameters automatically to sensible values. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For later reference, some things to look at/consider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could also do this using templates/concepts
|
||
//todo temp for testing | ||
void write_cdt_to_obj(const DT& cdt, const std::string& filename); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
* | ||
* //todo doc | ||
*/ | ||
template <typename Footprint> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably better to define a concept for Footprint
elevation_provider = roofer::reconstruction::createElevationProvider(cfg.floor_elevation); | ||
} | ||
|
||
#ifdef ROOFER_VERBOSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the roofer::logger
const float floor_elevation, | ||
ArrangementExtruderConfig cfg | ||
Arrangement_2& arr, | ||
const ElevationProvider& elevation_provider, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned before, consider use a concept for ElevationProvider (?)
@@ -15,6 +15,14 @@ | |||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
#include <roofer/reconstruction/cdt_util.hpp> | |||
|
|||
#include <CGAL/Polygon_2.h> | |||
#include <CGAL/Barycentric_coordinates_2/triangle_coordinates_2.h> | |||
//todo temp for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
FYI I merged this now, to keep the code in sync with other developments. I suggest we open a new PR for the API for the remaining work. |
Working pull request
todo: