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
MiCellinterface methods for a cell. This class is provided to make it easier to create a class that implements theMiCellinterface.
-
-
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.
-
-
-
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 coordinatescell- the input cell.- Returns:
- the center coordinates {x,y,z} of this cell
-
-