Table of Contents

Method FromFace

Namespace
GeometryHelper.Spatial
Assembly
GeometryHelper.dll

FromFace(GeoFace3)

Creates a hierarchy over the surface of a face.

public static GeoBvh3 FromFace(GeoFace3 face)

Parameters

face GeoFace3

Returns

GeoBvh3

FromFace(GeoFace3, Tolerance)

Creates a hierarchy over the surface of a face, within a tolerance.

public static GeoBvh3 FromFace(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3

The face.

tolerance Tolerance

The tolerance the triangulation works to.

Returns

GeoBvh3

The hierarchy over the triangles of the face's material.

Remarks

The mesh comes from TriangulateSurface(Tolerance) and never from Triangulate: the latter fans the boundary from one vertex and is meant only for the signed sums, where the part of a fan reaching outside the face cancels against the part overlapping it. An index built on that would answer with points that are not on the face.

Exceptions

ArgumentNullException

Thrown when the face is null.