Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
38 Views

Gregory patch demo

 can Anybody give me some demo about the how to use Gregory patches ACC in the Embree.The Embree API seem don't provide the option for us,It use catmull-clark but without ACC option.

wish one can help me.

0 Kudos
4 Replies
Highlighted
Moderator
38 Views

Hi,

Could you provide some more details on what you want to achieve exactly? BTW: Embree's subdivision surface implementation uses Gregory patches to approximate irregular subdiv patches after an initial adaptive subdivision phase.

Thanks.

0 Kudos
Highlighted
Beginner
38 Views

Thank you for you reply,I read the source code about Embree,But in order to use the gregory patches I need to prepare some structure,like the half edge,But I don't find some API can help me to direct build the structure simple from a obj model.So my problem is can you give me some code about how to use gregory patch ACC method in Embree.

0 Kudos
Highlighted
Moderator
38 Views

The problem is the entire bspline and gregory patch generation is done internally within the Embree core and not exposed to the user. The user only provides the input mesh and the tessellation factors. I guess you want to convert everything to gregory patches and then export the data into your application, right? In this case OpenSubdiv library might be an easier option for you.

0 Kudos
Highlighted
Beginner
38 Views

Thank for you reply,I understand.

0 Kudos