Click or drag to resize
Ab4d.SharpEngine logo

LineUtilsAddWireframeLinePositions(ListVector3, Mesh, Matrix4x4, Boolean, HashSetUInt64) Method

Adds positions that define wireframe lines for the specified mesh. The positions are added to existing linePositions list. When removedDuplicateLines is true, then only one line will be created for each edge between two triangles. This requires additional processing and use of a HashSet (to reuse it, then provide an instance in distinctLinesHashSet parameter) but is faster to render because less wireframe lines are added.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static void AddWireframeLinePositions(
	List<Vector3> linePositions,
	Mesh mesh,
	Matrix4x4 transformMatrix,
	bool removedDuplicateLines = false,
	HashSet<ulong>? distinctLinesHashSet = null
)

Parameters

linePositions  ListVector3
existing linePositions list (must not be null)
mesh  Mesh
mesh
transformMatrix  Matrix4x4
matrix that is used to transform the positions
removedDuplicateLines  Boolean  (Optional)
true to remove duplicate lines at the edges of triangles (false by default)
distinctLinesHashSet  HashSetUInt64  (Optional)
optional HashSet that is used when removing duplicate lines
Exceptions
ExceptionCondition
ArgumentNullExceptionwhen linePositions or mesh are null
See Also