summaryrefslogtreecommitdiff
path: root/indra/newview/llmodelpreview.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-09 19:52:05 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-09 21:17:57 +0200
commit0a9ade4687dd53e9973ebfdf1ef948f04f5ac8c1 (patch)
tree7d8354da571f64267f19173f5510c06ce561d5bb /indra/newview/llmodelpreview.h
parent5501d02c41e7af86ad4b5c267d7c7e70007b25e8 (diff)
SL-16479 'sloppy' precision in automated mode.
Diffstat (limited to 'indra/newview/llmodelpreview.h')
-rw-r--r--indra/newview/llmodelpreview.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llmodelpreview.h b/indra/newview/llmodelpreview.h
index 9361acfc49..48d6d362eb 100644
--- a/indra/newview/llmodelpreview.h
+++ b/indra/newview/llmodelpreview.h
@@ -225,8 +225,12 @@ private:
// Count amount of original models, excluding sub-models
static U32 countRootModels(LLModelLoader::model_list models);
- // functions for meshoptimizer, return reached simplification ratio
+ // Merges faces into single mesh, simplifies using mesh optimizer,
+ // then splits back into faces.
+ // Returns reached simplification ratio. -1 in case of a failure.
F32 genMeshOptimizerPerModel(LLModel *base_model, LLModel *target_model, F32 indices_ratio, F32 error_threshold, bool sloppy);
+ // Simplifies specified face using mesh optimizer.
+ // Returns reached simplification ratio. -1 in case of a failure.
F32 genMeshOptimizerPerFace(LLModel *base_model, LLModel *target_model, U32 face_idx, F32 indices_ratio, F32 error_threshold, bool sloppy);
protected: