-
Notifications
You must be signed in to change notification settings - Fork 1
/
geometry.h
30 lines (23 loc) · 1.01 KB
/
geometry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef GEOMETRY_H
#define GEOMETRY_H
#include "types.h"
#include "point.h"
#include "triangle.h"
bool MeetsBetaCondition(double sheetMin, double sheetMax,
double t1, double t2, double t3);
//void MakePolygon(Points const& planar_points, Polygon& outPolygon);
void MakeTriangles(VectorType const& /*normal*/,
Points const& planar_points,
TriangleBunch& outTriangles);
void planes_intersection_with_box(VectorType normal, PointType const& pt,
// front, lower left, and rear, upper right
PointType const& lo, PointType const& hi,
Points& intersections);
// pt
// Must stay in physical coords
VectorType transform_shift(PointType const& pt,
ImageType::SpacingType const& spacing);
// void pt_shift(PointType const& pt,
// ImageType::SpacingType const& spacing,
// VectorType& outShift);
#endif // GEOMETRY_H