nicholas_yue Posted September 16, 2014 Share Posted September 16, 2014 Hi, I wrote a basic Mantra procedural to understand about querying geometry information from the host geo but am surprise that I get 72 primitive in an otherwise empty geo with just a SHOP_Network. I was expecting zero as the are no geometry SOP in the /obj/geo1 Where does the 72 primitive comes from ? const GU_Detail *gdp = VRAY_Procedural::queryGeometry(handle,0); if (gdp) { GA_Size primitiveCount = gdp->primitives().entries(); printf("Procedural \"%s\"'s primitive count = %d\n",VRAY_Procedural::queryName(handle), primitiveCount); for (GA_Offset primIndex = 0; primIndex < primitiveCount; ++primIndex) { printf("Primitive[%d] is of type %s\n",primIndex ,gdp->getPrimitiveList().get(primIndex)->getTypeName()); } } Print out looks like this: Procedural "/obj/geo1"'s primitive count = 72 Primitive[0] is of type Poly Primitive[1] is of type Poly Primitive[2] is of type Poly Cheers Quote Link to comment Share on other sites More sharing options...
crunch Posted September 16, 2014 Share Posted September 16, 2014 Hi, I wrote a basic Mantra procedural to understand about querying geometry information from the host geo but am surprise that I get 72 primitive in an otherwise empty geo with just a SHOP_Network. ... I believe vm_forcegeometry is on by default. So, the geometry for the procedural object will be sent down regardless. 1 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.