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


MetrDistContext Structure

MetrDistContext is used to pass additional parameters to IMetrics.Dist method if needed.

typedef struct MetrDistContext_
{
        VARIANT_BOOL includeChildren;            
        VARIANT_BOOL needAll;                        
        double tolerance;                                          
        double precision;                                          

} MetrDistContext;

 

Members:

includeChildren          Include children of the objects in search for nearest points. Default: false.


needAll                         Include points at distances between min and min+tolerance into the nearest set. Significantly affects performance. Default: false

tolerance                       Tolerance for the nearest set. Ignored if needAll is false. Default: 1e-10
 

precision                       Currently unused. Set equal to 1e-10 for forward compatibility