|
WireframeFactoryCreateWireframe(UIElement3D, Double, Boolean, Color, Visual3D) Method |
Creates 3D lines that represent a wireframe model from the already defined 3D object.
Namespace: Ab3d.ModelsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static Model3D CreateWireframe(
UIElement3D uiElement3D,
double thickness,
bool preserveLineColor,
Color lineColor,
Visual3D parentVisual3D
)
Parameters
- uiElement3D UIElement3D
- original 3D object as UIElement3D
- thickness Double
- line thickness in screen coordinates
- preserveLineColor Boolean
- if true the line color is taken from the original 3D model
- lineColor Color
- color of the lines (if preserveLineColor is true, lineColor is used as fallback color)
- parentVisual3D Visual3D
- parent Visual3D
Return Value
Model3Dwireframe model as GeometryModel3D
Remarks
If preserveLineColor parameter is true, the line color is taken from the original 3D model. If color cannot be found, the color from lineColor parameter is used as fallback value.
If preserveLineColor parameter is false, the color from lineColor parameter is used.
See Also