MIL_ID SystemId, | //in |
MIL_INT64 ModelFinderType, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextIdPtr | //out |
This function allocates a Model Finder context on the specified system. A Model Finder context contains all the information necessary to perform an MmodFind() search, including global search settings, and the individual model(s) to locate. When the Model Finder context is no longer required, you should release its memory, using MmodFree().
Models can be defined and added to a Model Finder context using MmodDefine().
The Model Finder context and individual model search settings can be adjusted using MmodControl().
Specifies the system on which to allocate the context. This parameter should be set to one of the following values:
For specifying the system
identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the type of Model Finder context. This parameter must be set to one of the following values:
For the type of context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_GEOMETRIC |
Specifies that the Model Finder context uses a general geometric search algorithm. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GEOMETRIC_CONTROLLED |
Specifies that the Model Finder context uses a controlled geometric search algorithm. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SHAPE_CIRCLE |
Specifies that the Model Finder context uses a circular model search algorithm. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milmod.lib. |
DLL | Requires mil.dll; milmod.dll. |