Class MxCellExtract

java.lang.Object
com.openinventor.meshvizxlm.extractors.cell.MxGenericCellExtract
com.openinventor.meshvizxlm.extractors.cell.MxCellExtract
Direct Known Subclasses:
MxHexahedronCellExtract, MxPyramidCellExtract, MxQuadrangleCellExtract, MxTetrahedronCellExtract, MxWedgeCellExtract

public abstract class MxCellExtract extends MxGenericCellExtract
Utility class for cells.

Utility class that provides a static implementation of MiCell interface methods for a cell. This class is provided to make it easier to create a class that implements the MiCell interface.

  • Method Details

    • 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