Click or drag to resize
AB4D logo

WireframeFactoryCreateWireframe(UIElement3D, Double, Boolean, Color, Viewport3D) Method

Creates 3D lines that represent a wireframe model from the already defined 3D object.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static Model3D CreateWireframe(
	UIElement3D uiElement3D,
	double thickness,
	bool preserveLineColor,
	Color lineColor,
	Viewport3D parentViewport3D
)

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)
parentViewport3D  Viewport3D
parent Viewport3D

Return Value

Model3D
wireframe 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