Added tech ENABLE_MEASURE_GIZMO_DEBUG to embed debug code related to GLGizmoMeasure
This commit is contained in:
parent
86b390e237
commit
7b43786124
5 changed files with 30 additions and 35 deletions
|
@ -1,3 +1,4 @@
|
|||
#include "libslic3r/libslic3r.h"
|
||||
#include "Measure.hpp"
|
||||
|
||||
#include "libslic3r/Geometry/Circle.hpp"
|
||||
|
@ -407,10 +408,12 @@ Measuring::Measuring(const indexed_triangle_set& its)
|
|||
Measuring::~Measuring() {}
|
||||
|
||||
|
||||
#if ENABLE_MEASURE_GIZMO_DEBUG
|
||||
std::vector<SurfaceFeature> Measuring::get_all_features() const
|
||||
{
|
||||
return priv->get_all_features();
|
||||
}
|
||||
#endif // ENABLE_MEASURE_GIZMO_DEBUG
|
||||
|
||||
|
||||
std::optional<SurfaceFeature> Measuring::get_feature(size_t face_idx, const Vec3d& point) const
|
||||
|
|
|
@ -69,9 +69,11 @@ public:
|
|||
explicit Measuring(const indexed_triangle_set& its);
|
||||
~Measuring();
|
||||
|
||||
#if ENABLE_MEASURE_GIZMO_DEBUG
|
||||
// Return a reference to a list of all features identified on the its.
|
||||
// Use only for debugging. Expensive, do not call often.
|
||||
[[deprecated]] std::vector<SurfaceFeature> get_all_features() const;
|
||||
std::vector<SurfaceFeature> get_all_features() const;
|
||||
#endif // ENABLE_MEASURE_GIZMO_DEBUG
|
||||
|
||||
// Given a face_idx where the mouse cursor points, return a feature that
|
||||
// should be highlighted (if any).
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
// Enable picking using raytracing
|
||||
#define ENABLE_RAYCAST_PICKING (1 && ENABLE_LEGACY_OPENGL_REMOVAL)
|
||||
#define ENABLE_RAYCAST_PICKING_DEBUG (0 && ENABLE_RAYCAST_PICKING)
|
||||
// Enable debug code for Measure Gizmo
|
||||
#define ENABLE_MEASURE_GIZMO_DEBUG (0 && ENABLE_2_5_0_ALPHA1)
|
||||
|
||||
|
||||
#endif // _prusaslicer_technologies_h_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue