public class MoMesh extends MoActionNode
This node stores the object implementing a mesh interface in the scene graph.
Any kind of mesh can be stored in the scene graph. All mesh representation
nodes derived from MoMeshRepresentation
use this mesh. The mesh can
be set explicitly using one of the setMesh()
methods or implicitly by
using the connectFrom()
method to use the result of a previous
representation.
Note: Each time the current mesh geometry and/or topology are updated
(see
MiTopology.getTimeStamp()
and
MiGeometry.getTimeStamp()
), touch() must be called to mark the node as modified.
MoMeshElement
,
MiMesh
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
MoMesh()
Constructs a property node with no mesh defined.
|
Modifier and Type | Method and Description |
---|---|
void |
connectFrom(MoMeshRepresentation inputRep)
Sets the mesh interface by giving the mesh representation node from which
the input mesh will be created.
When calling this method, the mesh is set internally each time the input mesh representation changes during traversal. |
void |
doAction(SoAction action) |
MiMesh |
getMesh()
Gets the mesh interface stored.
|
MoMeshVizDataMapping.MeshType |
getMeshType()
Gets the type of mesh stored.
|
void |
reset()
Resets the mesh interface to
null (same as calling
setMesh(null) ). |
<Topology extends MiTopologyIj,Geometry extends MiGeometryIj> |
setMesh(MiSurfaceMeshCurvilinear<Topology,Geometry> mesh)
Sets the mesh interface to a curvilinear surface mesh.
|
<Cell extends MiSurfaceCell,Topology extends MiSurfaceTopologyExplicitI<Cell>,Geometry extends MiGeometryI> |
setMesh(MiSurfaceMeshUnstructured<Cell,Topology,Geometry> mesh)
Sets the mesh interface to an unstructured surface mesh.
|
<TopologyT extends MiHexahedronTopologyExplicitIjk,GeometryT extends MiGeometryI> |
setMesh(MiVolumeMeshHexahedronIjk<TopologyT,GeometryT> mesh)
Sets the mesh interface to an IJK Hexahedron volume mesh.
|
<CellT extends MiVolumeCell,TopologyT extends MiVolumeTopologyExplicitI<CellT>,GeometryT extends MiGeometryI> |
setMesh(MiVolumeMeshUnstructured<CellT,TopologyT,GeometryT> mesh)
Sets the mesh interface to an unstructured volume mesh.
|
<TopologyT extends MiTopologyIjk,GeometryT extends MiGeometryHexahedronIjk> |
setMesh(MiVolumeMeshVertexHexahedronIjk<TopologyT,GeometryT> mesh)
Sets the mesh interface to a non indexed IJK Hexahedron volume mesh.
|
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, write
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 void reset()
null
(same as calling
setMesh(null)
). Sets the node as modified by calling
touch()
.public <CellT extends MiVolumeCell,TopologyT extends MiVolumeTopologyExplicitI<CellT>,GeometryT extends MiGeometryI> void setMesh(MiVolumeMeshUnstructured<CellT,TopologyT,GeometryT> mesh)
touch()
and all
associated representations will be cleared, resulting in a full rendering
of the corresponding scenegraph.
Note: When the current mesh geometry and topology have simply been
updated (see
MiTopology.getTimeStamp()
and
MiGeometry.getTimeStamp()
), it is then better to just call touch()
instead.
If the mesh must come from the output of another representation, use the
connectFrom()
method instead of setMesh()
.
mesh
- the unstructured volume meshpublic <TopologyT extends MiHexahedronTopologyExplicitIjk,GeometryT extends MiGeometryI> void setMesh(MiVolumeMeshHexahedronIjk<TopologyT,GeometryT> mesh)
touch()
and all
associated representations will be cleared, resulting in a full rendering
of the corresponding scenegraph.
Note: When the current mesh geometry and topology have simply been
updated (see
MiTopology.getTimeStamp()
and
MiGeometry.getTimeStamp()
), it is then better to just call touch()
instead.
If the mesh must come from the output of another representation, use the
connectFrom()
method instead of setMesh()
.
mesh
- the IJK Hexahedron volume meshpublic <TopologyT extends MiTopologyIjk,GeometryT extends MiGeometryHexahedronIjk> void setMesh(MiVolumeMeshVertexHexahedronIjk<TopologyT,GeometryT> mesh)
touch()
and all associated representations will be cleared, resulting in a full
rendering of the corresponding scenegraph.
Note: When the current mesh geometry and topology have simply been
updated (see
MiTopology.getTimeStamp()
and
MiGeometry.getTimeStamp()
), it is then better to just call touch()
instead.
If the mesh must come from the output of another representation, use the
connectFrom()
method instead of setMesh()
.
mesh
- the non indexed IJK Hexahedron volume meshpublic <Cell extends MiSurfaceCell,Topology extends MiSurfaceTopologyExplicitI<Cell>,Geometry extends MiGeometryI> void setMesh(MiSurfaceMeshUnstructured<Cell,Topology,Geometry> mesh)
touch()
and all
associated representations will be cleared, resulting in a full rendering
of the corresponding scenegraph.
Note: When the current mesh geometry and topology have simply been
updated (see
MiTopology.getTimeStamp()
and
MiGeometry.getTimeStamp()
), it is then better to just call touch()
instead.
If the mesh must come from the output of another representation, use the
connectFrom()
method instead of setMesh()
.
mesh
- the unstructured surface meshpublic <Topology extends MiTopologyIj,Geometry extends MiGeometryIj> void setMesh(MiSurfaceMeshCurvilinear<Topology,Geometry> mesh)
touch()
and all
associated representations will be cleared, resulting in a full rendering
of the corresponding scenegraph.
Note: When the current mesh geometry and topology have simply been
updated (see
MiTopology.getTimeStamp()
and
MiGeometry.getTimeStamp()
), it is then better to just call touch()
instead.
If the mesh must come from the output of another representation, use the
connectFrom()
method instead of setMesh()
.
mesh
- the curvilinear surface meshpublic MiMesh getMesh()
public MoMeshVizDataMapping.MeshType getMeshType()
public void connectFrom(MoMeshRepresentation inputRep)
inputRep
- input mesh representation node from which the input mesh will be
created.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com