PDA

View Full Version : Surface question.



ana027
10-30-2007, 03:06 PM
Hi all, at the moment I'm testing some code of lscript and I have a question.

In layout with the command info("Total Polygons: ", scene.totalpolygons); I can get the total polygons of the scene, and with looping statement and the order surfacename=Surface(); I can get the surfaces names and the total surfaces of the scene. I would like to know which surface has each polygon assign, but I don't know how can I do that. I know one form in modeler but I want to know if there is a form in layout.

Thanks.

jeremyhardin
10-31-2007, 12:14 AM
I don't think you can know which polygons have which surface in layout without parsing the object binary.

Sensei
10-31-2007, 02:30 PM
In Layout in LWSDK C/C++ code you can use LWMeshInfo->polTag() with LWPTAG_SURF parameter to obtain string name of surface.. I don't know whether LScript has equivalent..