From 7e2a6f7d145aab9097a028f8dec4be004a093bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Wed, 17 Dec 2014 13:02:26 +0000 Subject: [PATCH] - adding types paramater for decimater scripting closes #2357 git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20034 383ad7c9-94d9-4d36-a494-682f7c89f535 --- VsiMetadata/decimater.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/VsiMetadata/decimater.xml b/VsiMetadata/decimater.xml index 64932d7..29d28b8 100644 --- a/VsiMetadata/decimater.xml +++ b/VsiMetadata/decimater.xml @@ -9,6 +9,25 @@ ID of an Object ID of an Object + + Decimater Type + Select the Type of the Decimater, 0 (incremental), 1(MC), 2(Mixed) + 0 + 2 + 0 + + + Number of samples for the MC Decimater. + Specifies the number of samples for the MC decimater. This parameter is used by the MC and Mixed Decimater. + 8 + + + Percentage of the workload. (Only Mixed) + Percentage of the workload for the Incremental Decimater. Only used by the Mixed Decimater + 0 + 100 + 20 + Decimation Order Decimation Order: 0 (by Distance), 1 (by Normal Deviation), and 2 (by Edge Length) @@ -67,6 +86,12 @@ decimater_constraints = new Object (); if ([is_set="decimation_order"]) decimater_constraints["decimation_order"] = [input="decimation_order"]; + if ([is_set="decimater_type"]) + decimater_constraints["decimater_type"] = [input="decimater_type"]; + if ([is_set="random_samples"]) + decimater_constraints["random_samples"] = [input="random_samples"]; + if ([is_set="incremental_percentage"]) + decimater_constraints["incremental_percentage"] = [input="incremental_percentage"]; if ([is_set="vertices"]) decimater_constraints["vertices"] = [input="vertices"]; if ([is_set="triangles"]) -- GitLab