Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsCreateSmoothShadedMesh(Vector3, Int32) Method

CreateSmoothShadedMesh converts the mesh defined by the originalPositions and originalTriangleIndices to a smooth shaded mesh (without any hard edges). In this case all positions that occupy the same 3D space are combined and this makes the mesh look smooth.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static (Vector3[] , int[] ) CreateSmoothShadedMesh(
	Vector3[] originalPositions,
	int[] originalTriangleIndices
)

Parameters

originalPositions  Vector3
original positions as array of Vector3
originalTriangleIndices  Int32
original TriangleIndices as array of int

Return Value

ValueTupleVector3, Int32
tuple with new positions and new triangle indices
See Also