Class FaceHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class FaceHelper
Methods
EnumerateLoops(ComWrapper<ICamApiFace>)
Lists all loops in a face using GetNext(), disposing each wrapper as we go along
Declaration
public static IEnumerable<ComWrapper<ICamApiLoop>> EnumerateLoops(this ComWrapper<ICamApiFace> faceCom)
Parameters
Returns
GetFirstLoop(ComWrapper<ICamApiFace>)
Get first loop of the face. Next loops can be obtained via GetNext method of created ICamApiLoop object
Declaration
public static ComWrapper<ICamApiLoop> GetFirstLoop(this ComWrapper<ICamApiFace> faceCom)
Parameters
Returns
GetMesh(ComWrapper<ICamApiFace>, double)
Declaration
public static ComWrapper<ICamApiMesh> GetMesh(this ComWrapper<ICamApiFace> faceCom, double tol)
Parameters
Returns
Declaration
public static ComWrapper<ICamApiFace> GetNurbsForm(this ComWrapper<ICamApiFace> faceCom)
Parameters
Returns
IsCylindricalHole(ComWrapper<ICamApiFace>, double, out TST3DPoint, out TST3DPoint, out double, out double, out double)
Check if face is cylindrical hole and return params of this hole
Declaration
public static bool IsCylindricalHole(this ComWrapper<ICamApiFace> faceCom, double tol, out TST3DPoint center, out TST3DPoint axis, out double radius, out double zMin, out double zMax)
Parameters
Returns
| Type |
Description |
| bool |
True if the face is a cylindrical hole, false otherwise
|
Orientation(ComWrapper<ICamApiFace>)
Declaration
public static bool Orientation(this ComWrapper<ICamApiFace> faceCom)
Parameters
Returns
Surface(ComWrapper<ICamApiFace>)
Declaration
public static ComWrapper<ICamApiSurface> Surface(this ComWrapper<ICamApiFace> faceCom)
Parameters
Returns