Home
Reply
Visitor
Posts: 1
0

Getting convexity of edges

I rewrote the code for determining convexity of edges as follows:

 

 

EDGE * e = NULL;
edge_list.init();
ENTITY_LIST temp_face_list;
int i = 0;
while (e = (EDGE*)edge_list.next()) {
printf("edge[%d] is %d. \n", i++, e->get_convexity());
temp_face_list.clear();
}
printf("\n");

 

I tried this code with SAT file that is cube, 10 X 10 X 10.

This gives me 9, twelve 9 s, which correspond to the number of edges of cube, instead of convex or concave.

Any clues on what this value 9 means? I looked up in the global function list and all they say is 

 

EDGE_cvty EDGE::get_convexity() const

Returns the convexity of this EDGE.

 

This, without any lists of types of returning value. So anyone please give me some clue on what this value 9 means? Thanks

Highlighted
Regular Contributor
Posts: 94
0

Re: Getting convexity of edges

enum EDGE_cvty
{
    EDGE_cvty_concave = 0,
    EDGE_cvty_tangent_concave = 1,
    EDGE_cvty_tangent = 2,  // dont know what sort
    EDGE_cvty_tangent_convex = 3,
    EDGE_cvty_convex  = 4,
    EDGE_cvty_knife_convex = 5,
    EDGE_cvty_knife = 6,   // dont know what sort
    EDGE_cvty_knife_concave = 7,
    EDGE_cvty_tangent_inflect = 8,  // here to keep symmetry as far as pos
    EDGE_cvty_unknown = 9,
    EDGE_cvty_mixed = 10
};