tweak distances to match

This commit is contained in:
Trammell Hudson 2015-02-15 17:24:16 -05:00
parent 362f1bcc2e
commit f5f498010b
2 changed files with 5 additions and 5 deletions

View File

@ -121,14 +121,14 @@ main(void)
return EXIT_FAILURE; return EXIT_FAILURE;
const double thickness = 3; const double thickness = 3;
const double inset_dist = 2; const double inset_dist = 2;
const double hole_dist = 4; const double hole_dist = 6;
const double hole_rad = 3.0/2; const double hole_rad = 3.3/2;
const double hole_height = 40; const double hole_height = 40;
// for each vertex, find the coplanar triangles // for each vertex, find the coplanar triangles
// \todo: do coplanar bits // \todo: do coplanar bits
for(int i = 18 ; i < stl->num_vertex ; i++) for(int i = 0 ; i < stl->num_vertex ; i++)
{ {
const stl_vertex_t * const v = &stl->vertex[i]; const stl_vertex_t * const v = &stl->vertex[i];
const v3_t origin = v->p; const v3_t origin = v->p;

View File

@ -63,8 +63,8 @@ main(void)
stl_3d_t * const stl = stl_3d_parse(STDIN_FILENO); stl_3d_t * const stl = stl_3d_parse(STDIN_FILENO);
if (!stl) if (!stl)
return EXIT_FAILURE; return EXIT_FAILURE;
const double inset_distance = 8; const double inset_distance = 6;
const double hole_radius = 1.5; const double hole_radius = 3.0/2;
int * const face_used = calloc(sizeof(*face_used), stl->num_face); int * const face_used = calloc(sizeof(*face_used), stl->num_face);