Skip to main content
Namespace: VM.Managed.CAD.Sprocket
Assembly: VMDSprocket.dll
The base class is sprocket profile.

Inheritance

object ← ProfileSprocketBase

Derived

ProfileSprocket_ASA, ProfileSprocket_BS

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

ProfileSprocketBase(ProfileDataSprocket)

Initializes a new instance of the ProfileSprocketBase class.

Parameters

info ProfileDataSprocket The info is data for creation profile.

Fields

m_Info

The info is data for creation profile

Field Value

ProfileDataSprocket

m_dRadius_shift

Shift radius value.

Field Value

double

m_lstPtOrigin

The original point data.

Field Value

List<VectorBase>

m_lstPtWorkPlane

The transformed point data to work plane.

Field Value

List<VectorBase>

m_strError

Set error message when can not calculate profile.

Field Value

string

Properties

Radius_Shift

Gets shift radius value.

Property Value

double

Methods

Calculation_Gradient(VectorBase, VectorBase)

Find the gradient of line equation

Parameters

_ptArbitrary1 VectorBase The arbitrary point. _ptArbitrary2 VectorBase The arbitrary point.

Returns

double The gradient

Calculation_Gradient_Bewteen_ArbitraryPoint_and_Circle(VectorBase, VectorBase, double)

Called when the gradient calculate between arbitrary point and circle.

Parameters

_ptArbitrary VectorBase The arbitrary point. ptCenterofCircle VectorBase The center point of circle. _dRadiusofCircle double The radius of circle.

Returns

double[] The array of gradient.

Calculation_TangentPoint_Through_Line_Circle(double, VectorBase, VectorBase, double)

Called when tangent points calculates through line to circle.

Parameters

dGradient double The gradient. _ptArbitrary VectorBase The arbitrary point. ptCenterofCircle VectorBase The center point of circle. _dRadiusofCircle double The radius of circle.

Returns

List<VectorBase> The list of points

Calculation_TangentPosition(double, VectorBase, VectorBase, double)

Called when tangent points calculates bewteen arbitrary point and circle.

Parameters

dGradient double The gradient. _ptArbitrary VectorBase The arbitrary point. ptCenterofCircle VectorBase The center point of circle. _dRadiusofCircle double The radius of circle.

Returns

double[] The tangent point.

Calculation_line_Equation(VectorBase, double, ref double)

Find line equation

Parameters

_ptArbitrary VectorBase The arbitrary point. _dGradient double y=mx+nm _dConstant double y=mx+nn

Claculation_TangentPoint_Between_Two_Circle(VectorBase, double, VectorBase, double)

Called when tangent points calculates bewteen two circles.

Parameters

ptCenter1 VectorBase The center position dR1 double The radius. ptCenter2 VectorBase The center position. dR2 double The radius.

Returns

List<VectorBase> The list of points

CreateProfile()

Create profile data.

Returns

bool

GetPointData_For_WorkPlane()

Gets points data on work plane.

Returns

List<VectorBase>

GetPointData_For_XYPlane()

Gets points data on XY plane.

Returns

List<VectorBase>

Validation()

Check validation of member variables

Returns

bool

matvec(double[], VectorBase)

Parameters

mat double[] vecA VectorBase

Returns

VectorBase

vectlvec(VectorBase, VectorBase)

Parameters

vecA VectorBase vecB VectorBase

Returns

VectorBase

vectranspose_vectieldvec(VectorBase, VectorBase, VectorBase)

Parameters

vecDepth VectorBase vecA VectorBase vecB VectorBase

Returns

double