Class MxCellExtract

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double[] getCenter​(MiGeometryI geometry, MiCell cell)
      Gets the center of the specified cell.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCenter

        public static double[] getCenter​(MiGeometryI geometry,
                                         MiCell cell)
        Gets the center of the specified cell.

        This static method helps to implement the method MiCell.getCenter(MiGeometryI) for a cell.
        It computes the average of the coordinates of each cell's node.

        Parameters:
        geometry - the geometry of the mesh. It is used to retrieve the node coordinates
        cell - the input cell.
        Returns:
        the center coordinates {x,y,z} of this cell