Skip to main content
1-Visitor
September 4, 2018
Solved

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

  • September 4, 2018
  • 2 replies
  • 2547 views

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

 

 

 

 

 

 

 

 

 

Best answer by 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"

 

2 replies

K_V1-VisitorAuthor
1-Visitor
September 5, 2018

Anyone has any ideas ?

September 5, 2018

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

K_V1-VisitorAuthor
1-Visitor
September 6, 2018

Hello, @FV_01

 

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_V1-VisitorAuthorAnswer
1-Visitor
September 6, 2018

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"