Skip to content

Commit

Permalink
Exposed feature to every level, local tests with non watertight mesh …
Browse files Browse the repository at this point in the history
…seems to indicated that it works
  • Loading branch information
Kramer84 committed Oct 20, 2024
1 parent 4333b70 commit d351a40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyfqmr/Simplify.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cdef extern from "Simplify.h" namespace "Simplify" :
void simplify_mesh( int target_count, int update_rate, double aggressiveness,
void (*log)(char*, int), int max_iterations,double alpha, int K,
bool lossless, double threshold_lossless, bool preserve_border)
void simplify_mesh_lossless(void (*log)(char*, int), double epsilon, int max_iterations)
void simplify_mesh_lossless(void (*log)(char*, int), double epsilon, int max_iterations, bool preserve_border)
void setMeshFromExt(vector[vector[double]] vertices, vector[vector[int]] faces)
vector[vector[int]] getFaces()
vector[vector[double]] getVertices()
Expand Down Expand Up @@ -171,7 +171,7 @@ cdef class Simplify :
round(t_end-t_start,4), N_start, N_end)
)

cpdef void simplify_mesh_lossless(self, bool verbose = True, double epsilon=1e-3, int max_iterations=9999):
cpdef void simplify_mesh_lossless(self, bool verbose = True, double epsilon=1e-3, int max_iterations=9999, bool preserve_border = False):
"""Simplify mesh using lossless method
Parameters
Expand All @@ -191,7 +191,7 @@ cdef class Simplify :

N_start = self.faces_mv.shape[0]
t_start = _time()
simplify_mesh_lossless(log, epsilon, max_iterations)
simplify_mesh_lossless(log, epsilon, max_iterations, preserve_border)
t_end = _time()
N_end = getFaces().size()

Expand Down

0 comments on commit d351a40

Please sign in to comment.