Class MoMeshRepresentation

All Implemented Interfaces:
SafeDisposable
Direct Known Subclasses:
MoMeshCellShape, MoMeshCylinderSlice, MoMeshIsosurface, MoMeshOutline, MoMeshPlaneSlice, MoMeshSkin, MoMeshSlab, MoMeshSphereSlice, MoMeshStreamline, MoMeshSurface, MoMeshVector

public abstract class MoMeshRepresentation extends MoMeshBaseRepresentation
Abstract base class for all MeshViz XLM representation nodes containing an extractor.

The basic representations and the meshes they apply to are:

All surface representations, for instance MoMeshIsosurface and MoMeshSkin, are using an inner SoPolygonOffset node to allow line representations, such as MoMeshOutline, on top without artifacts. However SoPolygonOffset can introduce other artifacts on surfaces when the two-sided lighting mode is active. Thus, to disable this SoPolygonOffset node, set the SoPreferences.MESHVIZ_POLYGON_OFFSET environment variable to false (See SoPreferences).

  • Field Details

    • colorScalarSetId

      public SoSFInt32 colorScalarSetId
      Field representing the scalar set node to be used to map colors onto the representation. During traversal of the scene graph, scalar set nodes are accumulated in a list of scalar sets. colorScalarSetId is an index into this list. The default value is 0 which means that the first scalar set stored in the scene graph is used. Setting this value to -1 disables color mapping.
  • Method Details

    • setExtractorCallback

      public void setExtractorCallback(MiExtractorCallback extractorCallback)
      Set the extraction callback which will be called each time an extraction is performed.
      Parameters:
      extractorCallback - the extraction callback
    • doAction

      public void doAction(SoAction action)
      Overrides:
      doAction in class MoMeshBaseRepresentation