[An...] Posted August 31 Share Posted August 31 (edited) Is there a function or a variable in the scripting that can be used to determine whether the currently open project contains a so-called preliminary actual mesh? Thank you in advance for any help! Edited August 31 Link to comment https://qualityforum.zeiss.com/topic/27322-query-for-preliminary-actual-mesh-in-project/ Share on other sites More sharing options...
[An...] Posted August 31 Author Share Posted August 31 Addendum: Is there a way to query the post-processing of an actual mesh with which its polygonization has been carried out? So adaptive, low resolution, less detail, standard, more detail, none? Link to comment https://qualityforum.zeiss.com/topic/27322-query-for-preliminary-actual-mesh-in-project/#findComment-154994 Share on other sites More sharing options...
[Ma...] Posted August 31 Share Posted August 31 I am looking for that too. I saw some info inside mesh, but it's enviroment dependant - in other words it's translated. There was info about used memory and stuff 1 Link to comment https://qualityforum.zeiss.com/topic/27322-query-for-preliminary-actual-mesh-in-project/#findComment-154996 Share on other sites More sharing options...
[TI...] Posted August 31 Share Posted August 31 You can try to compute if there is a mesh in the program: import gom mesh_in_program = False try: print(gom.app.project.parts['Part'].actual.computation_status) mesh_in_program = True mesh_points = gom.app.project.parts['Part'].actual.num_points print(f'Mesh found in program: {mesh_points} points') except: print('No mesh in program') To get the details of the polygonization quality, you would need to record that to a json file or txt file for use later. Link to comment https://qualityforum.zeiss.com/topic/27322-query-for-preliminary-actual-mesh-in-project/#findComment-155008 Share on other sites More sharing options...
[Ma...] Posted September 1 Share Posted September 1 Hi, I got this answer: part = gom.app.project.parts['Part'] is_preliminary = part.part_contains_preliminary_data And for project-wide information: is_preliminary = gom.app.project.project_contains_preliminary_data 1 Link to comment https://qualityforum.zeiss.com/topic/27322-query-for-preliminary-actual-mesh-in-project/#findComment-155036 Share on other sites More sharing options...
[Ma...] Posted September 1 Share Posted September 1 Please sign in to view this quote. Thanks - saviour - that works 1 Link to comment https://qualityforum.zeiss.com/topic/27322-query-for-preliminary-actual-mesh-in-project/#findComment-155040 Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in