Demonstrates the fence slice feature in an interactive program.
This program shows how to display fence slice from various types of meshes.
A hexahedron mesh is loaded at start-up. The full mesh skin with edge drawstyle is added to the scene.
A fence slice going through a polyline can be modified by pressing keys
Press o or p to move the polyline. Press k or l to move the direction. Press x to display the fences along the x-axis. Press y to display the fences along the y-axis. Press z to display the fences along the z-axis. Press e to toggle edges visibility on the fences. Press v to toggle vector visibility.
FILES:
-
MeshVizXLM/mapping//FenceSlice/Main.cxx
-
MeshVizXLM/mapping//FenceSlice/DemoFenceSlice.h
-
MeshVizXLM/mapping//FenceSlice/DemoFenceSlice.cxx
-
MeshVizXLM/mapping//DemoTemplate/Demo.h
-
MeshVizXLM/mapping//DemoTemplate/Demo.cxx
-
MeshVizXLM/mapping//DemoTemplate/Data.h
-
MeshVizXLM/mapping//DemoTemplate/Data.cxx
-
MeshVizXLM/mapping//DemoTemplate/MeshSceneEditor.h
-
MeshVizXLM/mapping//DemoTemplate/MeshSceneEditor.cxx
-
MeshVizXLM/mapping//DemoTemplate/TextSceneEditor.h
-
MeshVizXLM/mapping//DemoTemplate/TextSceneEditor.cxx
SEE ALSO
MoMesh, MoDrawStyle, MoMaterial, MoMeshFenceSlice, MoMeshVector
SCREENSHOT:
This example displays a bump mapped fence slice.
A checkbox allows to enable or disable the bump effect. The geometry is a set of 2D points extruded along the X, Y or Z axis.
FILES:
-
VolumeViz/examples/fenceSlice/fenceSlice.cxx
-
VolumeViz/examples/fenceSlice/utils.cxx
-
VolumeViz/examples/fenceSlice/utils.h
-
VolumeViz/examples/fenceSlice/interface.iv
-
VolumeViz/examples/fenceSlice/scene.iv
SEE ALSO
SoFenceSlice
SCREENSHOT: