Skip to content

Commit

Permalink
renames REF_GEOM_SOLID REF_GEOM_BODY
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Apr 27, 2021
1 parent 2b80637 commit 81ab385
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ref_egads.c
Expand Up @@ -2418,7 +2418,7 @@ REF_STATUS ref_egads_tolerance(REF_GEOM ref_geom, REF_INT type, REF_INT id,
objects = (ego *)(ref_geom->faces);
object = objects[id - 1];
break;
case REF_GEOM_SOLID:
case REF_GEOM_BODY:
object = (ego)(ref_geom->body);
break;
default:
Expand Down Expand Up @@ -3816,7 +3816,7 @@ REF_STATUS ref_egads_add_attribute(REF_GEOM ref_geom, REF_INT type, REF_INT id,
if (id < 1 || id > ref_geom->nface) return REF_INVALID;
object = ((ego *)(ref_geom->faces))[id - 1];
break;
case (REF_GEOM_SOLID):
case (REF_GEOM_BODY):
RNS(ref_geom->body, "body not loaded");
object = (ego)(ref_geom->body);
break;
Expand Down Expand Up @@ -3869,7 +3869,7 @@ REF_STATUS ref_egads_get_attribute(REF_GEOM ref_geom, REF_INT type, REF_INT id,
if (id < 1 || id > ref_geom->nface) return REF_INVALID;
object = ((ego *)(ref_geom->faces))[id - 1];
break;
case (REF_GEOM_SOLID):
case (REF_GEOM_BODY):
RNS(ref_geom->body, "body not loaded");
object = (ego)(ref_geom->body);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/ref_geom.h
Expand Up @@ -28,7 +28,7 @@ typedef REF_GEOM_STRUCT *REF_GEOM;
#define REF_GEOM_NODE (0)
#define REF_GEOM_EDGE (1)
#define REF_GEOM_FACE (2)
#define REF_GEOM_SOLID (3)
#define REF_GEOM_BODY (3)

#define REF_GEOM_DESCR_SIZE (6)
#define REF_GEOM_DESCR_TYPE (0)
Expand Down
4 changes: 2 additions & 2 deletions src/ref_geom_test.c
Expand Up @@ -300,8 +300,8 @@ int main(int argc, char *argv[]) {
REF_INT id = REF_EMPTY;
REF_INT min_id, max_id;
REF_DBL min_tol, max_tol;
RSS(ref_egads_tolerance(ref_geom, REF_GEOM_SOLID, id, &tol), "solid tol");
printf("%e solid tolerance\n", tol);
RSS(ref_egads_tolerance(ref_geom, REF_GEOM_BODY, id, &tol), "solid tol");
printf("%e body tolerance\n", tol);

min_id = REF_EMPTY;
max_id = REF_EMPTY;
Expand Down

0 comments on commit 81ab385

Please sign in to comment.