本文整理汇总了C++中Facet::isInBorder方法的典型用法代码示例。如果您正苦于以下问题:C++ Facet::isInBorder方法的具体用法?C++ Facet::isInBorder怎么用?C++ Facet::isInBorder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Facet
的用法示例。
在下文中一共展示了Facet::isInBorder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void AnalysisCriteria2::checkNeighbours(Edge edge,FacetDictionary *facetsDict, vector<int> *voidResult, int *facetsInVoid, float* volume, int* isInBorder){
if(edge.getLength() < minEdgeLength) return;
EdgeDictionary* edgesDict = facetsDict->getEdgeDictionary();
vector< int> facetsId = edge.getFacetsId();
// Get facets who share the same edge
for(vector<int>::iterator it = facetsId.begin(); it != facetsId.end(); ++it){
int facetId = *it;
Facet facet = facetsDict->getById(facetId);
// Algorithm's conditions for add facets in void result
if( (facetsInVoid[facetId] == 0) && // Facet not in a void
(facet.getLongestEdge() == edge.getLength()) && // Actual edge is one of the longest edge of the facet
(facet.getVolume()/(*volume)*100.0 >= minPercentVolume)
){
facetsInVoid[facetId] = 1; // Set facet in void
voidResult->push_back(facetId); // Add facet in result
(*volume) = (*volume) + facet.getVolume();
if(facet.isInBorder() == 1){
*isInBorder = 1;
}
int* edgesId = facet.getEdgesId();
for(int k = 0; k < 6 ; ++ k){
if(edgesId[k] != edge.getId()){
checkNeighbours(edgesDict->getById(edgesId[k]),facetsDict,voidResult,facetsInVoid,volume,isInBorder);
}
}
}
}
}