Click or drag to resize
Ab4d.SharpEngine logo

GeometryMesh(Vector3, Vector2, Int32, Boolean, String) Constructor

Constructor

Namespace: Ab4d.SharpEngine.Meshes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public GeometryMesh(
	Vector3[] positions,
	Vector2[]? textureCoordinates,
	int[]? triangleIndices,
	bool automaticallyCalculateNormals = true,
	string? name = null
)

Parameters

positions  Vector3
positions
textureCoordinates  Vector2
textureCoordinates
triangleIndices  Int32
triangleIndices
automaticallyCalculateNormals  Boolean  (Optional)
when true (by default), then Normals are automatically calculated (when triangleIndices are provided)
name  String  (Optional)
optional name
See Also