Class ShapeBodyInfoHelper
Inheritance
ShapeBodyInfoHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class ShapeBodyInfoHelper
Methods
BoundaryEdgeCount(ComWrapper<ICamIpcShapeBodyInfo>)
Number of boundary (free) edges; 0 for a closed shell
Declaration
public static int BoundaryEdgeCount(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
BoxMax(ComWrapper<ICamIpcShapeBodyInfo>)
Maximum corner of the body bounding box in model space
Declaration
public static TST3DPoint BoxMax(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
BoxMin(ComWrapper<ICamIpcShapeBodyInfo>)
Minimum corner of the body bounding box in model space
Declaration
public static TST3DPoint BoxMin(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
Centroid(ComWrapper<ICamIpcShapeBodyInfo>)
Center of mass at unit density
Declaration
public static TST3DPoint Centroid(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
ConcaveEdgeCount(ComWrapper<ICamIpcShapeBodyInfo>)
Declaration
public static int ConcaveEdgeCount(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
ConvexEdgeCount(ComWrapper<ICamIpcShapeBodyInfo>)
Declaration
public static int ConvexEdgeCount(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
FaceCount(ComWrapper<ICamIpcShapeBodyInfo>)
Number of faces the descriptor was built from
Declaration
public static int FaceCount(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
GetDistanceHistogram(ComWrapper<ICamIpcShapeBodyInfo>)
Level-2 (scale-invariant) descriptor: shares of surface point pairs by distance,
measured relative to the bounding box diagonal. The bins sum to 1
Declaration
public static double[] GetDistanceHistogram(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
GetFaceCountByKind(ComWrapper<ICamIpcShapeBodyInfo>, TCamIpcSurfaceKind)
Number of faces of the given analytic surface kind
Declaration
public static int GetFaceCountByKind(this ComWrapper<ICamIpcShapeBodyInfo> infoCom, TCamIpcSurfaceKind kind)
Parameters
Returns
GetNormalizedInertia(ComWrapper<ICamIpcShapeBodyInfo>)
Level-2 (scale-invariant) descriptor: principal moments divided by the largest of them,
in ascending order
Declaration
public static TST3DPoint GetNormalizedInertia(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
GetPrincipalInertia(ComWrapper<ICamIpcShapeBodyInfo>, out TST3DPoint, out TST3DPoint, out TST3DPoint, out TST3DPoint)
Principal inertia at unit density about the centroid: moments in ascending order
with their matching unit eigen-directions
Declaration
public static void GetPrincipalInertia(this ComWrapper<ICamIpcShapeBodyInfo> infoCom, out TST3DPoint moments, out TST3DPoint axis1, out TST3DPoint axis2, out TST3DPoint axis3)
Parameters
GetVector(ComWrapper<ICamIpcShapeBodyInfo>)
The level-2 descriptor packed for shape recognition. Every value is dimensionless,
so the vector does not change with the size of the part
Declaration
public static double[] GetVector(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
IsClosed(ComWrapper<ICamIpcShapeBodyInfo>)
True if the face set forms a closed shell (no boundary edges)
Declaration
public static bool IsClosed(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
SmoothEdgeCount(ComWrapper<ICamIpcShapeBodyInfo>)
Number of smooth (tangent) edges
Declaration
public static int SmoothEdgeCount(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
Sphericity(ComWrapper<ICamIpcShapeBodyInfo>)
Level-2 (scale-invariant) descriptor: how close the body is to a ball, 0..1
Declaration
public static double Sphericity(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
TotalArea(ComWrapper<ICamIpcShapeBodyInfo>)
Declaration
public static double TotalArea(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
VectorSchemaVersion(ComWrapper<ICamIpcShapeBodyInfo>)
Schema version of the feature vector — a classifier trained on one version must not
consume another
Declaration
public static int VectorSchemaVersion(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns
Volume(ComWrapper<ICamIpcShapeBodyInfo>)
Enclosed volume of the shell; 0 for an open face set
Declaration
public static double Volume(this ComWrapper<ICamIpcShapeBodyInfo> infoCom)
Parameters
Returns