/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #include "MGCLStdAfx.h" #include "topo/HHisect_vector.h" #if defined(_DEBUG) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //MGHHisect_vector defines a vector of MGHHisect. //The vector is implemeted using STL's vector. //All the methods to handle the vector are available from the STL's vector class, //and public member m_HHivector. Refer to STL vector class. //MGHHisect_vector is used to represent intersection lines of a shell with //another shell, a face, or a surface. //The behavior of MGHHisect is like an auto_ptr. Copy or assignment //of MGHHisect means transfer of the ownership of all the included curves //to copied or assigned MGHHisect and original MGHHisect does not have the //ownership more. Users should be aware of this fact. // ////////// Constructor ////////// ////////// Operator overload. ////////// //Debug Function std::ostream& operator<< (std::ostream& out, const MGHHisect_vector& hhis){ int n=hhis.size(); out<<"MGHHisect_vector::number of isect="<