I noticed a discrepancy between some results from the Python API and the results given by the cubit command.
As you can see in the following example, when I run the cubit command “list vol 1 geom”, I have a different volume and centroid than the volume and centroid given by the API.
Hi @rayan,
could you share the geometry or better the journal file so that we can reproduce this and take a look?
Did you use Cubit 2024.3 or a different version?
For the bounding box cubit.get_center_point("volume",2) and cubit.volume(2).centroid() matches.
the difference in the volumes seems to be some sort of conversion error. C++, python and also the qt gui uses different data types, but they should output the same value.
Thanks for reporting this, i will inform the dev’s.