davedjohnson Posted July 30, 2005 Share Posted July 30, 2005 So if I'm using this fancy macro FOR_ALL_PRIMITIVES(gdp, prim), and inside the loop I want to do something to a GEO_Face, like say, pointInFace(), what is the syntax to convert the GEO_Primitive to a GEO_Face so's I can? Dave Quote Link to comment Share on other sites More sharing options...
George Posted July 30, 2005 Share Posted July 30, 2005 Something similar to this should work: GEO_Primitive *prim; GEO_Face *face; FOR_ALL_GROUP_PRIMITIVES(this, group, prim) { if (prim && (prim->getPrimitiveId() & GEOFACE)) { face = (GEO_Face *)prim; // use face here } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.