/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #include "MGCLStdAfx.h" #include "mg/Position.h" #include "mg/Tolerance.h" #include "topo/LCisect.h" #if defined(_DEBUG) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif // //Define MGLCisect Class. //MGLCisect is to represent Loop and curve intersection point of //a parent face parameter space. //Holds (lp, t, uv), where lp=loop point, t=curve parameter value, and //uv=face aprameter value. ///////Constructor//////// MGLCisect::MGLCisect():m_t(0){;} /*MGLCisect::MGLCisect(int i, const MGCCisect isect) :m_i(i), m_isect(isect){;}*/ MGLCisect::MGLCisect( const MGLEPoint& lp, //loop's parameter with edge id. double t, //Curve's parameter value. const MGPosition& uv) //Face's parameter value(u,v) data. :m_lp(lp),m_t(t), m_uv(uv){;} ///////Operator oveload/////// bool MGLCisect::operator< (const MGLCisect& lci2)const{ if(m_lplci2.m_lp) return false; return m_t