Click or drag to resize
AB4D logo

Line3DFactoryCreateColoredAxis3D(Double, Double, Visual3D) 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,
	Visual3D parentVisual3D
)

Parameters

length  Double
length of the lines
thicknes  Double
line thickness in screen coordinates
parentVisual3D  Visual3D
parent Visual3D

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 remembered the colors: RGB = XYZ.

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

See Also