Click or drag to resize
Ab4d.SharpEngine logo

StandardMeshGetMeshInitializationCode Method

Returns a string in C# that defines the Vertices and TriangleIndices arrays for this mesh.

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public string GetMeshInitializationCode(
	string numberFormatString = "0.########",
	bool addIndexAsComment = true
)

Parameters

numberFormatString  String  (Optional)
format string that is used to format vertices values (default value is 0.########)
addIndexAsComment  Boolean  (Optional)
when true then index number is added as a comment at the begging of each code line (default value is true)

Return Value

String
string in C# that defines the Vertices and TriangleIndices arrays
See Also