Package com.comsol.model
Interface GeomMeasureBase
-
- All Superinterfaces:
ModelEntity
,PrimitiveModelEntity
,SelectionContainer
- All Known Subinterfaces:
GeomMeasure
,GeomMeasureFinal
public interface GeomMeasureBase extends ModelEntity, SelectionContainer
Base class for geometry measuring.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getArea()
Gets area of the selected faces or 2D domains.double
getBoundaryArea()
Gets surrounding boundary area of the selected 3D domains.double
getBoundaryVolume()
Gets area or length of boundary corresponding to the selected entities.double[]
getBoundingBox()
Returns bounding box of selection.double
getLength()
Gets length of the selected edges or 1D domains.int[]
getNEntities()
Gets number of entities of each dimension.int
getNFiniteVoids()
Gets number of finite void regions.double
getPerimeter()
Gets perimeter of the selected 2D domains or 3D boundaries.double
getVolume()
Gets volume, area, or length of the selected entities.double[]
getVtxCoord()
Gets average coordinates for selected vertices.double[]
getVtxDistance()
Gets distance between two selected vertices.AbstractSelection
selection()
Returns selection object for the measurement.-
Methods inherited from interface com.comsol.model.ModelEntity
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
-
Methods inherited from interface com.comsol.model.PrimitiveModelEntity
getContainer, getDisplayString, resolveModelPath
-
-
-
-
Method Detail
-
getArea
double getArea()
Gets area of the selected faces or 2D domains.- Returns:
- Area.
-
getBoundaryArea
double getBoundaryArea()
Gets surrounding boundary area of the selected 3D domains.- Returns:
- Area.
-
getBoundaryVolume
double getBoundaryVolume()
Gets area or length of boundary corresponding to the selected entities.- Returns:
- Area or length.
-
getBoundingBox
double[] getBoundingBox()
Returns bounding box of selection.- Returns:
- Bounding box coordinates, ([xmin, xmax, ymin, ymax, ...] depending on dimension).
-
getLength
double getLength()
Gets length of the selected edges or 1D domains.- Returns:
- Length.
-
getNEntities
int[] getNEntities()
Gets number of entities of each dimension.- Returns:
- Vector with number of entities of each dimension.
-
getNFiniteVoids
int getNFiniteVoids()
Gets number of finite void regions.- Returns:
- The number of finite void regions.
-
getPerimeter
double getPerimeter()
Gets perimeter of the selected 2D domains or 3D boundaries.- Returns:
- Length.
-
getVolume
double getVolume()
Gets volume, area, or length of the selected entities.- Returns:
- Volume, area, or length.
-
getVtxCoord
double[] getVtxCoord()
Gets average coordinates for selected vertices.- Returns:
- Average vertex coordinates.
-
getVtxDistance
double[] getVtxDistance()
Gets distance between two selected vertices.- Returns:
- Vector of length sdim+1. The first component is the Euclidean distance. The remaining components are the distances in each coordinate direction.
-
selection
AbstractSelection selection()
Returns selection object for the measurement.- Returns:
- Selection object.
-
-