Click or drag to resize
AB4D logo

MeshInspectorOverlay Class

MeshInspectorOverlay is a Canvas that can be added on top of a Viewport3D object and can show positions and triangles indexes of the specified MeshGeometry3D object.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsPanel
              System.Windows.ControlsCanvas
                Ab3d.ControlsMeshInspectorOverlay

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class MeshInspectorOverlay : Canvas

The MeshInspectorOverlay type exposes the following members.

Constructors
 NameDescription
Public methodMeshInspectorOverlay Constructor
Top
Properties
 NameDescription
Public propertyAutoUpdateWhenCameraIsChanged Gets or sets a Boolean that specifies if MeshInspectorOverlay automatically calls Update method when the Camera is changed. Default values is true.
Public propertyCamera Gets or sets a Ab3d.PowerToys's BaseCamera that is used to show the 3D scene. When the AutoUpdateWhenCameraIsChanged is true, the MeshInspectorOverlay will subscribe to camera's changes and automatically call Update method when the camera is changed.
Public propertyCombinePositionIndexes CombinePositionIndexes defines when the strings of position indexes are combined into one string with comma separated index values.
Public propertyEndTriangleIndicesIndex End index of the TriangleIndices collection where the MeshInspectorOverlay ends to display positions and triangles. Default value is -1 which means that the number of the Count of the TriangleIndices from the MeshGeometry3D is used.
Public propertyFontFamily Font family of the shown text.
Public propertyMeshGeometry3D MeshGeometry3D that will be displayed.
Public propertyPositionsTextColor Color of the TextBlocks that show position indexes.
Public propertyPositionsTextFontSize Font size of the TextBlocks that show position indexes.
Public propertyPositionsTextFontWeight Font weight of the TextBlocks that show position indexes.
Public propertyShowOnlyFrontFacingTriangles Boolean that specifies if only data for the front facing triangles are shown (the triangle normal is pointer in the other direction as the camera's look direction).
Public propertyShowPositionIndexes Boolean that specifies if position indexes are shown.
Public propertyShowTriangleIndexes Boolean that specifies if triangle indexes are shown.
Public propertyShowTriangles Boolean that specifies if triangle lines are shown.
Public propertyStartTriangleIndicesIndex Start index of the TriangleIndices collection where the MeshInspectorOverlay starts to display positions and triangles. Default value is 0.
Public propertyTransform Gets or sets an optional Transform3D object that is used to transform all the positions in the specified MeshGeometry3D.
Public propertyTriangleIndexesTextColor Color of the TextBlocks that show triangle indexes and the color of the triangle lines.
Public propertyTriangleIndexesTextFontSize Font size of the TextBlocks that show triangle indexes.
Public propertyTriangleIndexesTextFontWeight Font weight of the TextBlocks that show triangle indexes.
Public propertyTrianglesScaleFactor Scale factor as double that specifies hwo much the triangle lines are scaled - by default the value is set to 0.9 to slightly reduce the size of the triangle so the triangle lines do not overlap.
Top
Methods
 NameDescription
Public methodUpdate Update method clears all elements in this control and creates then again.
Top
Fields
 NameDescription
Public fieldStatic memberCameraProperty CameraProperty
Public fieldStatic memberFontFamilyProperty FontFamilyProperty
Public fieldStatic memberMeshGeometry3DProperty MeshGeometry3DProperty
Public fieldStatic memberPositionsTextColorProperty PositionsTextColorProperty
Public fieldStatic memberPositionsTextFontSizeProperty PositionsTextFontSizeProperty
Public fieldStatic memberPositionsTextFontWeightProperty PositionsTextFontWeightProperty
Public fieldStatic memberShowOnlyFrontFacingTrianglesProperty ShowOnlyFrontFacingTrianglesProperty
Public fieldStatic memberShowPositionIndexesProperty ShowPositionIndexesProperty
Public fieldStatic memberShowTriangleIndexesProperty ShowTriangleIndexesProperty
Public fieldStatic memberShowTrianglesProperty ShowTrianglesProperty
Public fieldStatic memberTransformProperty TransformProperty
Public fieldStatic memberTriangleIndexesTextColorProperty TriangleIndexesTextColorProperty
Public fieldStatic memberTriangleIndexesTextFontSizeProperty TriangleIndexesTextFontSizeProperty
Public fieldStatic memberTriangleIndexesTextFontWeightProperty TriangleIndexesTextFontWeightProperty
Public fieldStatic memberTrianglesScaleFactorProperty TrianglesScaleFactorProperty
Top
See Also