Interface ICamApiShapeBodyInfo
Level-1 shape descriptor of a face set (body): scale-dependent form characteristics —
volume, area, bounds, centroid, principal inertia, face and edge type statistics.
Produced by ICamApiShapeAnalyzer.BuildBodyInfo
Assembly: CAMAPI.SurfaceTypes.dll
Syntax
[Guid("E6242C9A-6234-4FE5-B966-7A5DE4D6F797")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICamApiShapeBodyInfo
Properties
BoundaryEdgeCount
Number of boundary (free) edges; 0 for a closed shell
Declaration
int BoundaryEdgeCount { get; }
Property Value
BoxMax
Maximum corner of the body bounding box in model space
Declaration
TST3DPoint BoxMax { get; }
Property Value
BoxMin
Minimum corner of the body bounding box in model space
Declaration
TST3DPoint BoxMin { get; }
Property Value
Centroid
Center of mass at unit density: volume-weighted for a closed shell, surface-area-weighted otherwise
Declaration
TST3DPoint Centroid { get; }
Property Value
ConcaveEdgeCount
Declaration
int ConcaveEdgeCount { get; }
Property Value
ConvexEdgeCount
Number of convex edges (see ICamApiEdgeFaceInfo)
Declaration
int ConvexEdgeCount { get; }
Property Value
DistanceHistogramBin[int]
Declaration
double DistanceHistogramBin[int i] { get; }
Parameters
| Type |
Name |
Description |
| int |
i |
|
Property Value
DistanceHistogramBinCount
Number of bins in the distance histogram
Declaration
int DistanceHistogramBinCount { get; }
Property Value
FaceCount
Number of faces the descriptor was built from
Declaration
Property Value
IsClosed
True if the face set forms a closed shell (no boundary edges)
Declaration
Property Value
SmoothEdgeCount
Number of smooth (tangent) edges
Declaration
int SmoothEdgeCount { get; }
Property Value
Sphericity
Level-2 (scale-invariant) descriptor: how close the body is to a ball, 0..1.
Exactly 1 for a ball, lower the more the surface exceeds the ball of the same volume.
0 for an open face set, where volume is undefined
Declaration
double Sphericity { get; }
Property Value
TotalArea
Declaration
double TotalArea { get; }
Property Value
VectorSchemaVersion
Schema version of the feature vector — the meaning and order of its values.
A classifier trained on one version must not consume another
Declaration
int VectorSchemaVersion { get; }
Property Value
VectorSize
Number of values in the feature vector
Declaration
Property Value
VectorValue[int]
Declaration
double VectorValue[int i] { get; }
Parameters
| Type |
Name |
Description |
| int |
i |
|
Property Value
Volume
Enclosed volume of the shell; 0 for an open face set
Declaration
Property Value
Methods
GetFaceCountByKind(TCamApiSurfaceKind)
Declaration
int GetFaceCountByKind(TCamApiSurfaceKind Kind)
Parameters
Returns
GetNormalizedInertia(out TST3DPoint)
Declaration
void GetNormalizedInertia(out TST3DPoint Moments)
Parameters
GetPrincipalInertia(out TST3DPoint, out TST3DPoint, out TST3DPoint, out TST3DPoint)
Declaration
void GetPrincipalInertia(out TST3DPoint Moments, out TST3DPoint Axis1, out TST3DPoint Axis2, out TST3DPoint Axis3)
Parameters