Click or drag to resize
Ab4d.SharpEngine logo

LineUtilsGetWireframeLinePositions(Mesh, Boolean, Transform, HashSetUInt64) Method

Gets an array of Vector3 positions that define wireframe lines for the specified mesh. When removedDuplicateLines is true, then only one line will be created for each edge between two triangles. This requires additional processing but is faster to render because less wireframe lines are returned.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Vector3[] GetWireframeLinePositions(
	Mesh mesh,
	bool removedDuplicateLines = false,
	Transform? transform = null,
	HashSet<ulong>? distinctLinesHashSet = null
)

Parameters

mesh  Mesh
mesh
removedDuplicateLines  Boolean  (Optional)
true to remove duplicate lines at the edges of triangles (false by default)
transform  Transform  (Optional)
optional transformation that is applied to all positions
distinctLinesHashSet  HashSetUInt64  (Optional)
optional HashSet that is used when removing duplicate lines; when null and removedDuplicateLines is true, then new HashSet is created internally

Return Value

Vector3
array of Vector3 positions that define wireframe lines for the specified mesh
Exceptions
ExceptionCondition
ArgumentNullExceptionwhen mesh is null
See Also