OCCT3D About OCCT
Open CASCADE Technology Reference Manual 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
BRepGraphInc::ParityOrientation Struct Reference

Persisted core-topology orientation stored as forward/reversed parity only. More...

#include <BRepGraphInc_ParityOrientation.hxx>

Public Member Functions

 ParityOrientation ()=default
 Constructs the parity wrapper from a core forward/reversed orientation.
 
 ParityOrientation (const TopAbs_Orientation theOrientation)
 Constructs the parity wrapper from a core forward/reversed orientation.
 
ParityOrientationoperator= (const TopAbs_Orientation theOrientation)
 Assigns a core forward/reversed orientation.
 
 operator TopAbs_Orientation () const
 Converts stored parity back to TopAbs_Orientation.
 

Data Fields

bool IsReversed = false
 Stored parity bit: false for TopAbs_FORWARD, true for TopAbs_REVERSED.
 

Detailed Description

Persisted core-topology orientation stored as forward/reversed parity only.

The wrapper keeps storage compact through one bool while remaining implicitly convertible to TopAbs_Orientation for existing orientation-facing codepaths.

Constructor & Destructor Documentation

◆ ParityOrientation() [1/2]

BRepGraphInc::ParityOrientation::ParityOrientation ( )
default

Constructs the parity wrapper from a core forward/reversed orientation.

◆ ParityOrientation() [2/2]

BRepGraphInc::ParityOrientation::ParityOrientation ( const TopAbs_Orientation theOrientation)
inline

Constructs the parity wrapper from a core forward/reversed orientation.

Member Function Documentation

◆ operator TopAbs_Orientation()

BRepGraphInc::ParityOrientation::operator TopAbs_Orientation ( ) const
inline

Converts stored parity back to TopAbs_Orientation.

◆ operator=()

ParityOrientation & BRepGraphInc::ParityOrientation::operator= ( const TopAbs_Orientation theOrientation)
inline

Assigns a core forward/reversed orientation.

Field Documentation

◆ IsReversed

bool BRepGraphInc::ParityOrientation::IsReversed = false

Stored parity bit: false for TopAbs_FORWARD, true for TopAbs_REVERSED.


The documentation for this struct was generated from the following file: