Table of Contents

Method MergeCoplanar

Namespace
GeometryHelper.Extension
Assembly
GeometryHelper.dll

MergeCoplanar(IEnumerable<GeoFace3>)

Runs faces that share a plane and an edge together into single faces.

public static GeoFace3[] MergeCoplanar(this IEnumerable<GeoFace3> faces)

Parameters

faces IEnumerable<GeoFace3>

Returns

GeoFace3[]

MergeCoplanar(IEnumerable<GeoFace3>, Tolerance)

Runs faces that share a plane and an edge together into single faces, within a tolerance.

public static GeoFace3[] MergeCoplanar(this IEnumerable<GeoFace3> faces, Tolerance tolerance)

Parameters

faces IEnumerable<GeoFace3>

The faces to consider.

tolerance Tolerance

The tolerance.

Returns

GeoFace3[]

The faces with each coplanar, adjoining group replaced by one face.

Remarks

This is what turns a triangulated skin back into the flat panels it stands for, which is why a body read out of a mesh format is worth passing through it before anything is measured against the faces one by one.

Exceptions

ArgumentNullException

Thrown when faces is null.