If you are running the Solid Analysis script in your dataflows, and are getting the below error, this article explains how to fix this.
“'PrecisionMining.Common.Design.Data.TriangleMesh.GetProperties(bool, bool)' is obsolete: 'Triangle mesh validation is not evaluated immediately anymore. This method will be removed in a future version”
This error is due to a change in the backend with the way the GetProperties() works as it no longer accepts a Boolean. To fix this, Open the dataflows and navigate to the Solid Analysis dataflow and the Processing Elements/Process/Volume Calc script. On Line 12 - the 'false' needs to be removed from the GetProperties(false) function, so it just reads:
GetProperties();

The error should no longer present itself when running the dataflow after this change.
Note:
The change in this function may cause the dataflow to run significantly slower if the 'TriangleCrossing' booloean property is being accessed. This function is responsible for running validation on triangulations/solids which is extremely taxing. Previously if GetProperties(False) was set, the trianglecrossing validation would not be performed. Due to the changes in the back end with the GetProperties() function, your code may now run the triangelcrossing validation - hence a significantly longer runtime.
You are able to comment the below section of the code out if validation wasn't something you wanted to run, however we recommend you check validation of all solids before this step as running the dataflow with the trianglecrossing disabled can return valid volumes for invalid solids.

Want to learn more?
Online Help Manuals - Click here for the latest version
Learning Management System - Click here to login or here to request access
Comments
0 comments
Please sign in to leave a comment.