ckint_fac.c File Reference
intersect faces,edges UT2D_ckint_
More...
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "../ut/ut_geo.h"
Functions |
| int | UT2D_ckint_EdgFac_ (Point2 *f1, Point2 *f2, Point2 *f3, Point2 *e1, Point2 *e2) |
| int | UT2D_ckint_EdgFac2 (Point2 *f1, Point2 *f2, Point2 *f3, Point2 *e1, Point2 *e2) |
| int | UT2D_ckint_EdgFac1 (int *i11, int *i12, int *i21, int *i22, int *i31, int *i32) |
| int | UT2D_ckint_FacFac (Point2 *a1, Point2 *a2, Point2 *a3, Point2 *b1, Point2 *b2, Point2 *b3) |
Variables |
| static int | s1 |
| static int | s2 |
| static int | s3 |
Detailed Description
intersect faces,edges UT2D_ckint_
Function Documentation
UT2D_ck_intEdgFac_ check if Edge intersects Face
Face must be oriented CCW !
if Edge touches Face: no intersection !
if Edge lies on FaceEdge: is intersection !
Identical Points werden nicht getestet ! (vorher machen)
RetCod:
0: nein, Edge e1-e2 schneidet Face f1-f2-f3 NICHT
1: ja, Edge e1-e2 beruehrt eines der FaceEdges
2: ja, Edge e1-e2 liegt genau auf einem FaceEdge
3: ja, Edge e1-e2 liegt inside Face f1-f2-f3
| int UT2D_ckint_EdgFac1 |
( |
int * |
i11, |
|
|
int * |
i12, |
|
|
int * |
i21, |
|
|
int * |
i22, |
|
|
int * |
i31, |
|
|
int * |
i32 | |
|
) |
| | |
UT2D_ck_intEdgFac check if Edge intersects Face
Face must be oriented CCW !
if Edge touches Face: no intersection !
if Edge lies on FaceEdge: is intersection !
Identical Points werden nicht getestet ! (vorher machen)
RetCod:
0: nein, Face b schneidet Face a NICHT
1: ja, Face b beruehrt eines der FaceEdges
2: ja, Face b liegt genau auf einem FaceEdge
3: ja, Face b liegt inside Face a
Variable Documentation