Remove references to old intersection implementation.
Signed-off-by: Bård Skaflestad <Bard.Skaflestad@sintef.no>
This commit is contained in:
committed by
Bård Skaflestad
parent
08f1e2e3e6
commit
ea6c01dd95
12
preprocess.c
12
preprocess.c
@@ -358,18 +358,14 @@ void process_horizontal_faces(int **intersections,
|
|||||||
pt holds coordinates to intersection between lines given by point
|
pt holds coordinates to intersection between lines given by point
|
||||||
numbers L[0]-L[1] and L[2]-L[3].
|
numbers L[0]-L[1] and L[2]-L[3].
|
||||||
*/
|
*/
|
||||||
#define OLD_INTERSECTION 0
|
|
||||||
static void approximate_intersection_pt(int *L, double *c, double *pt)
|
static void approximate_intersection_pt(int *L, double *c, double *pt)
|
||||||
{
|
{
|
||||||
double a;
|
double a;
|
||||||
double z0, z1, z2, z3;
|
double z0, z1, z2, z3;
|
||||||
#if OLD_INTERSECTION
|
|
||||||
#else
|
|
||||||
double b1, b2;
|
double b1, b2;
|
||||||
double x1, y1;
|
double x1, y1;
|
||||||
double x2, y2;
|
double x2, y2;
|
||||||
double z;
|
double z;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* no intersection on pillars expected here! */
|
/* no intersection on pillars expected here! */
|
||||||
assert(L[0]!=L[2]);
|
assert(L[0]!=L[2]);
|
||||||
@@ -387,12 +383,6 @@ static void approximate_intersection_pt(int *L, double *c, double *pt)
|
|||||||
a = 0;
|
a = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if OLD_INTERSECTION
|
|
||||||
pt[0] = c[3*L[0]+0]* (1.0-a) + c[3*L[1]+0]* a;
|
|
||||||
pt[1] = c[3*L[0]+1]* (1.0-a) + c[3*L[1]+1]* a;
|
|
||||||
pt[2] = c[3*L[0]+2]* (1.0-a) + c[3*L[1]+2]* a;
|
|
||||||
#else
|
|
||||||
/* the corresponding z-coordinate is */
|
/* the corresponding z-coordinate is */
|
||||||
z = z0* (1.0-a) + z1* a;
|
z = z0* (1.0-a) + z1* a;
|
||||||
|
|
||||||
@@ -416,7 +406,7 @@ static void approximate_intersection_pt(int *L, double *c, double *pt)
|
|||||||
pt[0] = x1* (1.0-a) + x2* a;
|
pt[0] = x1* (1.0-a) + x2* a;
|
||||||
pt[1] = y1* (1.0-a) + y2* a;
|
pt[1] = y1* (1.0-a) + y2* a;
|
||||||
pt[2] = z;
|
pt[2] = z;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------
|
/*-----------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user