Click or drag to resize
Ab4d.SharpEngine logo

MeshAnalyzer Class

MeshAnalyzer class can analyze the mesh and produce a list of Edges and Polygons (triangles) that define the mesh. MeshAnalyzer can also create edge lines that are created between triangles that have normal angles bigger than the specified angle.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesMeshAnalyzer

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class MeshAnalyzer

The MeshAnalyzer type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyEdges Gets list of MeshEdge structs that define all the edges of the specified mesh.
Public propertyPolygons Gets list of MeshPolygon structs that define all the polygons (triangles) of the specified mesh.
Public propertyPositions Gets list of unique Point3D positions that are created from the specified mesh.
Top
Methods
 NameDescription
Public methodAnalyze Analyze method analyzes the mesh and creates the Positions, Edges and Polygons lists.
Public methodCreateEdgeLines CreateEdgeLines gets an angle in degrees and returns a list of position indices (indexes) that represent edge lines. En edge line is created when the difference between two adjacent triangle normals is bigger than the specified angle.
Public methodDump Dump method dumps the string with information about the created positions, polygons and edges to standard output (usually Visual Studio Output window).
Public methodGetMeshAnalyzerInfo GetMeshAnalyzerInfo returns a string that shows the created positions, polygons and edges.
Public methodStatic memberTryCreate TryCreate method tries to create a MeshAnalyzer from the specified mesh.
Top
See Also