MeshModelCreateFromTriangles Method (PointFloat3D, Color, 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.ChartingMVVM.Views.View3D
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic MeshModelCreateReturnCode CreateFromTriangles(
PointFloat3D[] positions,
Color[] colors,
PointFloat3D[] normals = null
)
Public Function CreateFromTriangles (
positions As PointFloat3D(),
colors As Color(),
Optional normals As PointFloat3D() = Nothing
) As MeshModelCreateReturnCode
public:
MeshModelCreateReturnCode CreateFromTriangles(
array<PointFloat3D>^ positions,
array<Color>^ colors,
array<PointFloat3D>^ normals = nullptr
)
Parameters
- positions
- Type: Arction.Wpf.ChartingMVVMPointFloat3D
Triangle position array. - colors
- Type: System.Windows.MediaColor
Color per triangle (array of Color). - normals (Optional)
- Type: Arction.Wpf.ChartingMVVMPointFloat3D
Optional normal array.
Return Value
Type:
MeshModelCreateReturnCodeSuccess code.
See Also