Home
Reply
Contributor
triet
Posts: 28

api_split_periodic_faces with option "new_periodic_splitting"

Hi,

 

I found a function api_split_periodic_faces that splits periodic faces. The document mentioned about the "new_periodic_splitting" but did not provide any sample code showing how to use it. There is a sample for scheme but not for C++ code.

Does anyone have the answer for this?

Thanks.

Manhtriet.

AR
Contributor
AR
Posts: 23

Re: api_split_periodic_faces with option "new_periodic_splitting"

Looks like new_periodic_splitting is a global option and not option for the API.

In that case, we should be able to set like any other global option.

 

 

option_header* new_periodic_splitting_option = NULL;
int prev_opt_value;
new_periodic_splitting_option = find_option("new_periodic_splitting");
if (new_periodic_splitting_option != NULL)
{
    prev_opt_value = new_periodic_splitting_option->count()
    new_periodic_splitting_option->set(2);
}

 

 

Contributor
triet
Posts: 28

Re: api_split_periodic_faces with option "new_periodic_splitting"

Thank you AR.

 

Manhtriet.