Table of Contents

Method TriangulateSurface

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TriangulateSurface()

Meshes the surface of the material, with every opening cut in first.

public GeoTriangle3[] TriangulateSurface()

Returns

GeoTriangle3[]

TriangulateSurface(Tolerance)

Meshes the surface of the material, with every opening cut in first, within a tolerance.

public GeoTriangle3[] TriangulateSurface(Tolerance tolerance)

Parameters

tolerance Tolerance

The tolerance.

Returns

GeoTriangle3[]

The triangles of the material's boundary: the outer faces with the parts over each opening taken away, and the walls of each opening where they run through the body. Empty when the openings take all of the material.

Remarks

This is the mesh to read as where the material ends, as TriangulateSurface() is for a face. For a body without openings it is Triangulate(Tolerance); with them, it costs cutting the openings in, so a body asked many questions is better cut once with TryCutOpenings(out GeoSolid3, Tolerance) and the result kept.

The mesh can hold triangles with no normal at the global tolerance, from small faces of the body: take a triangle's normal from GetAreaVector(), not Normal; see Triangulate(Tolerance) for which. A face thinner than the tolerance is left out whole, and a Debug line in GeometryHelperLog says so; see Triangulate(Tolerance). The mesh is then open edge by edge but closed within the tolerance: a slab thinner than the tolerance has its top and bottom meet along every edge where its sides were.

Asked at a point tolerance below the rounding of the coordinates, a quadrillionth of the largest of them, nought among them, the openings are cut within that rounding, as TryCutOpenings(out GeoSolid3, Tolerance) cuts them: at nought, a plate 200 by 100 by 3 turned about in space, with a hole 20 by 20 through it, was meshed into triangles holding 29 999.99, its bottom lost, where it holds 58 800.