I have one issue. I have ON_Brep object and I need to determine which face is on left side and which face is on right side of each BrepEdge (exept boundary edges) according to edge direction.
I tried in this way:
int loopIndex1 = Brep->m_T[Brep->m_E[edgeIndex].m_ti].m_li;
int loopIndex2 = Brep->m_T[Brep->m_E[edgeIndex].m_ti].m_li;
int rightFaceIndex = Brep->m_L[loopIndex1].m_fi;
int leftFaceIndex = Brep->m_L[loopIndex2].m_fi;
But it gives me bad results.