Table of Contents

Method TryCutOpenings

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryCutOpenings(GeoSolid3, out GeoSolid3)

Turns a body with openings into one without, whose faces are the surface of its material.

public static bool TryCutOpenings(GeoSolid3 solid, out GeoSolid3 material)

Parameters

solid GeoSolid3
material GeoSolid3

Returns

bool

TryCutOpenings(GeoSolid3, out GeoSolid3, Tolerance)

Turns a body with openings into one without, whose faces are the surface of its material, within a tolerance.

public static bool TryCutOpenings(GeoSolid3 solid, out GeoSolid3 material, Tolerance tolerance)

Parameters

solid GeoSolid3

The body.

material GeoSolid3

The body with every opening cut into it, or the body itself when it has none; null when the method returns false.

tolerance Tolerance

The tolerance.

Returns

bool

true when some material is left; false when the openings take all of it, which is an outcome and not an error, as it is for the booleans.

Exceptions

ArgumentNullException

Thrown when the body is null.