Custom Mapped Parameter

You are currently viewing the documentation for the latest version (2.1.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

You can select one or more parameters of the Steps as variables, and map the variables with JavaScript codes. The following instructions are based on the Procedure 3D Matching.

  1. Right-click the Procedure and select Edit Procedure Parameters in the context menu.

    custom mapped parameter custom mapped parameter1
  2. Click + to open the Add a New Parameter window and select the type Custom Mapping Parameter. Click OK to confirm.

    custom mapped parameter custom mapped parameter2
  3. A new matching output number (output_num) parameter will be used as the example in this section. Enter the parameter name in the Add a New Parameter window and click OK.

    custom mapped parameter custom mapped parameter3
  4. Click +, check the corresponding parameter in the Select Step Properties window as shown in the figure below, and then click OK after checking.

    custom mapped parameter custom mapped parameter4

    The added parameters are shown in the figure below:

    custom mapped parameter custom mapped parameter5
  5. Assuming that the maximum number of detected poses in each point cloud of 3D Coarse Matching is set to be three times as that of 3D Fine Matching, and the above mapping relationship can be achieved by modifying the JavaScript script.

outputSize = 3* output_num + 0
candidateTopNum = 1 * output_num + 0

After modifying the value of output_num, you can click Test to verify whether the mapping relationship has taken effect, as shown in the figure below.

custom mapped parameter custom mapped parameter6

Click Apply to apply the settings. Now you can see a new customized output_num parameter in Step Parameter panel.

custom mapped parameter custom mapped parameter7

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.