Custom Mapped Parameter

You are currently viewing the documentation for version 2.0.0. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

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.