Query regarding Trimmed and Untrimmed surfaces

Hi @psomesh94,

You can iterate through the Brep and find all of the trims that are used by the loop.

const ON_Brep* brep = ...;

for (int fi = 0; fi < brep->m_F.Count(); fi++)
{
  const ON_BrepFace& face = brep->m_F[fi];
  for (int li = 0; li < face.m_li.Count(); li++)
  {
    const ON_BrepLoop& loop = brep->m_L[face.m_li[li]];
    for (int ti = 0; ti < loop.m_ti.Count(); ti++)
    {
      const ON_BrepTrim& trim = brep->m_T[loop.m_ti[ti]];
      // todo...
    }
  }
}

Or am I not understanding your question?

– Dale