 |
LineUtilsAddWireframeLinePositions(ListVector3, Mesh, Boolean, Transform, 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.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic static void AddWireframeLinePositions(
List<Vector3> linePositions,
Mesh mesh,
bool removedDuplicateLines = false,
Transform? transform = null,
HashSet<ulong>? distinctLinesHashSet = null
)
Parameters
- linePositions ListVector3
- existing linePositions list (must not be null)
- 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
ExceptionsException | Condition |
---|
ArgumentNullException | when linePositions or mesh are null |
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.LineUtils.AddWireframeLinePositions(System.Collections.Generic.List{System.Numerics.Vector3},Ab4d.SharpEngine.Meshes.Mesh,System.Boolean,Ab4d.SharpEngine.Transformations.Transform,System.Collections.Generic.HashSet{System.UInt64})"]
See Also