cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to find the inner loop on a surface & more ?

K_V
6-Contributor
6-Contributor

How to find the inner loop on a surface & more ?

Hello, guys

 

I wanna ask whether there is any functions to get the handle of the inner loop on a surface, and if I got the handle of  the loop(edges),

 

can I directly know or use other functions to get the the handles of two surfaces next to the edge ?  

 

And further more, do you guys have any ideas on how to distinguish btwn convex & concave in 3D model ?

 

Thanks!

擷取.PNG

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
K_V
6-Contributor
6-Contributor
(To:K_V)

I think I found the solution to this,

 

firstly, use func ProSurfaceDataGet() to get surface data, 

 

then inside of the data "->data.p_surface_data->contour_arr[n]",

 

and n is the index number of contour this surface contains.

 

Then when "->data.p_surface_data->contour_arr[n].trav == PRO_CONTOUR_TRAV_INTERNAL"

 

you'll get the IDs array of the edges from that internal contour by "->data.p_surface_data->contour_arr[n].edge_id_arr"

 

View solution in original post

4 REPLIES 4
K_V
6-Contributor
6-Contributor
(To:K_V)

Anyone has any ideas ?

FV
17-Peridot
17-Peridot
(To:K_V)

look at testgeom.c in pt_examples. ProContour related functionality.

K_V
6-Contributor
6-Contributor
(To:FV)

Hello, @FV

 

I don't know what  testgeom.c is, am kind of new here.

 

But, I actually checked ProContour related functionality in TKUSE.pdf,

 

And what i  got is ProSurfaceDataGet() which u can know whether this surface contains any inner loops or not,

and edge_id_arr, but what I want is the edge Identifiers of inner contours instead of all.

 

K_V
6-Contributor
6-Contributor
(To:K_V)

I think I found the solution to this,

 

firstly, use func ProSurfaceDataGet() to get surface data, 

 

then inside of the data "->data.p_surface_data->contour_arr[n]",

 

and n is the index number of contour this surface contains.

 

Then when "->data.p_surface_data->contour_arr[n].trav == PRO_CONTOUR_TRAV_INTERNAL"

 

you'll get the IDs array of the edges from that internal contour by "->data.p_surface_data->contour_arr[n].edge_id_arr"

 

Top Tags