//! between the current edge and the current face at the <br>
//! <p1> and <p2> parameters. <br>
Standard_EXPORT void EdgeState(const Standard_Real p1,const Standard_Real p2,TopAbs_State& stbef,TopAbs_State& staf) ;
- //! Returns the true if the Edge <ED> belongs to the <br>
+ //! Returns the true if the Edge <EData> belongs to the <br>
//! Hiding Face. <br>
- Standard_Boolean EdgeOfTheHidingFace(const Standard_Integer E,const HLRBRep_EdgeData& ED) const;
+ Standard_Boolean EdgeOfTheHidingFace(const Standard_Integer E,const HLRBRep_EdgeData& EData) const;
//! Returns the number of levels of hiding face above <br>
-//! the first point of the edge <ED>. The <br>
+//! the first point of the edge <EData>. The <br>
//! InterferenceList is given to compute far away of <br>
//! the Interferences and then come back. <br>
- Standard_EXPORT Standard_Integer HidingStartLevel(const Standard_Integer E,const HLRBRep_EdgeData& ED,const HLRAlgo_InterferenceList& IL) ;
- //! Returns the state of the Edge <ED> after <br>
+ Standard_EXPORT Standard_Integer HidingStartLevel(const Standard_Integer E,const HLRBRep_EdgeData& EData,const HLRAlgo_InterferenceList& IL) ;
+ //! Returns the state of the Edge <EData> after <br>
//! classification. <br>
- Standard_EXPORT TopAbs_State Compare(const Standard_Integer E,const HLRBRep_EdgeData& ED) ;
+ Standard_EXPORT TopAbs_State Compare(const Standard_Integer E,const HLRBRep_EdgeData& EData) ;
//! Simple classification of part of edge [p1, p2] <br>
//! returns OUT if at least 1 of Nbp points of edge is out <br>
//! othewise returns IN <br>
//! It is used to check "suspision" hided part of edge. <br>
- Standard_EXPORT TopAbs_State SimplClassify(const Standard_Integer E,const HLRBRep_EdgeData& ED,const Standard_Integer Nbp,const Standard_Real p1,const Standard_Real p2) ;
+ Standard_EXPORT TopAbs_State SimplClassify(const Standard_Integer E,const HLRBRep_EdgeData& EData,const Standard_Integer Nbp,const Standard_Real p1,const Standard_Real p2) ;
Standard_EXPORT void Destroy() ;
~HLRBRep_Data()
//! not Double and not IsoLine. <br>
Standard_EXPORT void OrientOthEdge(const Standard_Integer I,HLRBRep_FaceData& FD) ;
//! Classification of an edge. <br>
- Standard_EXPORT TopAbs_State Classify(const Standard_Integer E,const HLRBRep_EdgeData& ED,const Standard_Boolean LevelFlag,Standard_Integer& Level,const Standard_Real param) ;
+ Standard_EXPORT TopAbs_State Classify(const Standard_Integer E,const HLRBRep_EdgeData& EData,const Standard_Boolean LevelFlag,Standard_Integer& Level,const Standard_Real param) ;
//! Returns True if the intersection is rejected. <br>
Standard_EXPORT Standard_Boolean RejectedPoint(const IntRes2d_IntersectionPoint& PInter,const TopAbs_Orientation BoundOri,const Standard_Integer NumSeg) ;
//! returns True if there is a common vertex between <br>
inline Standard_Boolean
HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer E,
- const HLRBRep_EdgeData& ED) const
-{ return ED.HideCount() == myHideCount-1; }
+ const HLRBRep_EdgeData& EData) const
+{ return EData.HideCount() == myHideCount-1; }
Standard_EXPORT Standard_Boolean IsSuperUser() ;
//! Returns the 'Process Id' <br>
Standard_EXPORT Standard_Integer ProcessId() ;
+#ifdef WNT
//! Returns the current path where the process is. <br>
Standard_EXPORT OSD_Path CurrentDirectory() ;
+#endif
//! Changes the current process directory. <br>
Standard_EXPORT void SetCurrentDirectory(const OSD_Path& where) ;
//! Returns TRUE if an error occurs <br>
is static;
EdgeOfTheHidingFace(me; E : Integer from Standard;
- ED : EdgeData from HLRBRep)
+ EData : EdgeData from HLRBRep)
returns Boolean from Standard
- ---Purpose: Returns the true if the Edge <ED> belongs to the
+ ---Purpose: Returns the true if the Edge <EData> belongs to the
-- Hiding Face.
---C++: inline
is static;
HidingStartLevel(me : mutable; E : Integer from Standard;
- ED : EdgeData from HLRBRep;
+ EData : EdgeData from HLRBRep;
IL : InterferenceList from HLRAlgo)
returns Integer from Standard
---Purpose: Returns the number of levels of hiding face above
- -- the first point of the edge <ED>. The
+ -- the first point of the edge <EData>. The
-- InterferenceList is given to compute far away of
-- the Interferences and then come back.
is static;
Compare(me : mutable; E : Integer from Standard;
- ED : EdgeData from HLRBRep)
+ EData : EdgeData from HLRBRep)
returns State from TopAbs
- ---Purpose: Returns the state of the Edge <ED> after
+ ---Purpose: Returns the state of the Edge <EData> after
-- classification.
is static;
SimplClassify(me : mutable; E : Integer from Standard;
- ED : EdgeData from HLRBRep;
+ EData : EdgeData from HLRBRep;
Nbp : Integer from Standard;
p1, p2 : Real from Standard)
returns State from TopAbs;
is static private;
Classify(me : mutable; E : Integer from Standard;
- ED : EdgeData from HLRBRep;
+ EData : EdgeData from HLRBRep;
LevelFlag : Boolean from Standard;
Level : out Integer from Standard;
param : Real from Standard)
Standard_Integer
HLRBRep_Data::HidingStartLevel (const Standard_Integer E,
- const HLRBRep_EdgeData& ED,
+ const HLRBRep_EdgeData& EData,
const HLRAlgo_InterferenceList& IL)
{
Standard_Boolean Loop;
HLRAlgo_ListIteratorOfInterferenceList It;
- const HLRBRep_Curve& EC = ED.Geometry();
+ const HLRBRep_Curve& EC = EData.Geometry();
Standard_Real sta = EC.Parameter3d(EC.FirstParameter());
Standard_Real end = EC.Parameter3d(EC.LastParameter());
Standard_Real tolpar = (end - sta) * 0.01;
#ifdef DEB
TopAbs_State st =
#endif
- Classify(E,ED,Standard_True,level,param);
+ Classify(E,EData,Standard_True,level,param);
Loop = Standard_True;
It.Initialize(IL);
//=======================================================================
TopAbs_State HLRBRep_Data::Compare (const Standard_Integer E,
- const HLRBRep_EdgeData& ED)
+ const HLRBRep_EdgeData& EData)
{
Standard_Integer level;
Standard_Real parbid = 0;
- return Classify(E,ED,Standard_False,level,parbid);
+ return Classify(E,EData,Standard_False,level,parbid);
}
//=======================================================================
TopAbs_State
HLRBRep_Data::Classify (const Standard_Integer E,
- const HLRBRep_EdgeData& ED,
+ const HLRBRep_EdgeData& EData,
const Standard_Boolean LevelFlag,
Standard_Integer& Level,
const Standard_Real param)
Level = 0;
TopAbs_State state = TopAbs_OUT;
// Standard_Boolean rej = Standard_False;
- const HLRBRep_Curve& EC = ED.Geometry();
+ const HLRBRep_Curve& EC = EData.Geometry();
Standard_Real sta,xsta,ysta,zsta,end,xend,yend,zend;
- Standard_Real tol = (Standard_Real)(ED.Tolerance());
+ Standard_Real tol = (Standard_Real)(EData.Tolerance());
if (LevelFlag) {
sta = param;
//=======================================================================
TopAbs_State HLRBRep_Data::SimplClassify (const Standard_Integer E,
- const HLRBRep_EdgeData& ED,
+ const HLRBRep_EdgeData& EData,
const Standard_Integer Nbp,
const Standard_Real p1,
const Standard_Real p2)
Standard_Integer i;
TopAbs_State state = TopAbs_IN;
// Standard_Boolean rej = Standard_False;
- const HLRBRep_Curve& EC = ED.Geometry();
+ const HLRBRep_Curve& EC = EData.Geometry();
Standard_Real sta,xsta,ysta,zsta, dp;
- Standard_Real tol = (Standard_Real)(ED.Tolerance());
+ Standard_Real tol = (Standard_Real)(EData.Tolerance());
dp = (p2 - p1)/(Nbp+1);
inline Standard_Boolean
HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer E,
- const HLRBRep_EdgeData& ED) const
-{ return ED.HideCount() == myHideCount-1; }
+ const HLRBRep_EdgeData& EData) const
+{ return EData.HideCount() == myHideCount-1; }
{
Standard_Real p1,p2;
Standard_ShortReal t1,t2;
- HLRBRep_Array1OfEData& ED = myDS->EDataArray();
- HLRBRep_EdgeData& ed = ED(myDS->Edge());
+ HLRBRep_Array1OfEData& EData = myDS->EDataArray();
+ HLRBRep_EdgeData& ed = EData(myDS->Edge());
ed.Status().Bounds(p1,t1,p2,t2);
inter[0].Parameter(p1);
inter[0].Tolerance(t1);
}
-OSD_Path OSD_Process::CurrentDirectory(){
-char cwd[MAXPATHLEN+1] ;
-OSD_Path result;
-TCollection_AsciiString Name;
-
- if (!getcwd(cwd,MAXPATHLEN+1))
- myError.SetValue (errno, Iam, "Where");
- else {
- Name = cwd;
-
-// JPT : August,20 1993. This code has been replaced by #ifdef ... #endif
-// position = Name.SearchFromEnd(".");
-// if (position != -1){
-// Ext = Name;
-// Ext.Remove(1,position);
-// Name.Remove( position,Ext.Length()+1);
-// }
-// result.SetValues("","","","","",Name,Ext);
-// End
-
-#if defined(vax) || defined(__vms)
- Standard_Integer iDisk = Name.Search(":");
- if (iDisk){
- TCollection_AsciiString Disk;
- TCollection_AsciiString Directory;
- Disk = Name.SubString(1,iDisk-1);
- Directory = Name.SubString(iDisk+1,Name.Length());
- result.SetValues("","","",Disk,Directory,"","");
- }
-#else
- Name += TCollection_AsciiString("/");
- result = OSD_Path(Name);
- // result.SetValues("","","","",Name,"","");
-#endif
-
- }
-return (result);
-}
-
void OSD_Process::SetCurrentDirectory(const OSD_Path& where){
TCollection_AsciiString Name;