[ Converted text/html to text/plain ] A lot of the meaning depends directly on the format of the DXF format, and I personally am not familiar with it :( For example, the loop that increments each index doesn't make any sense out of context, and neither do the sign changes. However, the indices seem to be printed in a fan-like manner, starting from the first one, if that has any significance. >From: "Cortex" >Reply-To: [EMAIL PROTECTED] >To: >Subject: [hlcoders] VALVe : map to dxf... >Date: Mon, 7 Oct 2002 22:11:17 +0200 > >Hello, > >I'm trying to create a map to dxf converter, using the code that Valve gave >gratefully (http://www.coding.valve-erc.com) ;) But I don't understand the >LAST (!!) loop :( Here's the malicious piece of code :) : > > // triangulate each face and write > for(i = 0; i < m_nFaces; i++) > { > CSSFace &face = m_Faces[i]; > PINT pVerts = CreatePointIndexList(face); > > for(int v = 0; v < face.nEdges; v++) > pVerts[v]++; > > for(v = 0; v < face.nEdges-2; v++) > { > fprintf(stream, "0\nVERTEX\n8\n%s\n10\n0\n20\n0\n30\n" > "0\n70\n128\n71\n%d\n72\n%d\n73\n%d\n", szName, > v == 0 ? pVerts[0] : -pVerts[0], > pVerts[v+1], > v == (face.nEdges-3) ? pVerts[v+2] : -pVerts[v+2] > ); > } > } > >I only need more informations about the CSSFace class (the members), the >CreatePointIndexList and the calculation of the "nEdges" member of CSSFace >:) Then, I'll be able to understand what gets done, and be able to merge it >to my code. > >Thanks to anyone who could help me ;) > > - Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st ) > - email : [EMAIL PROTECTED] & ICQ : 71548738 > > > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, please visit: >http://list.valvesoftware.com/mailman/listinfo/hlcoders
------------------------------------------------------------------------------ MSN Photos is the easiest way to share and print your photos: Click Here[1] ===References:=== 1. http://g.msn.com/1HM1ENUS/c156??PI=44364 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders