本文整理汇总了C++中CLPoint::below方法的典型用法代码示例。如果您正苦于以下问题:C++ CLPoint::below方法的具体用法?C++ CLPoint::below怎么用?C++ CLPoint::below使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLPoint
的用法示例。
在下文中一共展示了CLPoint::below方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dropCutter
// call vertex, facet, and edge drop methods on input Triangle t
bool MillingCutter::dropCutter(CLPoint &cl, const Triangle &t) const {
bool facet, vertex, edge;
/* // alternative ordering of the tests:
if (cl.below(t))
vertexDrop(cl,t);
// optimisation: if we are now above the triangle we don't need facet and edge
if ( cl.below(t) ) {
facetDrop(cl,t);
edgeDrop(cl,t);
}*/
if (cl.below(t)) {
facet = facetDrop(cl,t);
if (!facet) {
vertex = vertexDrop(cl,t);
if ( cl.below(t) ) {
edge = edgeDrop(cl,t);
}
}
}
return ( facet || vertex || edge );
}
示例2: dropCutter
// call vertex, facet, and edge drop methods on input Triangle t
bool MillingCutter::dropCutter(CLPoint &cl, const Triangle &t) const {
bool facet, vertex, edge;
/* // alternative ordering of the tests:
if (cl.below(t))
vertexDrop(cl,t);
// optimisation: if we are now above the triangle we don't need facet and edge
if ( cl.below(t) ) {
facetDrop(cl,t);
edgeDrop(cl,t);
}*/
if (cl.below(t)) {
facet = facetDrop(cl,t); // if we make contact with the facet...
if (!facet) { // ...then we will not hit an edge/vertex, so don't check for that
vertex = vertexDrop(cl,t);
if ( cl.below(t) ) {
edge = edgeDrop(cl,t);
}
}
}
return ( facet || vertex || edge );
}
示例3: delete
// use OpenMP to share work between threads
void PointDropCutter::pointDropCutter1(CLPoint& clp) {
nCalls = 0;
int calls=0;
std::list<Triangle>* tris;
//tris=new std::list<Triangle>();
tris = root->search_cutter_overlap( cutter, &clp );
std::list<Triangle>::iterator it;
for( it=tris->begin(); it!=tris->end() ; ++it) { // loop over found triangles
if ( cutter->overlaps(clp,*it) ) { // cutter overlap triangle? check
if (clp.below(*it)) {
cutter->dropCutter(clp,*it);
++calls;
}
}
}
delete( tris );
nCalls = calls;
return;
}