DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > General Geometry > IUVSurface_DG Search Documentation


IUVSurface_DG Interface

GetParameterRange
IsClosed
IsPeriodic
GetPeriod
GetIsometricCurve
GetPoint
GetNormal
GetTangent
GetPointUV
GetNearestPoints
GetCurveUV
GetCurveUV1
GetSurfaceIntersection
GetCurveIntersection
GetCurveProjection
GetCurveUVProjection
GetRatiosAt
GetParametersAtRatios

A surface in 3D with two dimentional (u,v) parameter

IUVSurface_DG can be obtained using IBRepFace_DG.GetSurface() or methods of IBRepBuilder_DG


void GetParameterRange(bool u, double *min, double *max)


bool IsClosed(bool u)


bool IsPeriodic(bool u)


double GetPeriod(bool u)


ICurve_DG GetIsometricCurve(bool u, double parameterAt)


Point_DG GetPoint(DG2D uv)


Vect_DG GetNormal(DG2D uv)


Vect_DG GetTangent(DG2D uv, bool inUDirection)


DG2D GetPointUV(Point_DG point)


I2DPointArray_DG GetNearestPoints(Point_DG point)


ICurve2d_DG GetCurveUV(ICurve_DG curve)


ICurve2d_DG GetCurveUV1(ICurve_DG curve, double parameterFrom, double parameterTo)


ICurveArray_DG GetSurfaceIntersection(IUVSurface_DG surface)


void GetCurveIntersection(ICurve_DG curve, [out] IPointArray_DG points, [out] IPointArray_DG params, [out] ICurveArray_DG segments, [out] I2DPointArray_DG segmentParams)

Intersection of curve and this surface.
points contains distinct intersection points.
params is synchronised with points and contains correspondent triples (u,v,w), where u,v are parameters of the point on this surface and w is parameter of the intersection point on the curve.
segments contains continuous pieces of non-zero length of curve, which are fully inside of this surface.
segmentParams has double size of segments. It consists of pairs of (u,v) points. For a curve from segments the correspondent pair of (u,v) points in segmentParams are the u,v parameters of its first and last ends.


ICurve_DG GetCurveProjection(ICurve_DG curve)


ICurve2d_DG GetCurveUVProjection(ICurve_DG curve)


DG2D GetRatiosAt(DG2D uv)

Returns result of linear mapping of the min,max range as defined by the GetParameterRange() to [0,1] for each parameter. Ratios of (0.5, 0.5) correspond to the central point of the surface
Be aware that in case of infinite values returned by GetParameterRange() the mapping is not reliable.


DG2D GetParametersAtRatios(DG2D ratios)

The inverse mapping to one defined in GetRatiosAt()