Skip to content

Commit e3c038d

Browse files
committed
simplifier: Mark simplifyWithUpdate as stable
While further tweaks to the implementation are possible in the future, no adjustments to the interface are planned and the implementation behavior should not change too drastically; thus it should be safe to stabilize the API with the upcoming release.
1 parent 2416997 commit e3c038d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ Currently, the following APIs are experimental:
721721
722722
- `meshopt_decodeFilterColor`
723723
- `meshopt_encodeFilterColor`
724-
- `meshopt_simplifyWithUpdate`
725724
- `meshopt_SimplifyPermissive` mode for `meshopt_simplify*` functions (and associated `meshopt_SimplifyVertex_*` flags)
726725
727726
## License

‎src/meshoptimizer.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ MESHOPTIMIZER_API size_t meshopt_simplify(unsigned int* destination, const unsig
478478
MESHOPTIMIZER_API size_t meshopt_simplifyWithAttributes(unsigned int* destination, const unsigned int* indices, size_t index_count, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, const float* vertex_attributes, size_t vertex_attributes_stride, const float* attribute_weights, size_t attribute_count, const unsigned char* vertex_lock, size_t target_index_count, float target_error, unsigned int options, float* result_error);
479479

480480
/**
481-
* Experimental: Mesh simplifier with position/attribute update
481+
* Mesh simplifier with position/attribute update
482482
* Reduces the number of triangles in the mesh, attempting to preserve mesh appearance as much as possible.
483483
* Similar to meshopt_simplifyWithAttributes, but destructively updates positions and attribute values for optimal appearance.
484484
* The algorithm tries to preserve mesh topology and can stop short of the target goal based on topology constraints or target error.
@@ -498,7 +498,7 @@ MESHOPTIMIZER_API size_t meshopt_simplifyWithAttributes(unsigned int* destinatio
498498
* options must be a bitmask composed of meshopt_SimplifyX options; 0 is a safe default
499499
* result_error can be NULL; when it's not NULL, it will contain the resulting (relative) error after simplification
500500
*/
501-
MESHOPTIMIZER_EXPERIMENTAL size_t meshopt_simplifyWithUpdate(unsigned int* indices, size_t index_count, float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float* vertex_attributes, size_t vertex_attributes_stride, const float* attribute_weights, size_t attribute_count, const unsigned char* vertex_lock, size_t target_index_count, float target_error, unsigned int options, float* result_error);
501+
MESHOPTIMIZER_API size_t meshopt_simplifyWithUpdate(unsigned int* indices, size_t index_count, float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, float* vertex_attributes, size_t vertex_attributes_stride, const float* attribute_weights, size_t attribute_count, const unsigned char* vertex_lock, size_t target_index_count, float target_error, unsigned int options, float* result_error);
502502

503503
/**
504504
* Mesh simplifier (sloppy)

0 commit comments

Comments
 (0)