Skip to content

Commit

Permalink
Fixed warnings:
Browse files Browse the repository at this point in the history
- forward declaration of IsectInfo as class (and it is a struct)
- moved SCALING and INV_SCALING to mesh_surface_intersection.cpp
  • Loading branch information
BrunoLevy committed Nov 1, 2023
1 parent c2bdaeb commit dde333d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/lib/geogram/mesh/mesh_surface_intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ namespace {
vec3 q3(M.vertices.point_ptr(M.facets.vertex(f2,2)));
return triangles_intersections(p1,p2,p3,q1,q2,q3,I);
}

static constexpr double SCALING = double(1ull << 20);
static constexpr double INV_SCALING = 1.0/SCALING;
}


Expand Down
4 changes: 1 addition & 3 deletions src/lib/geogram/mesh/mesh_surface_intersection.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

namespace GEO {

class IsectInfo;
struct IsectInfo;

/********************************************************************/

Expand Down Expand Up @@ -566,8 +566,6 @@ namespace GEO {
bool detect_intersecting_neighbors_;
bool use_radial_sort_;

static constexpr double SCALING = double(1ull << 20);
static constexpr double INV_SCALING = 1.0/SCALING;
PCK::SOSMode SOS_bkp_;
bool normalize_;
vec3 normalize_center_;
Expand Down

0 comments on commit dde333d

Please sign in to comment.