Expose Solid 0.5.1 state APIs

This commit is contained in:
Codex
2026-07-03 18:26:41 +08:00
parent 7954fc0627
commit 348f244693
15 changed files with 871 additions and 35 deletions
+17
View File
@@ -31,6 +31,9 @@ extern "C" {
#define SPHLITE_STATUS_RESERVED 3
#define SPHLITE_SOLID_SUMMARY_VALUE_COUNT 16
#define SPHLITE_SOLID_PARTICLE_VALUE_COUNT 22
#define SPHLITE_SOLID_DIAGNOSTIC_VALUE_COUNT 3
#define SPHLITE_SOLID_REFERENCE_VALUE_COUNT 1
SPHLITE_API int sphlite_initialize(void);
SPHLITE_API int sphlite_finalize(void);
@@ -103,6 +106,20 @@ SPHLITE_API int sphlite_get_solid_summary(int *active_count,
int *failed_count,
double *values,
int value_capacity);
SPHLITE_API int sphlite_get_solid_particle_state(int max_particles,
double *values,
int value_capacity,
int *failure_status,
int *reference_neighbor_count,
int *reference_degenerate,
int *correction_status,
int *count);
SPHLITE_API int sphlite_get_solid_diagnostics(double *values,
int value_capacity);
SPHLITE_API int sphlite_get_solid_reference_quality(int *reference_neighbor_min,
int *correction_status,
double *values,
int value_capacity);
#ifdef __cplusplus
}