Class MoMeshSphereSlice

All Implemented Interfaces:
SafeDisposable

public class MoMeshSphereSlice extends MoMeshRepresentation
Rendering node that displays a sphere slice of a volume mesh.

A sphere slice is an unstructured surface mesh defined by the intersection of a sphere with a volume mesh. The sphere is defined by its center position and radius.

The slice can be colored using a scalar set defined in the colorScalarSetId inherited field. This is an index into the list of scalar sets existing in the traversal state (see the MoScalarSetxxx nodes). To disable coloring set this field to -1. Rendering can be modified using various property nodes (see the "See Also" section).

See Also:
  • Field Details

    • center

      public SoSFVec3f center
      Specifies the sphere's center. The default value is (0,0,0).
    • radius

      public SoSFFloat radius
      Specifies the sphere's radius. Value must be greater than 0.0. The default value is 1.
  • Constructor Details

    • MoMeshSphereSlice

      public MoMeshSphereSlice()
      Constructs a rendering node with default center and radius.
      • center = (0,0,0)
      • radius = 1
  • Method Details

    • getUnstructuredExtractor

      public MiSphereSliceExtractUnstructured getUnstructuredExtractor()
      Gets the sphere slice extractor for unstructured meshes to reuse outside this node.
      Note: The returned object may be null if no unstructured mesh has been set in the scene graph or if no render action has traversed the scene graph.
      Returns:
      the sphere slice extractor for unstructured meshes
    • getHexahedronIjkExtractor

      public MiSphereSliceExtractHexahedronIjk getHexahedronIjkExtractor()
      Gets the sphere slice extractor for hexahedron IJK meshes to reuse outside this node.
      Note: The returned object may be null if no hexahedron mesh has been set in the scene graph or if no render action has traversed the scene graph.
      Returns:
      the sphere slice extractor for hexahedron IJK meshes
    • getIjkExtractor

      public MiSphereSliceExtractIjk getIjkExtractor()
      Gets the sphere slice extractor for IJK meshes to reuse outside this node.
      Note: The returned object may be null if no IJK mesh has been set in the scene graph or if no render action has traversed the scene graph.
      Returns:
      the sphere slice extractor for IJK meshes