Interface GeomInfo

  • All Superinterfaces:
    ModelEntity, PrimitiveModelEntity
    All Known Subinterfaces:
    GeomContainer, GeomInfoBase, GeomObject, GeomSequence, GeomSubsequence, MeshNative

    public interface GeomInfo
    extends ModelEntity
    Interface for getting information about a geometric model (a geometry or a mesh).
    Usage:
    • In the GeomSequence interface, the GeomInfo methods give information about the finalized geometry of the geometry sequence. However, for a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods instead return information about that geometric model. The behavior in this case might change in a future version.
    • GeomSequence.obj gives information about a geometry object resulting from a geometry feature.
    .
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void check()
      Throws an exception if this geometry/mesh is invalid.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      double[] edgeCurvature​(int edge, double[] s)
      Evaluates edge curvature at the specified parameters.
      double[][] edgeDDDX​(int edge, double[] s)
      Evaluates the parameters to third order derivative values of an edge.
      double[][] edgeDDX​(int edge, double[] s)
      Evaluates the parameters to second order derivative values of an edge.
      double[][] edgeDX​(int edge, double[] s)
      Evaluates the parameters to first order derivative values of an edge.
      double[] edgeMaxFaceAngle​(int[] edge, int[] face1, int[] face2)
      Compute the "maximum" along a 3D edge of the angle (in radians) between the normal vectors of two faces that are adjacent to the edge.
      double[][] edgeNormal​(int edge, double[] s)
      Evaluates the parameters to normal vector values of an edge in 2D.
      double[] edgeParamRange​(int edge)
      Returns the parameter range for evaluation on the edge

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      double[] edgeTorsion​(int edge, double[] s)
      Evaluates the parameters to torsion values of an edge in 3D.
      double[][] edgeX​(int edge, double[] s)
      Evaluates the parameters to coordinate values of an edge.
      boolean exists()
      Check if the geometry object exists.
      double[][][][] faceDDX​(int face, double[][] param)
      Evaluates the parameters to second order derivative values of a face.
      double[][][] faceDX​(int face, double[][] param)
      Evaluates the parameters to first order derivative values of a face.
      double[][][] faceFF1​(int face, double[][] param)
      Evaluates the parameters to the first fundamental form values of a face.
      double[][][] faceFF2​(int face, double[][] param)
      Evaluates the parameters to the second fundamental form values of a face.
      double[] faceGaussCurvature​(int face, double[][] param)
      Evaluates the parameters to Gauss curvature values of a face.
      double[] faceMeanCurvature​(int face, double[][] param)
      Evaluates the parameters to mean curvature values of a face.
      double[][] faceNormal​(int face, double[][] param)
      Evaluates the parameters to normal vector values of a face.
      double[] faceParamRange​(int face)
      Returns two parameter ranges for evaluation on the face.
      double[][] faceX​(int face, double[][] param)
      Evaluates the parameters to coordinate values on a face.
      int[][] getAdj​(int fromDim, int toDim)
      Gets adjacency between entities in dimensions fromDim and toDim.
      int[] getAdj​(int fromDim, int toDim, int fromIdx)
      Gets adjacent entities in dimension toDim to entity fromIdx in dimension fromDim.
      int[][] getAdjExt​(int fromDim, int toDim)
      Gets extended adjacency between entities in dimensions fromDim and toDim.
      int[] getAdjExt​(int fromDim, int toDim, int fromIdx)
      Gets adjacent entities in dimension toDim to entity fromIdx in dimension fromDim.
      int[][] getAdjExtOrient​(int fromDim, int toDim)
      Get relative orientation between adjacent entities in dimensions fromDim to toDim.
      int[] getAdjExtOrient​(int fromDim, int toDim, int fromIdx)
      Get relative orientation between entity fromIdx in dimension fromDim and its adjacent entities in dimension toDim.
      int[][] getAdjOrient​(int fromDim, int toDim)
      Get relative orientation between adjacent entities in dimensions fromDim to toDim.
      int[] getAdjOrient​(int fromDim, int toDim, int fromIdx)
      Get relative orientation between entity fromIdx in dimension fromDim and its adjacent entities in dimension toDim.
      int[][] getAdjSparse​(int arg0, int arg1)
      Deprecated.
      Use getAdj(int, int) instead.
      double[] getBoundingBox()
      Returns bounding box.
      double[][] getEdge()
      Gets a low-level matrix description of edges in a real 2D or 3D geometry object represented using the COMSOL kernel.
      double[][] getFace()
      Gets a low-level matrix description of faces in a real 3D geometry object represented using the COMSOL kernel.
      int getNBoundaries()
      Gets number of boundaries.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int getNDomains()
      Gets number of domains.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int getNEdges()
      Gets number of edges.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int[] getNEntities()
      Gets number of entities of each dimension.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int[] getNEntitiesMesh()
      Get number of entities in mesh control geometry.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int getNFaces()
      Gets number of faces.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int getNFiniteVoids()
      Gets number of finite void regions.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int getNVertices()
      Gets number of vertices.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      double[][] getPEdge()
      Gets a low-level matrix description of parameter edges in a real 3D geometry object represented using the COMSOL kernel.
      double[][] getPVertex()
      Gets a low-level matrix description of parameter vertices in a real 3D geometry object represented using the COMSOL kernel.
      double[] getSD()
      Returns the domain index for each vertex.
      int getSDim()
      Returns the space dimension.
      int[][] getStartEnd()
      Returns a 2 x (number of edges) matrix with start and end vertices for edges.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      java.lang.String getType()
      Returns the object type: solid, surface, curve, point, mixed, or empty.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int[][] getUpDown()
      Returns the up and down domain number for all boundaries in the first and second row of the returned matrix.
      int[][] getUpDownExt()
      Returns the up and down domain number for all boundaries in the first and second row of the returned matrix, using the extended domain numbering.
      double[][] getVertex()
      Gets a low-level matrix description of vertices in a real geometry object represented using the COMSOL kernel.
      double[][] getVertexCoord()
      Get vertex coordinates as a sdim x (number of vertices) matrix.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      int[] getVertexDomain()
      Returns the domain index for each vertex.
      double[][] getVtx()
      Gets vertex coordinates and domain numbers.
      boolean hasCadRep()
      Checks if this is a 3D geometry represented using the CAD kernel.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      boolean isAssembly()
      Checks if this is a geometry of assembly type (originating from the Form Assembly feature), including virtual geometries based on a real assembly geometry.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      boolean isMesh()
      Returns true if this geometric model is represented by a mesh (rather than a geometry).

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      boolean isVirtual()
      Returns true if this is a virtual geometry.

      Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence.
      boolean voidsAreLabeled()
      Returns true if all finite void regions are labeled with negative domain indices in the serialization (mphtxt/mphbin file).
    • Method Detail

      • check

        void check()
        Throws an exception if this geometry/mesh is invalid.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
      • edgeCurvature

        double[] edgeCurvature​(int edge,
                               double[] s)
        Evaluates edge curvature at the specified parameters. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Edge index.
        s - Vector of parameter values.
        Returns:
        Vector of curvature values.
      • edgeDDDX

        double[][] edgeDDDX​(int edge,
                            double[] s)
        Evaluates the parameters to third order derivative values of an edge. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Edge index.
        s - Vector of parameter values.
        Returns:
        Matrix V of third order derivative values. The value at s[i] is in V[i].
      • edgeDDX

        double[][] edgeDDX​(int edge,
                           double[] s)
        Evaluates the parameters to second order derivative values of an edge. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Edge index.
        s - Vector of parameter values.
        Returns:
        Matrix V of second order derivative values. The value at s[i] is in V[i].
      • edgeDX

        double[][] edgeDX​(int edge,
                          double[] s)
        Evaluates the parameters to first order derivative values of an edge. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Edge index.
        s - Vector of parameter values.
        Returns:
        Matrix V of first order derivative values. The value at s[i] is in V[i].
      • edgeMaxFaceAngle

        double[] edgeMaxFaceAngle​(int[] edge,
                                  int[] face1,
                                  int[] face2)
        Compute the "maximum" along a 3D edge of the angle (in radians) between the normal vectors of two faces that are adjacent to the edge. The "maximum" is defined as the value closest to pi/2. The method is vectorized so that the Nth entry in the returned array is the maximum along edge[N] of the angle between faces face1[N] and face2[N]. The edge and face numbers are one-based.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        edge - Vector of edge indices.
        face1 - Vector of first face indices.
        face2 - Vector of second face indices.
        Returns:
        Vector of maximum angles.
      • edgeNormal

        double[][] edgeNormal​(int edge,
                              double[] s)
        Evaluates the parameters to normal vector values of an edge in 2D. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Vector of parameter values.
        s - Vector of parameter values.
        Returns:
        Matrix V of normal vector values. The value at s[i] is in V[i].
      • edgeParamRange

        double[] edgeParamRange​(int edge)
        Returns the parameter range for evaluation on the edge

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        edge - Edge index.
        Returns:
        Vector [startParam, endParam] containing the parameters for the start and end vertices of the edge.
      • edgeTorsion

        double[] edgeTorsion​(int edge,
                             double[] s)
        Evaluates the parameters to torsion values of an edge in 3D. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Edge index.
        s - Vector of parameter values.
        Returns:
        Vector of torsion values.
      • edgeX

        double[][] edgeX​(int edge,
                         double[] s)
        Evaluates the parameters to coordinate values of an edge. Not supported for a mesh (only for a geometry).
        Parameters:
        edge - Edge index.
        s - Vector of parameter values.
        Returns:
        Matrix V of coordinate values. The value at s[i] is in V[i].
      • exists

        boolean exists()
        Check if the geometry object exists. Returns false if this a geometry object that has been consumed by a geometry feature further down in the geometry sequence (at the previous build of the sequence).
        Returns:
        true if object exists.
      • faceDDX

        double[][][][] faceDDX​(int face,
                               double[][] param)
        Evaluates the parameters to second order derivative values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Rank 4 array V of second order derivative values. The matrix V[i][j] contains the derivatives at param[i] of the jth space coordinate.
      • faceDX

        double[][][] faceDX​(int face,
                            double[][] param)
        Evaluates the parameters to first order derivative values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Rank 3 array V of first order derivative values. The vector V[i][j] contains the derivatives at param[i] of the jth space coordinate.
      • faceFF1

        double[][][] faceFF1​(int face,
                             double[][] param)
        Evaluates the parameters to the first fundamental form values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Rank 3 array V of first fundamental form values. The matrix V[i] is the first fundamental form at param[i].
      • faceFF2

        double[][][] faceFF2​(int face,
                             double[][] param)
        Evaluates the parameters to the second fundamental form values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Rank 3 array V of second fundamental form values. The matrix V[i] is the second fundamental form at param[i].
      • faceGaussCurvature

        double[] faceGaussCurvature​(int face,
                                    double[][] param)
        Evaluates the parameters to Gauss curvature values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Vector of Gauss curvature values.
      • faceMeanCurvature

        double[] faceMeanCurvature​(int face,
                                   double[][] param)
        Evaluates the parameters to mean curvature values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Vector of mean curvature values.
      • faceNormal

        double[][] faceNormal​(int face,
                              double[][] param)
        Evaluates the parameters to normal vector values of a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Matrix V of normal vector values. V[i] is the normal vector at param[i].
      • faceParamRange

        double[] faceParamRange​(int face)
        Returns two parameter ranges for evaluation on the face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        Returns:
        Vector [s1Min, s1Max, s2Min, s2Max] where [s1Min, s1Max] is the interval for the first parameter and [s2Min, s2Max] is the interval for the second parameter.
      • faceX

        double[][] faceX​(int face,
                         double[][] param)
        Evaluates the parameters to coordinate values on a face. Not supported for a mesh (only for a geometry).
        Parameters:
        face - Face index.
        param - n-by-2 matrix of parameter values.
        Returns:
        Matrix V of coordinate values. V[i] is the coordinate vector at param[i].
      • getAdj

        int[][] getAdj​(int fromDim,
                       int toDim)
        Gets adjacency between entities in dimensions fromDim and toDim. A row A[fromIdx] in the returned matrix A contains the 1-based entities in dimension toDim that are adjacent to entity fromIdx in dimension fromDim. fromIdx is a 1-based entity number. If fromDim==sdim, fromIdx=0 means the void regions.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        Returns:
        Adjacency matrix.
      • getAdj

        int[] getAdj​(int fromDim,
                     int toDim,
                     int fromIdx)
        Gets adjacent entities in dimension toDim to entity fromIdx in dimension fromDim. fromIdx is a 1-based entity number, and the returned entity numbers are also 1-based.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        fromIdx - From entity.
        Returns:
        Adjacency vector.
      • getAdjExt

        int[][] getAdjExt​(int fromDim,
                          int toDim)
        Gets extended adjacency between entities in dimensions fromDim and toDim. A row A[fromIdx+offset] in the returned matrix A contains the 1-based entities in dimension toDim that are adjacent to entity fromIdx in dimension fromDim. If toDim=getSDim(), the entity numbers can also by negative or 0, representing finite/infinite void regions. fromIdx is a 1-based entity number. If fromDim=getSDim(), fromIdx can also be negative or 0, representing finite/infinite void regions. If fromDim=getSDim(), offset is the number of finite void regions, otherwise offset=0. Note: If voidsAreLabeled() is false, then there might be finite void regions that are denoted with 0 instead of a negative number.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        Returns:
        Adjacency matrix.
      • getAdjExt

        int[] getAdjExt​(int fromDim,
                        int toDim,
                        int fromIdx)
        Gets adjacent entities in dimension toDim to entity fromIdx in dimension fromDim. The returned array contains the 1-based entities in dimension toDim that are adjacent to entity fromIdx in dimension fromDim. If toDim=getSDim(), the entity numbers can also by negative or 0, representing finite/infinite void regions. fromIdx is a 1-based entity number. If fromDim=getSDim(), fromIdx can also be negative or 0, representing finite/infinite void regions. Note: If voidsAreLabeled() is false, then there might be finite void regions that are denoted with 0 instead of a negative number.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        fromIdx - From entity.
        Returns:
        Adjacency vector.
      • getAdjExtOrient

        int[][] getAdjExtOrient​(int fromDim,
                                int toDim)
        Get relative orientation between adjacent entities in dimensions fromDim to toDim. The returned array has the same size as getAdjExt(fromDim,toDim). A value 1 means that the entities have the same orientation, and -1 means that they have the opposite orientation. A value 2 means that the relative orientation is undefined, since the lower-dimensional entity is interior to the higher-dimensional entity. The return value is undefined if abs(fromDim-toDim)!=1.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        Returns:
        Orientation matrix.
      • getAdjExtOrient

        int[] getAdjExtOrient​(int fromDim,
                              int toDim,
                              int fromIdx)
        Get relative orientation between entity fromIdx in dimension fromDim and its adjacent entities in dimension toDim. The returned array has the same length as getAdjExt(fromDim,toDim,fromIdx). fromIdx is a 1-based entity number. If fromDim=getSDim(), fromIdx can also be negative or 0, representing finite/infinite void regions. A value 1 means that the entities have the same orientation, and -1 means that they have the opposite orientation. A value 2 means that the relative orientation is undefined, since the lower-dimensional entity is interior to the higher-dimensional entity.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        fromIdx - From entity.
        Returns:
        Orientation vector.
      • getAdjOrient

        int[][] getAdjOrient​(int fromDim,
                             int toDim)
        Get relative orientation between adjacent entities in dimensions fromDim to toDim. The returned array has the same size as getAdj(fromDim,toDim). A value 1 means that the entities have the same orientation, and -1 means that they have the opposite orientation. A value 2 means that the relative orientation is undefined, since the lower-dimensional entity is interior to the higher-dimensional entity.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        Returns:
        Adjacency matrix.
      • getAdjOrient

        int[] getAdjOrient​(int fromDim,
                           int toDim,
                           int fromIdx)
        Get relative orientation between entity fromIdx in dimension fromDim and its adjacent entities in dimension toDim. The returned array has the same length as getAdj(fromDim,toDim,fromIdx). fromIdx is a 1-based entity number. A value 1 means that the entities have the same orientation, and -1 means that they have the opposite orientation. A value 2 means that the relative orientation is undefined, since the lower-dimensional entity is interior to the higher-dimensional entity.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Parameters:
        fromDim - From dimension.
        toDim - To dimension.
        fromIdx - From entity.
        Returns:
        Adjacency vector.
      • getAdjSparse

        @Deprecated
        int[][] getAdjSparse​(int arg0,
                             int arg1)
        Deprecated.
        Use getAdj(int, int) instead.
      • getBoundingBox

        double[] getBoundingBox()
        Returns bounding box.
        Returns:
        Bounding box coordinates [xmin, xmax, ymin, ymax, ...].
      • getEdge

        double[][] getEdge()
        Gets a low-level matrix description of edges in a real 2D or 3D geometry object represented using the COMSOL kernel. Not supported for a mesh, virtual geometry, assembly geometry, or CAD geometry.
        Returns:
        Edge matrix.
      • getFace

        double[][] getFace()
        Gets a low-level matrix description of faces in a real 3D geometry object represented using the COMSOL kernel. Not supported for a mesh, virtual geometry, assembly geometry, or CAD geometry.
        Returns:
        Face matrix.
      • getNBoundaries

        int getNBoundaries()
        Gets number of boundaries.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Number of boundaries.
      • getNDomains

        int getNDomains()
        Gets number of domains.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Number of domains.
      • getNEdges

        int getNEdges()
        Gets number of edges.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Number of edges.
      • getNEntities

        int[] getNEntities()
        Gets number of entities of each dimension.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Vector N where N[d] is the number of entities of dimension d.
      • getNEntitiesMesh

        int[] getNEntitiesMesh()
        Get number of entities in mesh control geometry.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Vector N where N[d] is the number of entities of dimension d.
      • getNFaces

        int getNFaces()
        Gets number of faces.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Number of faces.
      • getNFiniteVoids

        int getNFiniteVoids()
        Gets number of finite void regions.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Number of finite void regions.
      • getNVertices

        int getNVertices()
        Gets number of vertices.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Number of vertices.
      • getPEdge

        double[][] getPEdge()
        Gets a low-level matrix description of parameter edges in a real 3D geometry object represented using the COMSOL kernel. A parameter edge is a representation of a 3D edge in the parameter plane of a surface. Not supported for a mesh, virtual geometry, assembly geometry, or CAD geometry.
        Returns:
        Matrix of parameter edges.
      • getPVertex

        double[][] getPVertex()
        Gets a low-level matrix description of parameter vertices in a real 3D geometry object represented using the COMSOL kernel. A parameter vertex is a representation of a 3D vertex in the parameter plane of a surface. Not supported for a mesh, virtual geometry, assembly geometry, or CAD geometry.
        Returns:
        Matrix of parameter vertices.
      • getSD

        double[] getSD()
        Returns the domain index for each vertex. For nonisolated vertices, the domain index is NaN.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Domain indices.
      • getSDim

        int getSDim()
        Returns the space dimension.
        Returns:
        Space dimension.
      • getStartEnd

        int[][] getStartEnd()
        Returns a 2 x (number of edges) matrix with start and end vertices for edges.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Start and end matrix.
      • getType

        java.lang.String getType()
        Returns the object type: solid, surface, curve, point, mixed, or empty.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Object type.
      • getUpDown

        int[][] getUpDown()
        Returns the up and down domain number for all boundaries in the first and second row of the returned matrix. Domain number 0 is used for all void regions.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Up and down matrix.
      • getUpDownExt

        int[][] getUpDownExt()
        Returns the up and down domain number for all boundaries in the first and second row of the returned matrix, using the extended domain numbering. Domain number 0 is used for the infinite void region. Negative domain numbers are used for finite void regions. Note: If voidsAreLabeled() is false, then there might be finite void regions that are denoted with 0 instead of a negative number.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Up and down matrix.
      • getVertex

        double[][] getVertex()
        Gets a low-level matrix description of vertices in a real geometry object represented using the COMSOL kernel. Not supported for a mesh, virtual geometry, assembly geometry, or CAD geometry.
        Returns:
        Vertex information.
      • getVertexCoord

        double[][] getVertexCoord()
        Get vertex coordinates as a sdim x (number of vertices) matrix.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Coordinate matrix.
      • getVertexDomain

        int[] getVertexDomain()
        Returns the domain index for each vertex. For nonisolated vertices, the domain index is -1.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Domain index.
      • getVtx

        double[][] getVtx()
        Gets vertex coordinates and domain numbers. In 1D, this is the rows of getVertexCoord() followed by the rows of getUpDown(). In 2D and 3D, this is the rows of getVertexCoord() followed by the rows of getVertexDomain().

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        Vertex information.
      • hasCadRep

        boolean hasCadRep()
        Checks if this is a 3D geometry represented using the CAD kernel.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        true if this is a 3D geometry represented using the CAD kernel.
      • isAssembly

        boolean isAssembly()
        Checks if this is a geometry of assembly type (originating from the Form Assembly feature), including virtual geometries based on a real assembly geometry.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        true if this an assembly geometry.
      • isMesh

        boolean isMesh()
        Returns true if this geometric model is represented by a mesh (rather than a geometry).

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        true if this is a mesh.
      • isVirtual

        boolean isVirtual()
        Returns true if this is a virtual geometry.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        true if this is a virtual geometry.
      • voidsAreLabeled

        boolean voidsAreLabeled()
        Returns true if all finite void regions are labeled with negative domain indices in the serialization (mphtxt/mphbin file). This also affects the domain indices in getAdjExt(), getAdjOrientExt(), getUpDownExt(), getFace(), getEdge(), and getVertex(). For a mesh or a virtual geometry, this method returns 0.

        Note: For a GeomSequence whose component's geometric model is defined by a MeshSequence, the GeomInfo methods return information about that geometric model, not about the GeomSequence. The behavior in this case might change in a future version.
        Returns:
        false if some finite void regions might be denoted with 0 in the serialization, like in version 4.2.