Message 1 of 1
any way to distinguish between an outer loop and an inner loop of AcdbHatch?

Not applicable
11-08-2011
12:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems that there is no extral information to distinguish between an outer loop and an inner loop of AcdbHatch.
AcdbHathc::
getLoopAt(
int loopIndex,
Adesk::Int32& loopType,
AcGeVoidPointerArray& edgePtrs,
AcGeIntArray& edgeTypes) const;
the param "loopType" can tell types like kDefault, kExternal, kPolyline, kDerived, kTextbox.
KExternal means an outer loop, do all the others types mean inner loops?
Dose AcdbHatch have some function like AcDbMPolygon::
getLoopDirection(
int lindex,
AcDbMPolygon::loopDir& dir) const;
dir can be
kExterior | 0 | Loop direction is counter-clockwise. |
kInterior | Loop direction is clockwise. | |
kAnnotation | Text. |