thanks TIG.
Now i must find a method for import all faces in correct wing order:
1)i see that there is a m_pMesh->GetPolygonPointIndex(m_nCurrPoly+1, m_nCurrPoint+1, &m_idx);
is sufficent have the correct indexes of the vertexes for import all in the correct windorder ?
2) or i must separate the importation of vertexes like the sketchup example SkpToXml of the sdk?
The sample project do that:
extract the loops
hr = pFace->get_Loops(&pLoops);
long nLoops;
hr = pLoops->get_Count(&nLoops);
//If this is a simple face (no loops)
if (nLoops==1){/////////////////////////////////////////////////////////////////is a simple face
//import vertex in counterclockwise order
CComPtr<ISkpLoop> pLoop;
hr = pFace->get_OuterLoop(&pLoop);
CComPtr<ISkpVertices> pVerts;
hr = pLoop->get_Vertices(&pVerts);
}
else ///////////////////////////////////////////////////////////////////is a complex face tessellate it with:
pFace->CreateMeshWithUVHelper(3, pUVHelper, &pMesh);
and imports vertex in clockwise order?????
//there i must place the m_pMesh->GetPolygonPointIndex??? and import in specific order????
ecc....
is sufficent????
Thanks a lot.