Getting material of a polygon, Component3D[solved]
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-30
10:47 AM
- last edited on
2023-08-07
11:01 AM
by
Doreena Deng
2006-10-30
10:47 AM
Hi
I have some problems getting the material of polygons right, here is how I do it(short version without any error handling):
//Jesper
I have some problems getting the material of polygons right, here is how I do it(short version without any error handling):
... attrib.header.typeID = API_MaterialID; for(j = 1; j <= nPolygons; j++) { component.header.typeID = API_PgonID; component.header.index = j; ACAPI_3D_GetComponent(&component); attrib.material.head.index = component.pgon.iumat; ACAPI_Attribute_Get (&attrib); Print(attrib.material.head.name);//prints wrong material name... } ...Can you spot where the problem is?
//Jesper
Labels:
- Labels:
-
Add-On (C++)
1 REPLY 1
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-11-03 03:18 PM
2006-11-03
03:18 PM
Found the answer here
http://archicad-talk.graphisoft.com/viewtopic.php?p=15862&highlight=iumat#15862
