|
WireGridVisual3DWireGridRenderingTechniques Enumeration |
WireGridRenderingTechniques enum is used by the
RenderingTechnique property and defines possible techniques that define how the 3D lines in this WireGridVisual3D are created and rendered.
Namespace: Ab3d.VisualsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax public enum WireGridRenderingTechniques
Members Member name | Value | Description |
---|
ScreenSpace3DLines | 0 |
3D lines in WireGridVisual3D are rendered as other 3D lines in Ab3d.PowerToys library.
This means that the lines are always rendered with the same screen specified thickness regardless of where in the 3D world they are.
This also requires that the line's MeshGeometry3D need to be updated on each camera change (when rendered with WPF 3D; when rendered with DXEngine, the lines are generated in geometry shader so no MeshGeometry3D is needed).
In this case the LineThickness property specifies the line thickness in screen coordinates (pixels on the screen with using DPI scale).
|
FixedMesh3DLines | 1 |
In case of FixedMesh3DLines the 3D lines in WireGridVisual3D are generated with a fixed MeshGeometry3D.
This MeshGeometry3D defines line with many horizontal rectangles (one for each line).
In this case the LineThickness property specifies the line thickness in world coordinates (the same as other 3D objects).
Because of this, the lines that are closer to the camera are wider then the lines that are farther away from the camera.
This technique does not require any MeshGeometry3D when the camera is changed.
It also allows using the IsEmissiveMaterial property where user can disable using emissive material and use standard DiffuseMaterial instead.
|
See Also