/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #include "MGCLStdAfx.h" #include "mg/Surface.h" #include "mg/Tolerance.h" #include "topo/Edge.h" #include "topo/LSPoint_vector.h" #if defined(_DEBUG) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif // MGLSPoint_vector defines a vector of MGLSPoint. // Used to represent intersection points of a loop and a surface. //////////Constructor/////////// //Copy Constructor. //MGLSPoint_vector(const MGLSPoint_vector& vec); // Destructor. //~MGLSPoint_vector(){;}; // Operator overload. //Debug Function std::ostream& operator<< (std::ostream& out, const MGLSPoint_vector& vec){ out<<"MGLSPoint_vector::"; int n=vec.entries(); out<<"number of points="<parameter_edge()) continue; MGVector Q=P-(itr->world_point()); if(Q%Q<=errorSqr) return false; } m_lspoints.push_back(lsp); return true; } // Adds the MGLSPoint_vector to the end of the vector. void MGLSPoint_vector::append(const MGLSPoint_vector& vec){ // Adds the MGLLisect_vector to the end of the list. const_LSiterator i; for(i=vec.m_lspoints.begin(); i!=vec.m_lspoints.end(); i++) append(*i); }