How can I rename isosurfaces and planes to round off names at selected number of significant digits?

MarcoC
MarcoC Member, Employee Posts: 4
First Comment

Sometimes when creating groups of iso-surfaces or planes of a constant x, y, z location sometimes the name of the object can contain unexpected digits in it. For example, 3 x-constant isosurfaces with spacing 0.1 starting at 1m could produce names such as constant-x=1, constant-x=1.10000001, constant-x=1.2. How can this be fixed efficiently without having to look into all object names?

Tagged:

Best Answer

  • MarcoC
    MarcoC Member, Employee Posts: 4
    First Comment
    edited July 28 Answer ✓

    This script can be used to mitigate the limitation. It scans through iso-surfaces and/or planes (the user can choose either one) and updates the names rounding them using the significant digits selected. The script includes in it the directions on how to use it.

    After creating the objects this script can be run to fix the names. Using a number of significant digits that includes one more decimal point than the spacing used to create planes/iso-surfaces should be sufficient.