Jump to content

Existence of primitive in empty procedural ?


Recommended Posts

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

 

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...