public class MoDrawStyle extends MoActionNode
This node specifies the draw style to be used in subsequent nodes inheriting
from MoMeshRepresentation
and defining a surface or a line:
displayFaces
field controls drawing cell faces as solid
displayEdges
field controls drawing cell edges
displayPoints
field controls drawing node points
fadingThreshold
field controls fading out on node points and
cell edges from surfaces
No Edge Fading | Edge Fading |
![]() |
![]() |
See MoMaterial
for setting the rendering attributes of facets, edges
and points.
Use this node, for example, to efficiently render a colored surface and the outlines of its cells using a single rendering node.
MoMaterial
,
MoMaterialElement
,
MoDrawStyleElement
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFBool |
displayEdges
The display mode for mesh edges.
When set to true the edges of cells are displayed. |
SoSFBool |
displayFaces
The display mode for mesh faces.
When set to true (default), the surface of mesh representations are
filled. |
SoSFBool |
displayPoints
The display mode for mesh node points.
When set to true , the node points are displayed. |
SoSFFloat |
fadingThreshold
Threshold allowing to fade out extra styles of a surface representation as
it gets away from the view point.
If fadingThreshold is 0, no fading is done. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
MoDrawStyle()
Constructs a property node with draw style set to default values.
|
Modifier and Type | Method and Description |
---|---|
void |
doAction(SoAction action) |
callback, distribute, getBoundingBox, getMatrix, getPrimitiveCount, getRenderEngineMode, GLRender, handleEvent, pick, rayPick
affectsState, copy, copy, getAlternateRep, getByName, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public SoSFBool displayFaces
true
(default), the surface of mesh representations are
filled. Otherwise, they are not filled.public SoSFBool displayEdges
true
the edges of cells are displayed. Otherwise, they
are not displayed (default).public SoSFBool displayPoints
true
, the node points are displayed. Otherwise, they
are not displayed (default).public SoSFFloat fadingThreshold
Note: when the fading is activated, a transparency is required so be sure
to check
SoGLRenderAction.TransparencyTypes
documentation in order to be aware of known transparency limitations (AA
compatibility).
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com