Click or drag to resize
AB4D logo

Line3DFactoryCreateColoredAxis3D(Double, Double, Viewport3D) Method

Creates a simple 3D axis that is created from 3 lines - one for x axis, one for y axis and one for z axis.

Namespace: Ab3d.Models
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static Model3D CreateColoredAxis3D(
	double length,
	double thicknes,
	Viewport3D parentViewport3D
)

Parameters

length  Double
length of the lines
thicknes  Double
line thickness in screen coordinates
parentViewport3D  Viewport3D
parent Viewport3D

Return Value

Model3D
Model3D that defines the axis
Remarks

The default colors of the axis are Red: X, Green: Y, Blue:Z - it is simple to remembed the colors: RGB = XYZ.

It is possible to create axis with the same color with CreateAxis3D(Double, Double, Color, Viewport3D) method. Axis with custom colors can be created with CreateColoredAxis3D(Double, Double, Color, Color, Color, Viewport3D) method.

See Also