Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish committed Feb 18, 2025
1 parent 2297b0a commit 26c4b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/edge_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct ShortEdge {
struct FlagEdge {
VecView<const Halfedge> halfedge;
VecView<const TriRef> triRef;
const size_t firstNewVert;
const int firstNewVert;

bool operator()(int edge) const {
const Halfedge& half = halfedge[edge];
Expand Down Expand Up @@ -301,7 +301,7 @@ void Manifold::Impl::CleanupTopology() {
* Rather than actually removing the edges, this step merely marks them for
* removal, by setting vertPos to NaN and halfedge to {-1, -1, -1, -1}.
*/
void Manifold::Impl::SimplifyTopology(size_t firstNewVert) {
void Manifold::Impl::SimplifyTopology(int firstNewVert) {
if (!halfedge_.size()) return;

CleanupTopology();
Expand Down
2 changes: 1 addition & 1 deletion src/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ struct Manifold::Impl {

// edge_op.cpp
void CleanupTopology();
void SimplifyTopology(size_t firstNewVert = 0);
void SimplifyTopology(int firstNewVert = 0);
void DedupeEdge(int edge);
bool CollapseEdge(int edge, std::vector<int>& edges);
void RecursiveEdgeSwap(int edge, int& tag, std::vector<int>& visited,
Expand Down

0 comments on commit 26c4b74

Please sign in to comment.