|
WireframeFactoryCreateWireframe(ModelVisual3D, Double, Boolean, Color, Viewport3D) 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(
ModelVisual3D visual3D,
double thickness,
bool preserveLineColor,
Color lineColor,
Viewport3D parentViewport3D
)
Parameters
- visual3D ModelVisual3D
- original 3D object as ModelVisual3D
- 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
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