public class MoMeshCellShape extends MoMeshRepresentation
This node renders an unstructured surface mesh defined by a set of cells in
the original mesh. The set of cells to be rendered is specified by a list of
cell indices. The size of the rendered cells can be scaled up or down using
the scaleFactor
field and annotation of the cell and node names can
optionally be displayed.
The cells 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.
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoMFInt64 |
cellIndices
Field representing the list of cells given by their index in the mesh.
If the mesh is unstructured, each value of cellIndices represents
one cell.If the mesh is a structured surface mesh, each cell is defined by a pair of indices ( cellIndices(i) , cellIndices(i+1) ).If the mesh is a structured volume mesh, each cell is defined by three indices ( cellIndices(i) , cellIndices(i+1) ,
cellIndices(i+2) ).So, depending on the type of mesh, one, two or three indices are necessary to define each cell. |
SoSFFloat |
factor
Field representing the factor to resize extracted cells.
A factor lower than one will shrink cells, whereas a factor greater than one will expand cells. The default value is 1.0, which will not resize cells. |
SoSFBool |
inclusiveList
When set to
true the cellIndices field will represent the
list of cells to display and the list of cells to exclude otherwise.The default value is true |
SoSFFloat |
offset
Field representing the distance to shift the display of node names away
from the node coordinates.
A negative offset will display node names inside the cell, whereas a positive offset will display them outside the cell. Note: The offset is relative to the cell's size if the relativeOffset field is set to true . |
SoSFBool |
relativeOffset
When set to
true the distance between the node and the name to
display is relative to the size of the cell.Note: For unstructured meshes, the offset field is then multiplied by the getRelativeSize() method from the cell interface. |
SoSFBool |
showCellName
When set to
true the cell name is displayed near the cell. |
SoSFBool |
showNodeName
When set to
true the node names are displayed near the cell. |
colorScalarSetId
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
MoMeshCellShape()
Constructs a rendering node with default options and cell indices list.
|
Modifier and Type | Method and Description |
---|---|
MiCellExtractHexahedronIjk |
getHexahedronIjkExtractor()
Gets the cell extractor for hexahedron IJK meshes to reuse outside this
node.
Note: The returned object may be null if no hexahedron IJK
mesh has been set in the scene graph or if no render action has traversed
the scene graph. |
MiCellExtractIj |
getIjExtractor()
Gets the cell extractor for structured surface meshes to reuse outside this
node.
Note: The returned object may be null if no structured
surface mesh has been set in the scene graph or if no render action has
traversed the scene graph. |
MiCellExtractIjk |
getIjkExtractor()
Gets the cell 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. |
MiCellExtractUnstructured |
getUnstructuredExtractor()
Gets the cell extractor for unstructured meshes to reuse outside this node.
|
doAction, setExtractorCallback
write
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, rayPick
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoSFBool inclusiveList
true
the cellIndices
field will represent the
list of cells to display and the list of cells to exclude otherwise.true
public SoMFInt64 cellIndices
cellIndices
represents
one cell.cellIndices(i)
, cellIndices(i+1)
).cellIndices(i)
, cellIndices(i+1)
,
cellIndices(i+2)
).
Note: If the index list is empty, no cells are displayed when
inclusiveList
is set to true
and all cells otherwise. By
default, the list is empty.
public SoSFFloat factor
public SoSFBool showCellName
true
the cell name is displayed near the cell. The
default value is false
.getCellName()
method from the
topology interface.public SoSFBool showNodeName
true
the node names are displayed near the cell. The
default value is false
.getNodeName()
method from the
topology interface.public SoSFFloat offset
relativeOffset
field is set to true
. Otherwise it
represents an absolute distance.public SoSFBool relativeOffset
true
the distance between the node and the name to
display is relative to the size of the cell.getRelativeSize()
method from the cell interface. A default
implementation of getRelativeSize()
returns 1 which will leave the
offset as an absolute distance. getRelativeSize()
needs to be
overloaded to activate this feature for unstructured mesh (see class
MiCell
).false
.public MoMeshCellShape()
cellIndices
is empty
inclusiveList = true
factor = 1
showCellName = false
showNodeName = false
offset = 0.1
relativeOffset = false
public MiCellExtractUnstructured getUnstructuredExtractor()
null
if no unstructured
mesh has been set in the scene graph or if no render action has traversed
the scene graph.public MiCellExtractIjk getIjkExtractor()
null
if no IJK mesh has
been set in the scene graph or if no render action has traversed the scene
graph.public MiCellExtractHexahedronIjk getHexahedronIjkExtractor()
null
if no hexahedron IJK
mesh has been set in the scene graph or if no render action has traversed
the scene graph.public MiCellExtractIj getIjExtractor()
null
if no structured
surface mesh has been set in the scene graph or if no render action has
traversed the scene graph.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com