Skip to content

Commit b5fde16

Browse files
committed
simplifier: Mark attribute and point simplifiers as stable
While both functions may see further behavior changes, they should be consistent with the existing interface in terms of meaning of values, and no interface changes are planned for these functions. New functionality can be exposed either via the options bitmask or via new functions.
1 parent 7b86395 commit b5fde16

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/meshoptimizer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ enum
399399
MESHOPTIMIZER_API size_t meshopt_simplify(unsigned int* destination, const unsigned int* indices, size_t index_count, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, unsigned int options, float* result_error);
400400

401401
/**
402-
* Experimental: Mesh simplifier with attribute metric
402+
* Mesh simplifier with attribute metric
403403
* The algorithm enhances meshopt_simplify by incorporating attribute values into the error metric used to prioritize simplification order; see meshopt_simplify documentation for details.
404404
* Note that the number of attributes affects memory requirements and running time; this algorithm requires ~1.5x more memory and time compared to meshopt_simplify when using 4 scalar attributes.
405405
*
@@ -408,7 +408,7 @@ MESHOPTIMIZER_API size_t meshopt_simplify(unsigned int* destination, const unsig
408408
* attribute_count must be <= 32
409409
* vertex_lock can be NULL; when it's not NULL, it should have a value for each vertex; 1 denotes vertices that can't be moved
410410
*/
411-
MESHOPTIMIZER_EXPERIMENTAL 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);
411+
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);
412412

413413
/**
414414
* Experimental: Mesh simplifier (sloppy)
@@ -426,7 +426,7 @@ MESHOPTIMIZER_EXPERIMENTAL size_t meshopt_simplifyWithAttributes(unsigned int* d
426426
MESHOPTIMIZER_EXPERIMENTAL size_t meshopt_simplifySloppy(unsigned int* destination, const unsigned int* indices, size_t index_count, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, size_t target_index_count, float target_error, float* result_error);
427427

428428
/**
429-
* Experimental: Point cloud simplifier
429+
* Point cloud simplifier
430430
* Reduces the number of points in the cloud to reach the given target
431431
* Returns the number of points after simplification, with destination containing new index data
432432
* The resulting index buffer references vertices from the original vertex buffer.
@@ -437,7 +437,7 @@ MESHOPTIMIZER_EXPERIMENTAL size_t meshopt_simplifySloppy(unsigned int* destinati
437437
* vertex_colors should can be NULL; when it's not NULL, it should have float3 color in the first 12 bytes of each vertex
438438
* color_weight determines relative priority of color wrt position; 1.0 is a safe default
439439
*/
440-
MESHOPTIMIZER_EXPERIMENTAL size_t meshopt_simplifyPoints(unsigned int* destination, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, const float* vertex_colors, size_t vertex_colors_stride, float color_weight, size_t target_vertex_count);
440+
MESHOPTIMIZER_API size_t meshopt_simplifyPoints(unsigned int* destination, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride, const float* vertex_colors, size_t vertex_colors_stride, float color_weight, size_t target_vertex_count);
441441

442442
/**
443443
* Returns the error scaling factor used by the simplifier to convert between absolute and relative extents

0 commit comments

Comments
 (0)