CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamIpcShapeBodyInfo

    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 ICamIpcShapeAnalyzer.BuildBodyInfo

    Namespace: CAMIPC.SurfaceTypes
    Assembly: CAMIPC.SurfaceTypes.dll
    Syntax
    [Guid("47D1FF70-3B4C-4C7D-BD91-70241C265E3B")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface ICamIpcShapeBodyInfo

    Properties

    BoundaryEdgeCount

    Number of boundary (free) edges; 0 for a closed shell

    Declaration
    int BoundaryEdgeCount { get; }
    Property Value
    Type Description
    int

    BoxMax

    Maximum corner of the body bounding box in model space

    Declaration
    TST3DPoint BoxMax { get; }
    Property Value
    Type Description
    TST3DPoint

    BoxMin

    Minimum corner of the body bounding box in model space

    Declaration
    TST3DPoint BoxMin { get; }
    Property Value
    Type Description
    TST3DPoint

    Centroid

    Center of mass at unit density: volume-weighted for a closed shell, surface-area-weighted otherwise

    Declaration
    TST3DPoint Centroid { get; }
    Property Value
    Type Description
    TST3DPoint

    ConcaveEdgeCount

    Number of concave edges

    Declaration
    int ConcaveEdgeCount { get; }
    Property Value
    Type Description
    int

    ConvexEdgeCount

    Number of convex edges (see ICamIpcEdgeFaceInfo)

    Declaration
    int ConvexEdgeCount { get; }
    Property Value
    Type Description
    int

    DistanceHistogramBin[int]

    Declaration
    double DistanceHistogramBin[int i] { get; }
    Parameters
    Type Name Description
    int i
    Property Value
    Type Description
    double

    DistanceHistogramBinCount

    Number of bins in the distance histogram

    Declaration
    int DistanceHistogramBinCount { get; }
    Property Value
    Type Description
    int

    FaceCount

    Number of faces the descriptor was built from

    Declaration
    int FaceCount { get; }
    Property Value
    Type Description
    int

    IsClosed

    True if the face set forms a closed shell (no boundary edges)

    Declaration
    bool IsClosed { get; }
    Property Value
    Type Description
    bool

    SmoothEdgeCount

    Number of smooth (tangent) edges

    Declaration
    int SmoothEdgeCount { get; }
    Property Value
    Type Description
    int

    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
    Type Description
    double

    TotalArea

    Sum of face areas

    Declaration
    double TotalArea { get; }
    Property Value
    Type Description
    double

    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
    Type Description
    int

    VectorSize

    Number of values in the feature vector

    Declaration
    int VectorSize { get; }
    Property Value
    Type Description
    int

    VectorValue[int]

    Declaration
    double VectorValue[int i] { get; }
    Parameters
    Type Name Description
    int i
    Property Value
    Type Description
    double

    Volume

    Enclosed volume of the shell; 0 for an open face set

    Declaration
    double Volume { get; }
    Property Value
    Type Description
    double

    Methods

    GetFaceCountByKind(TCamIpcSurfaceKind)

    Declaration
    int GetFaceCountByKind(TCamIpcSurfaceKind Kind)
    Parameters
    Type Name Description
    TCamIpcSurfaceKind Kind
    Returns
    Type Description
    int

    GetInstanceId()

    Get unique identifier of current instance (used in IPC messages)

    Declaration
    string GetInstanceId()
    Returns
    Type Description
    string

    GetNormalizedInertia(out TST3DPoint)

    Declaration
    void GetNormalizedInertia(out TST3DPoint Moments)
    Parameters
    Type Name Description
    TST3DPoint Moments

    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
    Type Name Description
    TST3DPoint Moments
    TST3DPoint Axis1
    TST3DPoint Axis2
    TST3DPoint Axis3
    In this article