DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


ISurfaceMetric_KC Interface

ProjectPoint
CreateProjectionCurve

Projection of points and curves to surface of an object. See Surface Metrics sample for an example


HRESULT ProjectPoint(DIPoint* pt, ISurfacePointKC** iPointProjected)

Parameters

pt - [in] - Point to project

iPointProjected - [out, retval] the projection point

Remarks:

Calculates point on surface nearest to pt and returns extended information about its proximity


HRESULT CreateProjectionCurve(ICurve* iCurve, ICurve** iCurveProjected)

Remarks:

Calculates projection of iCurve to surface of this object (the object which implements this interface)

To obtain extended information about surface in vicinity of the projected curve in case when the curve is a free-form curve query IArray from iCurveProjected. The type of elements stored in the array is ISurfacePointKC. See Surface Metrics sample for an example

Notice that in this release the method uses a simplified algorithm, which in case of curved surface and free form curves with small number of sampling points can give unstatisfactory precision. Contact us to request improvements.