SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Structure to hold information about a portion of an edge-segment forming part of an output loop. More...
#include <Fragment.h>
Public Member Functions | |
smtk::model::Edge | edge () const |
bool | orientation () const |
internal::Point & | lo () |
const internal::Point & | lo () const |
internal::Point & | hi () |
const internal::Point & | hi () const |
RegionIdSet::value_type & | upperRegion () |
Return the ID of the region above the fragment. | |
RegionIdSet::value_type | upperRegion () const |
RegionIdSet::value_type & | lowerRegion () |
Return the ID of the region below the fragment. | |
RegionIdSet::value_type | lowerRegion () const |
RegionIdSet::value_type & | ccwRegion (bool fromLowerEnd) |
Return the ID of the region just counter-clockwise (CCW) of the fragment... More... | |
RegionIdSet::value_type | ccwRegion (bool fromLowerEnd) const |
RegionIdSet::value_type & | cwRegion (bool fromLowerEnd) |
Return the ID of the region just clockwise (CW) of the fragment... More... | |
RegionIdSet::value_type | cwRegion (bool fromLowerEnd) const |
FragmentId & | nextFragment (bool forwardDir) |
Return the next fragment bounding the region to the left of the fragment. | |
bool & | nextFragmentSense (bool forwardDir) |
void | mark (bool orientation, int markVal) |
Mark a co-fragment as visited (or not). | |
int | marked (bool orientation) const |
Return the markings on the forward (orientation true) or backward (false) co-fragment. | |
void | dump (RegionIdSet &ufind) const |
Debug dump of fragment. | |
Public Attributes | |
internal::Point | m_lo |
internal::Point | m_hi |
smtk::model::Edge | m_edge |
internal::EdgePtr | m_edgeData |
int | m_segment |
bool | m_sense |
RegionId | m_regionId [2] |
FragmentId | m_next [2] |
bool | m_nsns [2] |
int | m_marked [2] |
Structure to hold information about a portion of an edge-segment forming part of an output loop.
|
inline |
Return the ID of the region just counter-clockwise (CCW) of the fragment...
... when winding around the lower (fromLowerEnd is true) or upper (fromLowerEnd is false) endpoint of the fragment.
You can also think of fromLowerEnd as representing the orientation of the co-fragment you wish to consider; calling ccwRegion(false) returns ID of the region to the left of the reversed co-fragment (from hi() to lo()) while calling ccwRegion(true) returns ID of the region to the left of the forward co-fragment (from lo() to hi()).
|
inline |
Return the ID of the region just clockwise (CW) of the fragment...
... when winding around the lower (fromLowerEnd is true) or upper (fromLowerEnd is false) endpoint of the fragment.