Celeritas 0.6.0-110+develop.c7dc37d1
|
Polygon bound by top/bottom z segments, one of which may be a single point. More...
#include <CsgTypes.hh>
Classes | |
struct | ZSegment |
Public Types | |
Type aliases | |
enum class | Variety { quad , pointy_top , pointy_bot } |
using | VecReal2 = std::vector< Real2 > |
Public Member Functions | |
SpecialTrapezoid (ZSegment &&bot, ZSegment &&top) | |
Construct from bottom/top z segments. | |
ZSegment const & | bot () const |
ACCESSORS ///. | |
ZSegment const & | top () const |
Get the top z segment. | |
Variety | variety () const |
Get the variety. | |
real_type | abs_tol () const |
Get the absolute tolerance for soft equality. | |
VecReal2 | unique_points () const |
Get the unique points in counterclockwise order, from the upper right. | |
Polygon bound by top/bottom z segments, one of which may be a single point.
Thus, valid polygons are:
1) quadrilaterals with two segments parallel to the z axis, 2) triangles with one segment parallel to the z axis.
ACCESSORS ///.
Get the bottom z segment