BRL-CAD
bot_solidity.c File Reference
#include "bot_solidity.h"
#include <stdlib.h>
Include dependency graph for bot_solidity.c:

Go to the source code of this file.

Data Structures

struct  halfedge
 

Macros

#define EDGE_EQUAL(e1, e2)   (((e1).va == (e2).va) && ((e1).vb == (e2).vb))
 

Functions

HIDDEN int set_edge (struct halfedge *edge, int va, int vb)
 
HIDDEN int halfedge_compare (const void *pleft, const void *pright)
 
HIDDEN struct halfedgegenerate_edge_list (const struct rt_bot_internal *bot)
 
int gcv_bot_is_solid (const struct rt_bot_internal *bot)
 
int gcv_bot_is_closed_fan (const struct rt_bot_internal *bot)
 
int gcv_bot_is_orientable (const struct rt_bot_internal *bot)
 

Detailed Description

Functions for determining whether a BoT is solid.

Definition in file bot_solidity.c.

Macro Definition Documentation

#define EDGE_EQUAL (   e1,
  e2 
)    (((e1).va == (e2).va) && ((e1).vb == (e2).vb))

Definition at line 32 of file bot_solidity.c.

Referenced by gcv_bot_is_closed_fan(), gcv_bot_is_orientable(), and gcv_bot_is_solid().

Function Documentation

HIDDEN int set_edge ( struct halfedge edge,
int  va,
int  vb 
)

Definition at line 42 of file bot_solidity.c.

References halfedge::flipped, halfedge::va, and halfedge::vb.

Referenced by generate_edge_list().

HIDDEN int halfedge_compare ( const void *  pleft,
const void *  pright 
)

Definition at line 62 of file bot_solidity.c.

References halfedge::va, and halfedge::vb.

Referenced by generate_edge_list().

HIDDEN struct halfedge* generate_edge_list ( const struct rt_bot_internal *  bot)

Definition at line 73 of file bot_solidity.c.

References bu_calloc(), bu_free(), halfedge_compare(), and set_edge().

Referenced by gcv_bot_is_closed_fan(), gcv_bot_is_orientable(), and gcv_bot_is_solid().

Here is the call graph for this function:

int gcv_bot_is_solid ( const struct rt_bot_internal *  bot)

Definition at line 103 of file bot_solidity.c.

References bu_free(), EDGE_EQUAL, halfedge::flipped, and generate_edge_list().

Here is the call graph for this function:

int gcv_bot_is_closed_fan ( const struct rt_bot_internal *  bot)

Definition at line 142 of file bot_solidity.c.

References bu_free(), EDGE_EQUAL, and generate_edge_list().

Here is the call graph for this function:

int gcv_bot_is_orientable ( const struct rt_bot_internal *  bot)

Definition at line 175 of file bot_solidity.c.

References bu_free(), EDGE_EQUAL, halfedge::flipped, and generate_edge_list().

Here is the call graph for this function: