|
LineUtils Class |
LineUtils class defines static methods that can be used to create wireframe lines, normal lines and edge lines.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax public static class LineUtils
The LineUtils type exposes the following members.
Methods | Name | Description |
---|
| AddEdgeLinePositions |
AddEdgeLinePositions method collects the edge lines and adds their start and end positions to the linePositions collection from the specified sceneNode and its children.
The edge lines are created if angle in degrees between two adjacent triangles is bigger then the specified edgeStartAngleInDegrees.
|
| AddWireframeLinePositions |
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 HashSet (to reuse it it is possible to provide its instance) but is faster to render because less wireframe lines are added.
|
| ClearEdgeLineIndices |
ClearEdgeLineIndices method clears the EdgeLineIndices calculated edge lines in the specified sceneNode and its children.
|
| CreateEdgeLinesForEachSceneNode(SceneNode, Single, LineMaterial, GroupNode, Transform) |
CreateEdgeLinesForEachSceneNode creates one MultiLineNode with edge lines for each ModelNode in the the specified sceneNode and its children.
The edge lines are created if angle in degrees between two adjacent triangles is bigger then the specified edgeStartAngleInDegrees.
|
| CreateEdgeLinesForEachSceneNode(SceneNode, Single, Single, Color4, GroupNode, Transform) |
CreateEdgeLinesForEachSceneNode creates one MultiLineNode with edge lines for each ModelNode in the the specified sceneNode and its children.
The edge lines are created if angle in degrees between two adjacent triangles is bigger then the specified edgeStartAngleInDegrees.
|
| GenerateEdgeLineIndices |
GenerateEdgeLineIndices method sets the EdgeLineIndices data channel on all the meshes in the specified sceneNode and its children.
|
| GetNormalLinePositions |
Gets an array of Vector3 positions that define normal vector lines for the specified mesh.
|
| GetWireframeLinePositions(Mesh, Boolean, Transform) |
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.
|
| GetWireframeLinePositions(SceneNode, Boolean, Transform) |
Gets an array of Vector3 positions that define wireframe lines for the specified SceneNode (and its child SceneNodes in case a GroupNode is set as parameter).
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.
|
TopSee Also