Jump to content
Sign in to follow this  

Script to Compare Geometry Files

Recommended Posts

Hello all,


I'm trying to write a code to compare the geometries of two different files.

I'm able to put both files together, where the reference has its components with a modified name like COMPNAME_REF (added "_REF" to the name).

This way I'm able to match the names of the components, which should be the same leaving apart the modification applied in the name.

From there my intention was to compare the matched geometries' position, orientation and volume/surface area to check for alterations.

To do so, I'm using the following functions: hm_getcentroid, hm_getvolumeofsolids


However, some components present errors when trying to get their centroid or volume, giving me messages like: 


hm_getcentroid: bad geometry found.


hm_getvolumeofsolid:  calculation failure.


But the solids do not have any visible mistake.

What could be causing this?




Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...