> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class GearShapeCustomBase.Profile

Namespace: [VM.Managed.DAFUL.GearTrain](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain)\
Assembly: VMDGearTrain.dll

This class is to represent the profile.

```csharp theme={null}
public class GearShapeCustomBase.Profile
```

#### Inheritance

object ←
[GearShapeCustomBase.Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### Profile()

Initializes a new instance of the [Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md) class.

```csharp theme={null}
public Profile()
```

## Properties

### Distance

The distance from the base profile

```csharp theme={null}
public double Distance { get; set; }
```

#### Property Value

double

### PointCount

The number of profile points.

```csharp theme={null}
public int PointCount { get; }
```

#### Property Value

int

### PointList

The profile points.

```csharp theme={null}
public List<GearShapeCustomBase.Point2D> PointList { get; set; }
```

#### Property Value

List\<[GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Point2D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Point2D.md)>

## Methods

### Equals(Profile)

Check equality of two objects

```csharp theme={null}
public bool Equals(GearShapeCustomBase.Profile other)
```

#### Parameters

`other` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md)

Object to compare

#### Returns

bool

true if two objects are equal. Otherwise false.

### GetToothProfile(Profile, uint)

Get the profile of a gear tooth.

```csharp theme={null}
public static List<GearShapeCustomBase.Point2D> GetToothProfile(GearShapeCustomBase.Profile pf, uint nTooth)
```

#### Parameters

`pf` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md)

The target profile.

`nTooth` uint

The number of tooth.

#### Returns

List\<[GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Point2D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Point2D.md)>

The profile of a gear tooth.

### MaxDistance(Point2D, ref Profile, ref double)

Get the maximum distance from center point.

```csharp theme={null}
public static double MaxDistance(GearShapeCustomBase.Point2D ptCenter, ref GearShapeCustomBase.Profile pf, ref double dAngle)
```

#### Parameters

`ptCenter` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Point2D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Point2D.md)

The center point.

`pf` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md)

The target profile.

`dAngle` double

The angle of maximum distance point.

#### Returns

double

The maximum distance.

### MinDistance(Point2D, ref Profile)

Get the minimum distance from center point.

```csharp theme={null}
public static double MinDistance(GearShapeCustomBase.Point2D ptCenter, ref GearShapeCustomBase.Profile pf)
```

#### Parameters

`ptCenter` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Point2D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Point2D.md)

The center point.

`pf` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md)

The target profile.

#### Returns

double

The minimum distance.

### MinDistance(Point2D, ref Profile, ref double)

Get the minimum distance from center point.

```csharp theme={null}
public static double MinDistance(GearShapeCustomBase.Point2D ptCenter, ref GearShapeCustomBase.Profile pf, ref double dAngle)
```

#### Parameters

`ptCenter` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Point2D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Point2D.md)

The center point.

`pf` [GearShapeCustomBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.md).[Profile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearShapeCustomBase.Profile.md)

The target profile.

`dAngle` double

The angle of maximum distance point.

#### Returns

double

The minimum distance.
