本文整理汇总了C++中Facet::identify方法的典型用法代码示例。如果您正苦于以下问题:C++ Facet::identify方法的具体用法?C++ Facet::identify怎么用?C++ Facet::identify使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Facet
的用法示例。
在下文中一共展示了Facet::identify方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: validateTemplate
bool Marker::validateTemplate(double positionToleranceMM, string complString)
{
Collection* facetsColl = new Collection(this->getTemplateFacets());
for(int k=1; k < facetsColl->count(); k++)
{
Facet* f = new Facet(facetsColl->itemI(k));
if (!f->validateTemplate(positionToleranceMM, complString))
return false;
}
vector<Vector*> vs;
for (int fi=1; fi < facetsColl->count()-1; fi++)
{
Facet* Fti = new Facet(fi);
for(int fj= fi+1; fj < facetsColl->count(); fj++)
{
Facet* Ftj = new Facet(fj);
vs = Ftj->TemplateVectors();
if (Fti->identify(NULL, vs, 2*positionToleranceMM))
return false; //mtDifferentFacetsGeometryTooSimilar
}
}
/*
'Check that two facets cannot be confused with each other, ie
'their positions are at least twice the tolerance
Dim fi, fj, Fti As Facet, Ftj As Facet, Vs(2) As Vector
For fi = 1 To TemplateFacets.Count - 1
Set Fti = TemplateFacets(fi)
For fj = fi + 1 To TemplateFacets.Count
Set Ftj = TemplateFacets(fj)
Set Vs(0) = Ftj.TemplateVectors(1)
Set Vs(1) = Ftj.TemplateVectors(2)
If Fti.Identify(Nothing, Vs, 2, 2 * PositionToleranceMM) Then
ValidateTemplate = False 'mtDifferentFacetsGeometryTooSimilar
If Not IsMissing(OutCompletionString) Then
OutCompletionString = "geometry of facets " & fi & " and " & fj & " too similar"
End If
Exit Function
End If
Next
Next
ValidateTemplate = True
End Function
*/
return true;
}