|
LineUtils Methods |
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.
To set advanced settings on how edge lines are created, use the EdgeLinesFactory class (this class is also internally used by this method).
|
| AddWireframeLinePositions(ListVector3, Mesh, Boolean, Transform, HashSetUInt64) |
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.
|
| AddWireframeLinePositions(ListVector3, Mesh, Matrix4x4, Boolean, HashSetUInt64) |
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.
|
| 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 specified sceneNode and its children.
The edge lines are created if angle in degrees between two adjacent triangles is bigger then the specified edgeStartAngleInDegrees.
To set advanced settings on how edge lines are created, use the EdgeLinesFactory class (this class is also internally used by this method).
|
| CreateEdgeLinesForEachSceneNode(SceneNode, Single, Single, Color4, GroupNode, Transform) |
CreateEdgeLinesForEachSceneNode creates one MultiLineNode with edge lines for each ModelNode in 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.
To set advanced settings on how edge lines are created, use the EdgeLinesFactory class (this class is also internally used by this method).
|
| GenerateEdgeLineIndices |
GenerateEdgeLineIndices method sets the EdgeLineIndices data channel on all the meshes in the specified sceneNode and its children.
To set advanced settings on how edge lines are created, use the EdgeLinesFactory class (this class is also internally used by this method).
|
| GetNormalLinePositions(Mesh, Matrix4x4, Single) |
Gets an array of Vector3 positions that define normal vector lines for the specified mesh.
|
| GetNormalLinePositions(Mesh, Single, Transform) |
Gets an array of Vector3 positions that define normal vector lines for the specified mesh.
|
| GetWireframeLinePositions(Mesh, Boolean, Transform, HashSetUInt64) |
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, HashSetUInt64) |
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