Class PoMeshFilled

  • All Implemented Interfaces:
    SafeDisposable

    public class PoMeshFilled
    extends PoMesh2D
    Filled representation of surface mesh. This class represents a 3D surface by filling each cell of the current mesh. See PoMesh for more explanation about the current mesh.

    Even if the current mesh has a 2D geometry, a 3D surface can be obtained if the field PoMesh2D.zValuesIndex is defined (i.e. >= 0) and the corresponding scalar data set defining the Z values exists in the mesh.

    If the current mesh has a 3D geometry, its Z coordinates are used as long as the field PoMesh2D.zValuesIndex is undefined (i.e. <0).

    If the field PoMesh.valuesIndex is not defined (or if coloringType = COLOR_INHERITED), the representation uses only one inherited color. If the field PoMesh.valuesIndex is defined (and coloringType != COLOR_INHERITED), the representation is colored using the current data mapping applied to each mesh node value. (See PoMesh for more explanation about the current data-mapping).

    Vector data associated with the mesh is not used for this representation.

    If the current mesh is a 2D mesh (it does not contain 3D coordinates and the zValuesIndex field = -1) and all the cells have the same orientation, then the field useOverallNormal can be set to true. This reduces system memory usage (storage for normal vectors) and improves rendering performance.

    File format/default:

    PoMeshFilled {

      valuesIndex -1
      zValuesIndex -1
      coloringType COLOR_INHERITED
      useOverallNormal false
    }

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <title></title> </head> <BODY> <h1></h1> <h4> <A NAME="Heading991">CATALOG PARTS</A></h4> <ul><b>PoMeshFilled</b> {</ul> <ul><ul><b>Separator</b> <tt>alternateRep</tt> (from PoBase) {<br> </ul></ul> <ul><ul><ul><b>AppearanceKit</b> <tt>appearance</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Specifies the appearance of all the kit. By default lightModel.model=PHONG. material.diffuseColor is set when the kit is rebuilt, if the field coloringType is different from COLOR_INHERITED.</i></ul></ul></ul> <ul><ul><ul><b>MatrixTransform</b> <tt>domainTransform</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Corresponds to the domain transformation.</i></ul></ul></ul> <ul><ul><ul><ul></ul></ul></ul></ul> <ul><ul><ul><b>Group</b> <tt>groupFilled</tt></ul></ul></ul> <ul><ul><ul><i>Contains a SoQuadMesh (if the mesh is a PbGrid2D) or SoIndexedFaceSet (if the mesh is a PbIndexedMesh2D) shape to draw the filled representation of the mesh. A SoShapeHints node with creaseAngle = 0.8 and vertexOrdering = CLOCKWISE is inserted as the first child.</i></ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> </ul></ul> </body> </html>

    • Field Detail

      • useOverallNormal

        public final SoSFBool useOverallNormal
        Indicates if a single overall normal vector can be used to render this mesh representation. Default is false.

        If the current mesh is a 2D mesh (it does not contain 3D coordinates and the zValuesIndex field = -1) and all the cells have the same orientation, then this field can be set to true. This reduces system memory usage and improves rendering performance. If the field is false, MeshViz computes one normal per vertex of the shape rendered.

        This field should be set to true only when all the cells of the mesh have the same orientation. This field is ignored if the mesh contains 3D coordinates or the zValuesIndex field is not -1.

    • Constructor Detail

      • PoMeshFilled

        public PoMeshFilled()
        Constructor.