Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8674

Determine which BrepFace is on the left side of the BrepEdge

$
0
0

@Biljana wrote:

Hi all

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[0]].m_li;
int loopIndex2 = Brep->m_T[Brep->m_E[edgeIndex].m_ti[1]].m_li;
int rightFaceIndex = Brep->m_L[loopIndex1].m_fi;
int leftFaceIndex = Brep->m_L[loopIndex2].m_fi;

But it gives me bad results.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8674

Trending Articles