DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs 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.