shapeworks::PhysicalRegion
physical bounds of a 3d region of space
#include <Region.h>
Public Functions
Name | |
---|---|
PhysicalRegion(const PhysicalRegion & ) =default | |
PhysicalRegion(const Point & _min, const Point & _max) | |
PhysicalRegion() | |
PhysicalRegion(std::string str) | |
bool | operator==(const PhysicalRegion & other) const |
bool | valid() const verified min/max do not create an inverted or an empty region |
Point | origin() const |
Point | size() const |
PhysicalRegion & | shrink(const PhysicalRegion & other) shrink this region down to the smallest portions of both |
PhysicalRegion & | expand(const PhysicalRegion & other) expand this region to include the largest portions of both |
PhysicalRegion & | expand(const Point & pt) expand this region to include this point |
PhysicalRegion & | pad(double padding) uniformly grows or shrinks the region by the specified amount |
std::string | to_string() const serialize to a string |
Public Attributes
Name | |
---|---|
Point | min |
Point | max |
Public Functions Documentation
function PhysicalRegion
PhysicalRegion(
const PhysicalRegion &
) =default
function PhysicalRegion
inline PhysicalRegion(
const Point & _min,
const Point & _max
)
function PhysicalRegion
inline PhysicalRegion()
function PhysicalRegion
PhysicalRegion(
std::string str
)
function operator==
inline bool operator==(
const PhysicalRegion & other
) const
function valid
inline bool valid() const
verified min/max do not create an inverted or an empty region
function origin
inline Point origin() const
function size
inline Point size() const
function shrink
PhysicalRegion & shrink(
const PhysicalRegion & other
)
shrink this region down to the smallest portions of both
function expand
PhysicalRegion & expand(
const PhysicalRegion & other
)
expand this region to include the largest portions of both
function expand
PhysicalRegion & expand(
const Point & pt
)
expand this region to include this point
function pad
PhysicalRegion & pad(
double padding
)
uniformly grows or shrinks the region by the specified amount
function to_string
std::string to_string() const
serialize to a string
Public Attributes Documentation
variable min
Point min;
variable max
Point max;
Updated on 2024-03-17 at 12:58:44 -0600