Skip to content

Commit 84bd28e

Browse files
ChristopherHoganstevengj
authored andcommitted
Format prism printing like other geometric objects (#24)
1 parent eff23c6 commit 84bd28e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

utils/geom.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,13 +2552,13 @@ void display_prism_info(int indentby, prism *prsm)
25522552
vector3 axis = prism_vector_p2c(prsm,z0);
25532553
vector3 center = prism_coordinate_p2c(prsm,vector3_scale(0.5*height,z0));
25542554

2555-
printf("%*s height %g, axis (%g,%g,%g), center (%g,%g,%g), %i vertices:\n",
2556-
indentby, "", height,axis.x,axis.y,axis.z,center.x,center.y,center.z,num_vertices);
2555+
printf("%*s height %g, axis (%g,%g,%g), %i vertices:\n",
2556+
indentby, "", height,axis.x,axis.y,axis.z,num_vertices);
25572557
matrix3x3 m_p2c = matrix3x3_inverse(prsm->m_c2p);
25582558
int nv;
25592559
for(nv=0; nv<num_vertices; nv++)
25602560
{ vector3 v = matrix3x3_vector3_mult(m_p2c, vertices[nv]);
2561-
printf("%*s {%e,%e,%e}\n",indentby,"",v.x,v.y,v.z);
2561+
printf("%*s {%g,%g,%g}\n",indentby,"",v.x,v.y,v.z);
25622562
}
25632563
}
25642564

0 commit comments

Comments
 (0)