#include <GeoPrimitives.H>
Definition at line 1520 of file GeoPrimitives.H.
Definition at line 1540 of file GeoPrimitives.H.
References pi.
1542 std::vector<CPoint>::const_iterator
pi = v.begin();
1543 while(pi != v.end())
1544 this->push_back(*pi++);
Definition at line 1546 of file GeoPrimitives.H.
1548 std::vector<CPoint>::const_iterator fi =
face.begin();
1549 while(fi !=
face.end())
1550 this->push_back(*fi++);
bool contains_point |
( |
const CPoint & |
P | ) |
|
|
inline |
Definition at line 1580 of file GeoPrimitives.H.
References cimg_library::acos(), angle(), CPlane::contains_point(), GeoPrim::PI, GeoPrim::TOL, and v.
1582 CPlane plane((*
this)[0],(*
this)[1],(*
this)[2]);
1583 if(!(plane.contains_point(P)))
1585 std::vector<CPoint>::const_iterator fi = this->begin();
1590 while(fi != this->end()){
1592 angle +=
acos(
v*vp);
1596 angle +=
acos(vp*v1);
1597 return((fabs(angle) - 2*
PI) <=
TOL);
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
double angle(Vector_3< double > v1, Vector_3< double > v2)
Compute the angle between two vectors.
CImg< _cimg_Tfloat > acos(const CImg< T > &instance)
Definition at line 1552 of file GeoPrimitives.H.
1554 CVector v1((*
this)[0],(*
this)[1]);
1555 CVector v2((*
this)[0],(*
this)[2]);
Definition at line 1562 of file GeoPrimitives.H.
1565 std::vector<CPoint>::const_iterator fi =
face.begin();
1566 while(fi !=
face.end())
1567 this->push_back(*fi++);
bool operator== |
( |
const CFacet & |
face | ) |
const |
|
inline |
Definition at line 1570 of file GeoPrimitives.H.
1572 std::vector<CPoint>::const_iterator li = this->begin();
1573 std::vector<CPoint>::const_iterator fi =
face.begin();
1574 if(this->size() !=
face.size())
return false;
1575 while(li != this->end())
1576 if(!(*li++ == *fi++))
The documentation for this class was generated from the following file: