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
cpp
PhysicalRegion(
const PhysicalRegion &
) =default
function PhysicalRegion
cpp
inline PhysicalRegion(
const Point & _min,
const Point & _max
)
function PhysicalRegion
cpp
inline PhysicalRegion()
function PhysicalRegion
cpp
PhysicalRegion(
std::string str
)
function operator==
cpp
inline bool operator==(
const PhysicalRegion & other
) const
function valid
cpp
inline bool valid() const
verified min/max do not create an inverted or an empty region
function origin
cpp
inline Point origin() const
function size
cpp
inline Point size() const
function shrink
cpp
PhysicalRegion & shrink(
const PhysicalRegion & other
)
shrink this region down to the smallest portions of both
function expand
cpp
PhysicalRegion & expand(
const PhysicalRegion & other
)
expand this region to include the largest portions of both
function expand
cpp
PhysicalRegion & expand(
const Point & pt
)
expand this region to include this point
function pad
cpp
PhysicalRegion & pad(
double padding
)
uniformly grows or shrinks the region by the specified amount
function to_string
cpp
std::string to_string() const
serialize to a string
Public Attributes Documentation
variable min
cpp
Point min;
variable max
cpp
Point max;
Updated on 2026-03-31 at 16:02:10 +0000