Home
Reply
Contributor
bryn
Posts: 20

Split surface if closed

Hi

 

I am wondering how I could

 

1) detect if (sur)face is closed

 

2) split it into sub(sur)faces, which are not closed

 

 

Regarding 1) I think I can use face->equation().closed_u/v(), where face is a FACE pointer.

 

 

Regarding 2) I have searched through the documentation/forum but am unsure what would be the most generic/robust way to do it.

 

How about splitting a surface by creating two intervals in u/v coordinates using subset_u/v(), and the creating two FACEs from the resulting surface instances?

Alternatively, maybe I could extract/create a wire along an iso-line of u or v (u/v_param_line()) and imprint it on the surface ...

 

Any hints/ideas would be welcome.

 

Thanks

Bryn

 

 

 

 

 

Regular Contributor
Vi2
Posts: 55

Re: Split surface if closed

I think that api_split_face is what you are looking for.

Contributor
bryn
Posts: 20

Re: Split surface if closed

Hi Vi2

 

Thanks. I tried it and it worked. Looking up the documentation I also found "api_split_periodic_faces", which is useful.

 

Thanks

Bryn