Click or drag to resize

MeshModelCreateFromTriangles Method (PointFloat3D, Int32, PointFloat3D)

LightningChart .NET Help
Create a mesh model from positions and colors. Positions must be triplets of triangle points and each color in input is color of each triangle.

Namespace:  Arction.Wpf.Charting.Views.View3D
Assembly:  Arction.Wpf.Charting.LightningChart (in Arction.Wpf.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public MeshModelCreateReturnCode CreateFromTriangles(
	PointFloat3D[] positions,
	int[] colors,
	PointFloat3D[] normals = null
)

Parameters

positions
Type: Arction.Wpf.ChartingPointFloat3D
Triangle position array.
colors
Type: SystemInt32
Color per triangle (array of Int32).
normals (Optional)
Type: Arction.Wpf.ChartingPointFloat3D
Optional normal array.

Return Value

Type: MeshModelCreateReturnCode
Success code.
See Also