Method | Description | |
---|---|---|
CalculateNormals ( IList |
Calculates the normal vectors.
|
|
CalculateNormals ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : System.Windows.Media.Media3D.Vector3DCollection |
Calculates the normal vectors.
|
|
CombineSegments ( IList |
Combines the segments.
|
|
Cut ( System.Windows.Media.Media3D.MeshGeometry3D mesh, System.Windows.Media.Media3D.Point3D p, System.Windows.Media.Media3D.Vector3D n ) : System.Windows.Media.Media3D.MeshGeometry3D |
Cuts the mesh with the specified plane.
|
|
FindBorderEdges ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : System.Windows.Media.Int32Collection |
Finds edges that are only connected to one triangle.
|
|
FindEdges ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : System.Windows.Media.Int32Collection |
Finds all edges in the mesh (each edge is only included once).
|
|
FindSharpEdges ( System.Windows.Media.Media3D.MeshGeometry3D mesh, double minimumAngle ) : System.Windows.Media.Int32Collection |
Finds all edges where the angle between adjacent triangle normal vectors. is larger than minimumAngle
|
|
GetContourSegments ( System.Windows.Media.Media3D.MeshGeometry3D mesh, System.Windows.Media.Media3D.Point3D p, System.Windows.Media.Media3D.Vector3D n ) : IList |
Gets the contour segments.
|
|
NoSharedVertices ( System.Windows.Media.Media3D.MeshGeometry3D input ) : System.Windows.Media.Media3D.MeshGeometry3D |
Creates a new mesh where no vertices are shared.
|
|
Simplify ( System.Windows.Media.Media3D.MeshGeometry3D mesh, double eps ) : System.Windows.Media.Media3D.MeshGeometry3D |
Simplifies the specified mesh.
|
|
Validate ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : void |
Validates the specified mesh.
|
Method | Description | |
---|---|---|
CreateKey ( uint i0, uint i1 ) : ulong |
Create a 64-bit key from two 32-bit indices
|
|
FindConnectedSegment ( IList |
Finds the nearest connected segment to the specified point.
|
|
ReverseKey ( ulong key, uint &i0, uint &i1 ) : void |
Extract two 32-bit indices from the 64-bit key
|
public static CalculateNormals ( IList |
||
positions | IList |
/// The positions. /// |
triangleIndices | IList |
/// The triangle indices. /// |
return | System.Windows.Media.Media3D.Vector3DCollection |
public static CalculateNormals ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : System.Windows.Media.Media3D.Vector3DCollection | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// The mesh. /// |
return | System.Windows.Media.Media3D.Vector3DCollection |
public static CombineSegments ( IList |
||
segments | IList |
/// The segments. /// |
eps | double | /// The tolerance. /// |
return | IEnumerable |
public static Cut ( System.Windows.Media.Media3D.MeshGeometry3D mesh, System.Windows.Media.Media3D.Point3D p, System.Windows.Media.Media3D.Vector3D n ) : System.Windows.Media.Media3D.MeshGeometry3D | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// The mesh. /// |
p | System.Windows.Media.Media3D.Point3D | /// The plane origin. /// |
n | System.Windows.Media.Media3D.Vector3D | /// The plane normal. /// |
return | System.Windows.Media.Media3D.MeshGeometry3D |
public static FindBorderEdges ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : System.Windows.Media.Int32Collection | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// A mesh geometry. /// |
return | System.Windows.Media.Int32Collection |
public static FindEdges ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : System.Windows.Media.Int32Collection | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// A mesh geometry. /// |
return | System.Windows.Media.Int32Collection |
public static FindSharpEdges ( System.Windows.Media.Media3D.MeshGeometry3D mesh, double minimumAngle ) : System.Windows.Media.Int32Collection | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// A mesh geometry. /// |
minimumAngle | double | /// The minimum angle between the normal vectors of two adjacent triangles (degrees). /// |
return | System.Windows.Media.Int32Collection |
public static GetContourSegments ( System.Windows.Media.Media3D.MeshGeometry3D mesh, System.Windows.Media.Media3D.Point3D p, System.Windows.Media.Media3D.Vector3D n ) : IList |
||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// The mesh. /// |
p | System.Windows.Media.Media3D.Point3D | /// The plane origin. /// |
n | System.Windows.Media.Media3D.Vector3D | /// The plane normal. /// |
return | IList |
public static NoSharedVertices ( System.Windows.Media.Media3D.MeshGeometry3D input ) : System.Windows.Media.Media3D.MeshGeometry3D | ||
input | System.Windows.Media.Media3D.MeshGeometry3D | /// The input mesh. /// |
return | System.Windows.Media.Media3D.MeshGeometry3D |
public static Simplify ( System.Windows.Media.Media3D.MeshGeometry3D mesh, double eps ) : System.Windows.Media.Media3D.MeshGeometry3D | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// The mesh. /// |
eps | double | /// The tolerance. /// |
return | System.Windows.Media.Media3D.MeshGeometry3D |
public static Validate ( System.Windows.Media.Media3D.MeshGeometry3D mesh ) : void | ||
mesh | System.Windows.Media.Media3D.MeshGeometry3D | /// The mesh. /// |
return | void |