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

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

SOLVED
K_V
Regular Member

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

 

 

 

 

 

 

 

 

 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
K_V
Regular Member
(in response to K_V)

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

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
Regular Member
(in response to K_V)

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

Anyone has any ideas ?

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

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

K_V
Regular Member
(in response to FV)

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

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.

 

Highlighted
K_V
Regular Member
(in response to K_V)

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

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