Open CASCADE Technology  7.6.0
Public Member Functions

HLRBRep_Data Class Reference

#include <HLRBRep_Data.hxx>

Inheritance diagram for HLRBRep_Data:
Inheritance graph
[legend]

Public Member Functions

 HLRBRep_Data (const Standard_Integer NV, const Standard_Integer NE, const Standard_Integer NF)
 Create an empty data structure of <NV> vertices, <NE> edges and <NF> faces. More...
 
void Write (const Handle< HLRBRep_Data > &DS, const Standard_Integer dv, const Standard_Integer de, const Standard_Integer df)
 Write <DS> in me with a translation of <dv>,<de>,<df>. More...
 
HLRBRep_Array1OfEDataEDataArray ()
 
HLRBRep_Array1OfFDataFDataArray ()
 
void Tolerance (const Standard_ShortReal tol)
 Set the tolerance for the rejections during the exploration. More...
 
Standard_ShortReal Tolerance () const
 returns the tolerance for the rejections during the exploration More...
 
void Update (const HLRAlgo_Projector &P)
 end of building of the Data and updating all the information linked to the projection. More...
 
HLRAlgo_ProjectorProjector ()
 
Standard_Integer NbVertices () const
 
Standard_Integer NbEdges () const
 
Standard_Integer NbFaces () const
 
TopTools_IndexedMapOfShapeEdgeMap ()
 
TopTools_IndexedMapOfShapeFaceMap ()
 
void InitBoundSort (const HLRAlgo_EdgesBlock::MinMaxIndices &MinMaxTot, const Standard_Integer e1, const Standard_Integer e2)
 to compare with only non rejected edges. More...
 
void InitEdge (const Standard_Integer FI, BRepTopAdaptor_MapOfShapeTool &MST)
 Begin an iteration only on visible Edges crossing the face number <FI>. More...
 
Standard_Boolean MoreEdge ()
 
void NextEdge (const Standard_Boolean skip=Standard_True)
 
Standard_Integer Edge () const
 Returns the current Edge. More...
 
Standard_Boolean HidingTheFace () const
 Returns true if the current edge to be hidden belongs to the hiding face. More...
 
Standard_Boolean SimpleHidingFace () const
 Returns true if the current hiding face is not an auto-intersected one. More...
 
void InitInterference ()
 Intersect the current Edge with the boundary of the hiding face. The interferences are given by the More, Next, and Value methods. More...
 
Standard_Boolean MoreInterference () const
 
void NextInterference ()
 
Standard_Boolean RejectedInterference ()
 Returns True if the interference is rejected. More...
 
Standard_Boolean AboveInterference ()
 Returns True if the rejected interference is above the face. More...
 
HLRAlgo_InterferenceInterference ()
 
void LocalLEGeometry2D (const Standard_Real Param, gp_Dir2d &Tg, gp_Dir2d &Nm, Standard_Real &Cu)
 Returns the local description of the projection of the current LEdge at parameter . More...
 
void LocalFEGeometry2D (const Standard_Integer FE, const Standard_Real Param, gp_Dir2d &Tg, gp_Dir2d &Nm, Standard_Real &Cu)
 Returns the local description of the projection of the current FEdge at parameter . More...
 
void EdgeState (const Standard_Real p1, const Standard_Real p2, TopAbs_State &stbef, TopAbs_State &staf)
 Returns the local 3D state of the intersection between the current edge and the current face at the <p1> and <p2> parameters. More...
 
Standard_Boolean EdgeOfTheHidingFace (const Standard_Integer E, const HLRBRep_EdgeData &ED) const
 Returns the true if the Edge <ED> belongs to the Hiding Face. More...
 
Standard_Integer HidingStartLevel (const Standard_Integer E, const HLRBRep_EdgeData &ED, const HLRAlgo_InterferenceList &IL)
 Returns the number of levels of hiding face above the first point of the edge <ED>. The InterferenceList is given to compute far away of the Interferences and then come back. More...
 
TopAbs_State Compare (const Standard_Integer E, const HLRBRep_EdgeData &ED)
 Returns the state of the Edge <ED> after classification. More...
 
TopAbs_State SimplClassify (const Standard_Integer E, const HLRBRep_EdgeData &ED, const Standard_Integer Nbp, const Standard_Real p1, const Standard_Real p2)
 Simple classification of part of edge [p1, p2]. Returns OUT if at least 1 of Nbp points of edge is out; otherwise returns IN. It is used to check "suspicion" hidden part of edge. More...
 
TopAbs_State Classify (const Standard_Integer E, const HLRBRep_EdgeData &ED, const Standard_Boolean LevelFlag, Standard_Integer &Level, const Standard_Real param)
 Classification of an edge. More...
 
Standard_Boolean IsBadFace () const
 Returns true if the current face is bad. More...
 
void Destroy ()
 
 ~HLRBRep_Data ()
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Constructor & Destructor Documentation

◆ HLRBRep_Data()

HLRBRep_Data::HLRBRep_Data ( const Standard_Integer  NV,
const Standard_Integer  NE,
const Standard_Integer  NF 
)

Create an empty data structure of <NV> vertices, <NE> edges and <NF> faces.

◆ ~HLRBRep_Data()

HLRBRep_Data::~HLRBRep_Data ( )
inline

Member Function Documentation

◆ AboveInterference()

Standard_Boolean HLRBRep_Data::AboveInterference ( )

Returns True if the rejected interference is above the face.

◆ Classify()

TopAbs_State HLRBRep_Data::Classify ( const Standard_Integer  E,
const HLRBRep_EdgeData ED,
const Standard_Boolean  LevelFlag,
Standard_Integer Level,
const Standard_Real  param 
)

Classification of an edge.

◆ Compare()

TopAbs_State HLRBRep_Data::Compare ( const Standard_Integer  E,
const HLRBRep_EdgeData ED 
)

Returns the state of the Edge <ED> after classification.

◆ Destroy()

void HLRBRep_Data::Destroy ( )

◆ EDataArray()

HLRBRep_Array1OfEData& HLRBRep_Data::EDataArray ( )

◆ Edge()

Standard_Integer HLRBRep_Data::Edge ( ) const

Returns the current Edge.

◆ EdgeMap()

TopTools_IndexedMapOfShape& HLRBRep_Data::EdgeMap ( )

◆ EdgeOfTheHidingFace()

Standard_Boolean HLRBRep_Data::EdgeOfTheHidingFace ( const Standard_Integer  E,
const HLRBRep_EdgeData ED 
) const

Returns the true if the Edge <ED> belongs to the Hiding Face.

◆ EdgeState()

void HLRBRep_Data::EdgeState ( const Standard_Real  p1,
const Standard_Real  p2,
TopAbs_State stbef,
TopAbs_State staf 
)

Returns the local 3D state of the intersection between the current edge and the current face at the <p1> and <p2> parameters.

◆ FaceMap()

TopTools_IndexedMapOfShape& HLRBRep_Data::FaceMap ( )

◆ FDataArray()

HLRBRep_Array1OfFData& HLRBRep_Data::FDataArray ( )

◆ HidingStartLevel()

Standard_Integer HLRBRep_Data::HidingStartLevel ( const Standard_Integer  E,
const HLRBRep_EdgeData ED,
const HLRAlgo_InterferenceList IL 
)

Returns the number of levels of hiding face above the first point of the edge <ED>. The InterferenceList is given to compute far away of the Interferences and then come back.

◆ HidingTheFace()

Standard_Boolean HLRBRep_Data::HidingTheFace ( ) const

Returns true if the current edge to be hidden belongs to the hiding face.

◆ InitBoundSort()

void HLRBRep_Data::InitBoundSort ( const HLRAlgo_EdgesBlock::MinMaxIndices MinMaxTot,
const Standard_Integer  e1,
const Standard_Integer  e2 
)

to compare with only non rejected edges.

◆ InitEdge()

void HLRBRep_Data::InitEdge ( const Standard_Integer  FI,
BRepTopAdaptor_MapOfShapeTool MST 
)

Begin an iteration only on visible Edges crossing the face number <FI>.

◆ InitInterference()

void HLRBRep_Data::InitInterference ( )

Intersect the current Edge with the boundary of the hiding face. The interferences are given by the More, Next, and Value methods.

◆ Interference()

HLRAlgo_Interference& HLRBRep_Data::Interference ( )

◆ IsBadFace()

Standard_Boolean HLRBRep_Data::IsBadFace ( ) const

Returns true if the current face is bad.

◆ LocalFEGeometry2D()

void HLRBRep_Data::LocalFEGeometry2D ( const Standard_Integer  FE,
const Standard_Real  Param,
gp_Dir2d Tg,
gp_Dir2d Nm,
Standard_Real Cu 
)

Returns the local description of the projection of the current FEdge at parameter .

◆ LocalLEGeometry2D()

void HLRBRep_Data::LocalLEGeometry2D ( const Standard_Real  Param,
gp_Dir2d Tg,
gp_Dir2d Nm,
Standard_Real Cu 
)

Returns the local description of the projection of the current LEdge at parameter .

◆ MoreEdge()

Standard_Boolean HLRBRep_Data::MoreEdge ( )

◆ MoreInterference()

Standard_Boolean HLRBRep_Data::MoreInterference ( ) const

◆ NbEdges()

Standard_Integer HLRBRep_Data::NbEdges ( ) const

◆ NbFaces()

Standard_Integer HLRBRep_Data::NbFaces ( ) const

◆ NbVertices()

Standard_Integer HLRBRep_Data::NbVertices ( ) const

◆ NextEdge()

void HLRBRep_Data::NextEdge ( const Standard_Boolean  skip = Standard_True)

◆ NextInterference()

void HLRBRep_Data::NextInterference ( )

◆ Projector()

HLRAlgo_Projector& HLRBRep_Data::Projector ( )

◆ RejectedInterference()

Standard_Boolean HLRBRep_Data::RejectedInterference ( )

Returns True if the interference is rejected.

◆ SimplClassify()

TopAbs_State HLRBRep_Data::SimplClassify ( const Standard_Integer  E,
const HLRBRep_EdgeData ED,
const Standard_Integer  Nbp,
const Standard_Real  p1,
const Standard_Real  p2 
)

Simple classification of part of edge [p1, p2]. Returns OUT if at least 1 of Nbp points of edge is out; otherwise returns IN. It is used to check "suspicion" hidden part of edge.

◆ SimpleHidingFace()

Standard_Boolean HLRBRep_Data::SimpleHidingFace ( ) const

Returns true if the current hiding face is not an auto-intersected one.

◆ Tolerance() [1/2]

Standard_ShortReal HLRBRep_Data::Tolerance ( ) const

returns the tolerance for the rejections during the exploration

◆ Tolerance() [2/2]

void HLRBRep_Data::Tolerance ( const Standard_ShortReal  tol)

Set the tolerance for the rejections during the exploration.

◆ Update()

void HLRBRep_Data::Update ( const HLRAlgo_Projector P)

end of building of the Data and updating all the information linked to the projection.

◆ Write()

void HLRBRep_Data::Write ( const Handle< HLRBRep_Data > &  DS,
const Standard_Integer  dv,
const Standard_Integer  de,
const Standard_Integer  df 
)

Write <DS> in me with a translation of <dv>,<de>,<df>.


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