version 1.1 | | version 1.2 |
---|
| | |
* Functions to make faces planar and probably other things. | | * Functions to make faces planar and probably other things. |
* | | * |
* $Log$ | | * $Log$ |
* Revision 1.1 1999/06/14 22:03:05 donut | | * Revision 1.2 2003/03/09 06:34:09 donut |
* Initial revision | | * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned |
| | * |
| | * Revision 1.1.1.1 1999/06/14 22:03:05 donut |
| | * Import of d1x 1.37 source. |
* | | * |
* Revision 2.0 1995/02/27 11:36:25 john | | * Revision 2.0 1995/02/27 11:36:25 john |
* Version 2.0. Ansi-fied. | | * Version 2.0. Ansi-fied. |
| | |
// Return true if side is planar, else return false. | | // Return true if side is planar, else return false. |
int side_is_planar_p(segment *sp, int side) | | int side_is_planar_p(segment *sp, int side) |
{ | | { |
byte *vp; | | sbyte *vp; |
vms_vector *v0,*v1,*v2,*v3; | | vms_vector *v0,*v1,*v2,*v3; |
vms_vector va,vb; | | vms_vector va,vb; |
| | |
| | |
int make_curside_planar(void) | | int make_curside_planar(void) |
{ | | { |
int v; | | int v; |
byte *vp; | | sbyte *vp; |
vms_vector planar_verts[4]; // store coordinates of up to 4 vertices which will make Curside planar, corresponding to each of 4 vertices on side | | vms_vector planar_verts[4]; // store coordinates of up to 4 vertices which will make Curside planar, corresponding to each of 4 vertices on side |
int present_verts[4]; // set to 1 if vertex is present | | int present_verts[4]; // set to 1 if vertex is present |
| | |