IGeom3DCurve::PrepByPoint

Description

This method allows you to find the foot of the perpendicular from a given point to the curve, the tangent to and curvature of the curve at that point. If a Guess parameter value is supplied, the perpendicular found is the one nearest to the supplied parameter position, otherwise it is the one at which the curve is nearest to the given point.

Syntax

ResultArrayPrepByPoint( PointGuess );

Input: (Variant) Point

Variant that contains a double array of coordinates of a given point.

Input: (Double) Guess

Parameter on a curve defining the nearest area to a perpendicular from point.

Return: (Variant) ResultArray

Variant that contains a double array of 9 elements consists of:

ResultArray(0)-ResultArray(2) - The perpendicular's foot point coordinates;

ResultArray(3)-ResultArray(5) - The tangent to curve in that point;

ResultArray(6)-ResultArray(8) - The curvature of curve in that point.

Note

All coordinates are given relative to the model's main UCS.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.