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
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 Summary
Modifier and TypeMethodDescriptionstatic double[]
getCenter
(MiGeometryI geometry, MiCell cell) Gets the center of the specified cell.
-
Method Details
-
getCenter
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
-