Skip to content

Commit

Permalink
feat: exposes Quality::ResetToDefaults() via C bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
NickUfer committed Sep 29, 2024
1 parent 4d7613b commit f546e40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/c/include/manifold/manifoldc.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ int manifold_box_is_finite(ManifoldBox *b);
void manifold_set_min_circular_angle(double degrees);
void manifold_set_min_circular_edge_length(double length);
void manifold_set_circular_segments(int number);
void manifold_reset_to_circular_defaults();

// Manifold Mesh Extraction

Expand Down
4 changes: 4 additions & 0 deletions bindings/c/manifoldc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ int manifold_get_circular_segments(double radius) {
return Quality::GetCircularSegments(radius);
}

void manifold_reset_to_circular_defaults() {
Quality::ResetToDefaults();
}

// memory size
size_t manifold_cross_section_size() { return sizeof(CrossSection); }
size_t manifold_cross_section_vec_size() {
Expand Down

0 comments on commit f546e40

Please sign in to comment.