Navigation
API > API/Runtime > API/Runtime/CADKernel > API/Runtime/CADKernel/FTopologicalLoop
Description
To check loop orientation, we check the orientation of the extremity points i.e. "o" points below o / \ / \ o o \ / \ / o
For these points, the slop is compute. If the slop is between 0 and 4, the loop at the point is well oriented otherwise not
The difficulties start when the slop is closed to 0 or 4 i.e. -----o-----
In this case, the orientation of the next segment is compare to the bounding box
The last very difficult case is a sharp case i.e. The slop is closed to 0 or 8, so it could be a pick in self intersecting. We try to recompute the slop a the closed point
| oO | O | |
| / | / | |
| o => | o | |
If the slop is still closed to 0 or 8, the point is "UndefinedOrientation" This case was found in the shape of char '1'
| Name | Orient |
| Type | function |
| Header File | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Topo/TopologicalLoop.h |
| Include Path | #include "Topo/TopologicalLoop.h" |
| Source | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Private/Topo/TopologicalLoop.cpp |
bool Orient()
false if the orientation is doubtful