diff --git a/src/ApplicationFramework/TKBinL/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx b/src/ApplicationFramework/TKBinL/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx index a10b724495..be8054e527 100644 --- a/src/ApplicationFramework/TKBinL/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx +++ b/src/ApplicationFramework/TKBinL/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx @@ -549,10 +549,8 @@ void BinLDrivers_DocumentStorageDriver::WriteSection( // empty; should be redefined in subclasses } -//======================================================================= -// function : WriteShapeSection -// purpose : defines WriteShapeSection -//======================================================================= +//================================================================================================= + void BinLDrivers_DocumentStorageDriver::WriteShapeSection(BinLDrivers_DocumentSection& theSection, Standard_OStream& theOS, const TDocStd_FormatVersion theDocVer, diff --git a/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.cxx b/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.cxx index 65e556f516..029b6ed5ae 100644 --- a/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.cxx +++ b/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.cxx @@ -53,10 +53,7 @@ BinObjMgt_Persistent::BinObjMgt_Persistent() Init(); } -//======================================================================= -// function : Init -// purpose : Initializes me to reuse again -//======================================================================= +//================================================================================================= void BinObjMgt_Persistent::Init() { @@ -181,10 +178,7 @@ Standard_IStream& BinObjMgt_Persistent::Read(Standard_IStream& theIS) return theIS; } -//======================================================================= -// function : Destroy -// purpose : Frees the allocated memory -//======================================================================= +//================================================================================================= void BinObjMgt_Persistent::Destroy() { diff --git a/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx b/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx index 9fcb629fa6..46018fb517 100644 --- a/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx +++ b/src/ApplicationFramework/TKBinL/BinObjMgt/BinObjMgt_Persistent.lxx @@ -16,10 +16,7 @@ #define BP_HEADSIZE ((int)(3 * sizeof(int))) #define BP_PIECESIZE 102400 -//======================================================================= -// function : SetId -// purpose : Sets the Id of the object -//======================================================================= +//================================================================================================= inline void BinObjMgt_Persistent::SetId(const int theId) { @@ -37,10 +34,7 @@ inline void BinObjMgt_Persistent::SetTypeId(const int theTypeId) myStreamStart.Nullify(); } -//======================================================================= -// function : Id -// purpose : Returns the Id of the object -//======================================================================= +//================================================================================================= inline int BinObjMgt_Persistent::Id() const { @@ -57,30 +51,21 @@ inline int BinObjMgt_Persistent::TypeId() const return ((int*)myData(1))[0]; } -//======================================================================= -// function : Length -// purpose : Returns the length of data -//======================================================================= +//================================================================================================= inline int BinObjMgt_Persistent::Length() const { return mySize - BP_HEADSIZE; } -//======================================================================= -// function : operator << -// purpose : -//======================================================================= +//================================================================================================= inline Standard_OStream& operator<<(Standard_OStream& theOS, BinObjMgt_Persistent& theObj) { return theObj.Write(theOS); } -//======================================================================= -// function : operator >> -// purpose : -//======================================================================= +//================================================================================================= inline Standard_IStream& operator>>(Standard_IStream& theIS, BinObjMgt_Persistent& theObj) { diff --git a/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamingTool.cxx b/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamingTool.cxx index 6797c2ed06..d60d490123 100644 --- a/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamingTool.cxx +++ b/src/ApplicationFramework/TKCAF/TNaming/TNaming_NamingTool.cxx @@ -55,10 +55,7 @@ static void WriteS(const TopoDS_Shape& shape, const char* const filename) } #endif -//======================================================================= -// function : IsForbiden -// purpose : ANaming voir NamingTool -//======================================================================= +//================================================================================================= static bool IsForbiden(const NCollection_Map& Forbiden, const TDF_Label& Lab) { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx index d97eb505d9..4cee3747a9 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOMBasicString.cxx @@ -122,10 +122,7 @@ LDOMBasicString::~LDOMBasicString() } } -//======================================================================= -// function : operator = -// purpose : Assignment to NULL -//======================================================================= +//================================================================================================= LDOMBasicString& LDOMBasicString::operator=(const LDOM_NullPtr*) { @@ -136,10 +133,7 @@ LDOMBasicString& LDOMBasicString::operator=(const LDOM_NullPtr*) return *this; } -//======================================================================= -// function : operator = -// purpose : Assignment -//======================================================================= +//================================================================================================= LDOMBasicString& LDOMBasicString::operator=(const LDOMBasicString& anOther) { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicAttribute.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicAttribute.cxx index 49a53aac5c..50b3871ba7 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicAttribute.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicAttribute.cxx @@ -45,10 +45,7 @@ LDOM_BasicAttribute& LDOM_BasicAttribute::Create(const LDOMBasicString& return *aNewAtt; } -//======================================================================= -// function : operator = -// purpose : Assignment to NULL -//======================================================================= +//================================================================================================= LDOM_BasicAttribute& LDOM_BasicAttribute::operator=(const LDOM_NullPtr* aNull) { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicElement.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicElement.cxx index ee16d53b57..013df94086 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicElement.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicElement.cxx @@ -82,10 +82,7 @@ void LDOM_BasicElement::RemoveNodes() myFirstChild = nullptr; } -//======================================================================= -// function : operator = -// purpose : Nullify -//======================================================================= +//================================================================================================= LDOM_BasicElement& LDOM_BasicElement::operator=(const LDOM_NullPtr* aNull) { @@ -202,10 +199,7 @@ const LDOM_BasicAttribute* LDOM_BasicElement::GetFirstAttribute( return (LDOM_BasicAttribute*)aFirstAttr; } -//======================================================================= -// function : AddAttribute -// purpose : Add or replace an attribute -//======================================================================= +//================================================================================================= const LDOM_BasicNode* LDOM_BasicElement::AddAttribute(const LDOMBasicString& anAttrName, const LDOMBasicString& anAttrValue, diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicNode.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicNode.cxx index b2de739e68..2a76b6431c 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicNode.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicNode.cxx @@ -19,10 +19,7 @@ #include #include -//======================================================================= -// function : operator = -// purpose : Assignment -//======================================================================= +//================================================================================================= LDOM_BasicNode& LDOM_BasicNode::operator=(const LDOM_BasicNode& anOther) { @@ -31,10 +28,7 @@ LDOM_BasicNode& LDOM_BasicNode::operator=(const LDOM_BasicNode& anOther) return *this; } -//======================================================================= -// function : GetSibling -// purpose : also detaches NULL siblings -//======================================================================= +//================================================================================================= const LDOM_BasicNode* LDOM_BasicNode::GetSibling() const { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicText.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicText.cxx index 44d0919b13..a11da548e6 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicText.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_BasicText.cxx @@ -39,10 +39,7 @@ LDOM_BasicText& LDOM_BasicText::Create(const LDOM_Node::NodeType aType return *aNewText; } -//======================================================================= -// function : operator = -// purpose : Assignment to NULL -//======================================================================= +//================================================================================================= LDOM_BasicText& LDOM_BasicText::operator=(const LDOM_NullPtr* aNull) { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx index 7e3962765e..f433b0964c 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_CharacterData.cxx @@ -25,10 +25,7 @@ LDOM_CharacterData::LDOM_CharacterData(const LDOM_BasicText& aText { } -//======================================================================= -// function : operator = -// purpose : Nullify -//======================================================================= +//================================================================================================= LDOM_CharacterData& LDOM_CharacterData::operator=(const LDOM_NullPtr* theNull) { @@ -37,10 +34,7 @@ LDOM_CharacterData& LDOM_CharacterData::operator=(const LDOM_NullPtr* theNull) return *this; } -//======================================================================= -// function : operator = -// purpose : Assignment -//======================================================================= +//================================================================================================= LDOM_CharacterData& LDOM_CharacterData::operator=(const LDOM_CharacterData& theOther) = default; diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_Document.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_Document.cxx index d4f0d09dc1..830ca38d94 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_Document.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_Document.cxx @@ -129,10 +129,7 @@ LDOM_Comment LDOM_Document::createComment(const LDOMString& theData) return LDOM_Comment(aBasicText, myMemManager); } -//======================================================================= -// function : operator = -// purpose : Nullify -//======================================================================= +//================================================================================================= LDOM_Document& LDOM_Document::operator=(const LDOM_NullPtr*) { @@ -140,10 +137,7 @@ LDOM_Document& LDOM_Document::operator=(const LDOM_NullPtr*) return *this; } -//======================================================================= -// function : operator == -// purpose : Compare to NULL -//======================================================================= +//================================================================================================= bool LDOM_Document::operator==(const LDOM_NullPtr*) const { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_MemManager.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_MemManager.cxx index d7d5f54085..551f84996f 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_MemManager.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_MemManager.cxx @@ -125,10 +125,7 @@ LDOM_MemManager::HashTable::HashTable(/* const int aMask, */ } } -//======================================================================= -// function : Hash -// purpose : CRC-16 hash function -//======================================================================= +//================================================================================================= int LDOM_MemManager::HashTable::Hash(const char* aString, const int aLen) { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_Node.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_Node.cxx index 5a3b09f2a6..bd782d7818 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_Node.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_Node.cxx @@ -36,17 +36,11 @@ const LDOM_MemManager& LDOM_Node::getOwnerDocument() const return myDocument->Self(); } -//======================================================================= -// function : operator = -// purpose : Assignment -//======================================================================= +//================================================================================================= LDOM_Node& LDOM_Node::operator=(const LDOM_Node& theOther) = default; -//======================================================================= -// function : operator = -// purpose : Nullify -//======================================================================= +//================================================================================================= LDOM_Node& LDOM_Node::operator=(const LDOM_NullPtr* /*aNull*/) { @@ -63,10 +57,7 @@ bool LDOM_Node::isNull() const return myOrigin == nullptr || myOrigin->isNull(); } -//======================================================================= -// function : operator == -// purpose : Compare two Nodes -//======================================================================= +//================================================================================================= bool LDOM_Node::operator==(const LDOM_Node& anOther) const { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_NodeList.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_NodeList.cxx index 2aa6bfe7c2..52930cec0e 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_NodeList.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_NodeList.cxx @@ -60,10 +60,7 @@ LDOM_NodeList::~LDOM_NodeList() delete mySeq; } -//======================================================================= -// function : operator = -// purpose : Assignment -//======================================================================= +//================================================================================================= LDOM_NodeList& LDOM_NodeList::operator=(const LDOM_NodeList& theOther) { @@ -72,10 +69,7 @@ LDOM_NodeList& LDOM_NodeList::operator=(const LDOM_NodeList& theOther) return *this; } -//======================================================================= -// function : operator = -// purpose : Nullify -//======================================================================= +//================================================================================================= LDOM_NodeList& LDOM_NodeList::operator=(const LDOM_NullPtr*) { @@ -84,10 +78,7 @@ LDOM_NodeList& LDOM_NodeList::operator=(const LDOM_NullPtr*) return *this; } -//======================================================================= -// function : operator == -// purpose : -//======================================================================= +//================================================================================================= bool LDOM_NodeList::operator==(const LDOM_NullPtr*) const { diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlReader.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlReader.cxx index 625dd1fbe3..77abfe5e39 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlReader.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlReader.cxx @@ -78,10 +78,7 @@ LDOM_XmlReader::LDOM_XmlReader(const occ::handle& theDocument, { } -//======================================================================= -// function : ReadRecord -// purpose : Read a record from XML file -//======================================================================= +//================================================================================================= LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord(Standard_IStream& theIStream, LDOM_OSStream& theData, diff --git a/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlWriter.cxx b/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlWriter.cxx index 86b481f96c..e618a1b14d 100644 --- a/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlWriter.cxx +++ b/src/ApplicationFramework/TKCDF/LDOM/LDOM_XmlWriter.cxx @@ -321,10 +321,8 @@ void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const LDOM_Node& theNod } } -//======================================================================= -// function : -// purpose : Stream out an LDOMString -//======================================================================= +//================================================================================================= + void LDOM_XmlWriter::Write(Standard_OStream& theOStream, const LDOMBasicString& theString) { switch (theString.Type()) diff --git a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Driver.lxx b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Driver.lxx index 41d9f549ae..70fe33ca53 100644 --- a/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Driver.lxx +++ b/src/ApplicationFramework/TKLCAF/TFunction/TFunction_Driver.lxx @@ -14,10 +14,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//======================================================================= -// function : Label -// purpose : Returns the initialized label -//======================================================================= +//================================================================================================= inline TDF_Label TFunction_Driver::Label() const { diff --git a/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_Document.cxx b/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_Document.cxx index 7eac84b266..97dec7d21b 100644 --- a/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_Document.cxx +++ b/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_Document.cxx @@ -37,10 +37,8 @@ void StdLPersistent_Document::Write(StdObjMgt_WriteData& theWriteData) const theWriteData << myData; } -//======================================================================= -// function : PChildren -// purpose : Gets persistent child objects -//======================================================================= +//================================================================================================= + void StdLPersistent_Document::PChildren( StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const { diff --git a/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_HString.cxx b/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_HString.cxx index 4b13f904ea..5192cb04c3 100644 --- a/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_HString.cxx +++ b/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_HString.cxx @@ -74,10 +74,8 @@ TDF_Label StdLPersistent_HString::instance::Label( return aLabel; } -//======================================================================= -// function : AsciiString -// purpose : Get referenced ASCII string -//======================================================================= +//================================================================================================= + occ::handle StdLPersistent_HString::Ascii::AsciiString() const { return myValue; diff --git a/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_TreeNode.cxx b/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_TreeNode.cxx index cc4e30d94a..492a74939d 100644 --- a/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_TreeNode.cxx +++ b/src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_TreeNode.cxx @@ -32,10 +32,8 @@ void StdLPersistent_TreeNode::Write(StdObjMgt_WriteData& theWriteData) const theWriteData << myDynamicData->First << myNext << myDynamicData->TreeID; } -//======================================================================= -// function : PChildren -// purpose : Gets persistent child objects -//======================================================================= +//================================================================================================= + void StdLPersistent_TreeNode::PChildren( StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const { diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_Application.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_Application.cxx index c2ecb21641..d8ff59194a 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_Application.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_Application.cxx @@ -64,10 +64,7 @@ const char* TObj_Application::ResourcesName() return static_cast("TObj"); } -//======================================================================= -// function : SaveDocument -// purpose : Saving the OCAF document -//======================================================================= +//================================================================================================= bool TObj_Application::SaveDocument(const occ::handle& theSourceDoc, const TCollection_ExtendedString& theTargetFile) @@ -100,10 +97,7 @@ bool TObj_Application::SaveDocument(const occ::handle& theSour return !myIsError; } -//======================================================================= -// function : LoadDocument -// purpose : Loading the OCAF document -//======================================================================= +//================================================================================================= bool TObj_Application::LoadDocument(const TCollection_ExtendedString& theSourceFile, occ::handle& theTargetDoc) diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_Model.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_Model.cxx index 887c9b1da1..14989c7f7b 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_Model.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_Model.cxx @@ -83,10 +83,7 @@ void TObj_Model::CloseDocument(const occ::handle& theDoc) anApplication->Close(theDoc); } -//======================================================================= -// function : Load -// purpose : Loads the model from the file -//======================================================================= +//================================================================================================= bool TObj_Model::Load(const TCollection_ExtendedString& theFile) { @@ -325,10 +322,7 @@ bool TObj_Model::Save() return true; } -//======================================================================= -// function : SaveAs -// purpose : Save the model to a file -//======================================================================= +//================================================================================================= bool TObj_Model::SaveAs(const TCollection_ExtendedString& theFile) { @@ -375,10 +369,7 @@ bool TObj_Model::SaveAs(const TCollection_ExtendedString& theFile) return aStatus; } -//======================================================================= -// function : SaveAs -// purpose : Save the model to a stream -//======================================================================= +//================================================================================================= bool TObj_Model::SaveAs(Standard_OStream& theOStream) { @@ -756,10 +747,7 @@ void TObj_Model::AbortCommand() const GetDocument()->AbortCommand(); } -//======================================================================= -// function : IsModified -// purpose : Status of modification -//======================================================================= +//================================================================================================= bool TObj_Model::IsModified() const { @@ -767,10 +755,7 @@ bool TObj_Model::IsModified() const return aDoc.IsNull() ? false : aDoc->IsChanged(); } -//======================================================================= -// function : SetModified -// purpose : Status of modification -//======================================================================= +//================================================================================================= void TObj_Model::SetModified(const bool theModified) { diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx index a23b4d3e97..9643f0986f 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_Object.cxx @@ -1396,10 +1396,7 @@ int TObj_Object::GetTypeFlags() const return Visible; } -//======================================================================= -// function : GetDictionary -// purpose : default implementation -//======================================================================= +//================================================================================================= occ::handle TObj_Object::GetDictionary() const { diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx index 740df876b0..c02eba3a6d 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_Persistence.cxx @@ -18,10 +18,7 @@ #include #include -//======================================================================= -// function : getMapOfTypes -// purpose : Returns the map of types -//======================================================================= +//================================================================================================= NCollection_DataMap& TObj_Persistence::getMapOfTypes() { diff --git a/src/ApplicationFramework/TKTObj/TObj/TObj_TIntSparseArray.cxx b/src/ApplicationFramework/TKTObj/TObj/TObj_TIntSparseArray.cxx index 22bc9de7c1..ad7e8846bd 100644 --- a/src/ApplicationFramework/TKTObj/TObj/TObj_TIntSparseArray.cxx +++ b/src/ApplicationFramework/TKTObj/TObj/TObj_TIntSparseArray.cxx @@ -256,10 +256,7 @@ void TObj_TIntSparseArray::BeforeCommitTransaction() } } -//======================================================================= -// function : DeltaOnModification -// purpose : Applies aDelta to -//======================================================================= +//================================================================================================= void TObj_TIntSparseArray::DeltaOnModification(const occ::handle& theDelta) { diff --git a/src/ApplicationFramework/TKXml/XmlDrivers/XmlDrivers_DocumentStorageDriver.cxx b/src/ApplicationFramework/TKXml/XmlDrivers/XmlDrivers_DocumentStorageDriver.cxx index 7f4a2b126d..2b1f8b8d9e 100644 --- a/src/ApplicationFramework/TKXml/XmlDrivers/XmlDrivers_DocumentStorageDriver.cxx +++ b/src/ApplicationFramework/TKXml/XmlDrivers/XmlDrivers_DocumentStorageDriver.cxx @@ -41,10 +41,8 @@ occ::handle XmlDrivers_DocumentStorageDriver::AttributeDriv return XmlDrivers::AttributeDrivers(theMessageDriver); } -//======================================================================= -// function : WriteShapeSection -// purpose : Implements WriteShapeSection -//======================================================================= +//================================================================================================= + bool XmlDrivers_DocumentStorageDriver::WriteShapeSection( XmlObjMgt_Element& theElement, const TDocStd_FormatVersion theStorageFormatVersion, diff --git a/src/ApplicationFramework/TKXmlL/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx b/src/ApplicationFramework/TKXmlL/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx index d058ba6919..155bb33f1c 100644 --- a/src/ApplicationFramework/TKXmlL/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx +++ b/src/ApplicationFramework/TKXmlL/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx @@ -452,10 +452,8 @@ static void take_time(const int isReset, } #endif -//======================================================================= -// function : WriteShapeSection -// purpose : defines WriteShapeSection -//======================================================================= +//================================================================================================= + bool XmlLDrivers_DocumentStorageDriver::WriteShapeSection( XmlObjMgt_Element& /*theElement*/, const TDocStd_FormatVersion /*theStorageFormatVersion*/, diff --git a/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.cxx b/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.cxx index a3f087c9db..f390b63af6 100644 --- a/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.cxx +++ b/src/DataExchange/TKDEIGES/IGESControl/IGESControl_Reader.cxx @@ -117,12 +117,7 @@ int IGESControl_Reader::NbRootsForTransfer() // #### Remainder of methods to be reworked #### -//======================================================================= -// Function : PrintTransferInfo -// Purpose : Print statistics information on transfer using MoniTool message management -// Created : 18/01/98 DCE for S3767 -// Modified : -//======================================================================= +//================================================================================================= void IGESControl_Reader::PrintTransferInfo(const IFSelect_PrintFail failsonly, const IFSelect_PrintCount mode) const diff --git a/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_TopoCurve.cxx b/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_TopoCurve.cxx index 5ae9e1ce4a..a0f238fd61 100644 --- a/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_TopoCurve.cxx +++ b/src/DataExchange/TKDEIGES/IGESToBRep/IGESToBRep_TopoCurve.cxx @@ -333,10 +333,7 @@ TopoDS_Shape IGESToBRep_TopoCurve::TransferCompositeCurveGeneral( return res; } -//======================================================================= -// function : TransferCompositeCurve -// purpose : Implementation for 3d case -//======================================================================= +//================================================================================================= TopoDS_Shape IGESToBRep_TopoCurve::TransferCompositeCurve( const occ::handle& start) @@ -369,10 +366,7 @@ TopoDS_Shape IGESToBRep_TopoCurve::TransferCompositeCurve( return res; } -//======================================================================= -// function : Transfer2dCompositeCurve -// purpose : Implementation for 2d case -//======================================================================= +//================================================================================================= TopoDS_Shape IGESToBRep_TopoCurve::Transfer2dCompositeCurve( const occ::handle& start, diff --git a/src/DataExchange/TKDESTEP/RWStepAP214/RWStepAP214_ReadWriteModule.cxx b/src/DataExchange/TKDESTEP/RWStepAP214/RWStepAP214_ReadWriteModule.cxx index c5e7726961..49d43f36f4 100644 --- a/src/DataExchange/TKDESTEP/RWStepAP214/RWStepAP214_ReadWriteModule.cxx +++ b/src/DataExchange/TKDESTEP/RWStepAP214/RWStepAP214_ReadWriteModule.cxx @@ -4812,10 +4812,7 @@ int RWStepAP214_ReadWriteModule::CaseStep( return 0; } -//======================================================================= -// function : IsComplex -// purpose : External Mapping Recognition -//======================================================================= +//================================================================================================= bool RWStepAP214_ReadWriteModule::IsComplex(const int CN) const { diff --git a/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_UnitContext.cxx b/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_UnitContext.cxx index e6fc973db8..93166f902e 100644 --- a/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_UnitContext.cxx +++ b/src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_UnitContext.cxx @@ -203,10 +203,7 @@ occ::handle return GRC; } -// ========================================================================== -// Method : ConvertSiPrefix -// Purpose : Computes SiPrefix conversion -// ========================================================================== +//================================================================================================= double STEPConstruct_UnitContext::ConvertSiPrefix(const StepBasic_SiPrefix aPrefix) { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Builder.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Builder.cxx index a7e454203f..b170f27d7f 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Builder.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Builder.cxx @@ -114,10 +114,8 @@ StepToTopoDS_Builder::StepToTopoDS_Builder() done = false; } -// ============================================================================ -// Method : Init -// Purpose : Init with a ManifoldSolidBrep -// ============================================================================ +//================================================================================================= + void StepToTopoDS_Builder::Init(const occ::handle& theManifoldSolid, const occ::handle& theTP, const StepData_Factors& theLocalFactors, @@ -176,10 +174,8 @@ void StepToTopoDS_Builder::Init(const occ::handle& ResetPreci(aStepModel, aSolid, MaxTol()); } -// ============================================================================ -// Method : Init -// Purpose : Init with a BrepWithVoids -// ============================================================================ +//================================================================================================= + void StepToTopoDS_Builder::Init(const occ::handle& theBRepWithVoids, const occ::handle& theTP, const StepData_Factors& theLocalFactors, @@ -271,10 +267,8 @@ void StepToTopoDS_Builder::Init(const occ::handle& th ResetPreci(aStepModel, aSolid, MaxTol()); } -// ============================================================================ -// Method : Init -// Purpose : Init with a FacetedBrep -// ============================================================================ +//================================================================================================= + void StepToTopoDS_Builder::Init(const occ::handle& theFB, const occ::handle& theTP, const StepData_Factors& theLocalFactors, @@ -634,10 +628,8 @@ void StepToTopoDS_Builder::Init(const occ::handle //: GeometricSet diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Tool.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Tool.cxx index 28aa15d327..8c47a869d3 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Tool.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_Tool.cxx @@ -184,10 +184,7 @@ bool StepToTopoDS_Tool::ComputePCurve() const return myComputePC; } -// ============================================================================ -// Method : StepToTopoDS_Tool::TransientProcess -// Purpose : Returns the TransientProcess -// ============================================================================ +//================================================================================================= occ::handle StepToTopoDS_Tool::TransientProcess() const { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx index 8d5e5b76e0..92126abf13 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx @@ -562,10 +562,7 @@ occ::handle StepToTopoDS_TranslateEdge::MakePCurve( return C2d; } -// ============================================================================ -// Method : Value -// Purpose : Returns the mapped edge -// ============================================================================ +//================================================================================================= const TopoDS_Shape& StepToTopoDS_TranslateEdge::Value() const { @@ -573,10 +570,7 @@ const TopoDS_Shape& StepToTopoDS_TranslateEdge::Value() const return myResult; } -// ============================================================================ -// Method : Error -// Purpose : Returns the error code -// ============================================================================ +//================================================================================================= StepToTopoDS_TranslateEdgeError StepToTopoDS_TranslateEdge::Error() const { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx index 13387b8f65..a5ac6e105f 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx @@ -802,10 +802,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const occ::handle return; } -// ============================================================================ -// Method : Value -// Purpose : Return the mapped Shape -// ============================================================================ +//================================================================================================= const TopoDS_Shape& StepToTopoDS_TranslateEdgeLoop::Value() const { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateFace.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateFace.cxx index 86776248fc..c0d2a26797 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateFace.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateFace.cxx @@ -234,10 +234,8 @@ static void SetTriangles( } } -// ============================================================================ -// Method : GetSimpleFaceElements -// Purpose : Get elements from simple face -// ============================================================================ +//================================================================================================= + template static void GetSimpleFaceElements(const Type& theFace, occ::handle>& theNodes, @@ -297,10 +295,8 @@ static void GetComplexFaceElements( } } -// ============================================================================ -// Method : CreatePolyTriangulation -// Purpose : Create PolyTriangulation -// ============================================================================ +//================================================================================================= + static occ::handle CreatePolyTriangulation( const occ::handle& theTI, const StepData_Factors& theLocalFactors) @@ -896,10 +892,8 @@ occ::handle StepToTopoDS_TranslateFace::createMesh( return CreatePolyTriangulation(theTI, theLocalFactors); } -// ============================================================================ -// Method : Value -// Purpose : Return the mapped Shape -// ============================================================================ +//================================================================================================= + const TopoDS_Shape& StepToTopoDS_TranslateFace::Value() const { StdFail_NotDone_Raise_if(!done, "StepToTopoDS_TranslateFace::Value() - no result"); diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateShell.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateShell.cxx index c603d94204..30887ade54 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateShell.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateShell.cxx @@ -205,10 +205,7 @@ void StepToTopoDS_TranslateShell::Init(const occ::handle& aVertex, StepToTopoDS_Tool& aTool, @@ -129,10 +126,7 @@ void StepToTopoDS_TranslateVertex::Init(const occ::handle& aVe done = true; } -// ============================================================================ -// Method : Value -// Purpose : Return the mapped Shape -// ============================================================================ +//================================================================================================= const TopoDS_Shape& StepToTopoDS_TranslateVertex::Value() const { diff --git a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateVertexLoop.cxx b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateVertexLoop.cxx index 1e5313a978..54d743fb49 100644 --- a/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateVertexLoop.cxx +++ b/src/DataExchange/TKDESTEP/StepToTopoDS/StepToTopoDS_TranslateVertexLoop.cxx @@ -112,10 +112,7 @@ void StepToTopoDS_TranslateVertexLoop::Init(const occ::handle& VrmlData_IndexedLineSet::TShape() return myTShape; } -//======================================================================= -// function : Clone -// purpose : Create a copy of this node -//======================================================================= +//================================================================================================= occ::handle VrmlData_IndexedLineSet::Clone( const occ::handle& theOther) const diff --git a/src/DataExchange/TKDEVRML/VrmlData/VrmlData_Node.cxx b/src/DataExchange/TKDEVRML/VrmlData/VrmlData_Node.cxx index f9e057d853..083b796211 100644 --- a/src/DataExchange/TKDEVRML/VrmlData/VrmlData_Node.cxx +++ b/src/DataExchange/TKDEVRML/VrmlData/VrmlData_Node.cxx @@ -62,10 +62,7 @@ VrmlData_Node::VrmlData_Node(const VrmlData_Scene& theScene, const char* theName setName(theName); } -//======================================================================= -// function : Clone -// purpose : Create a copy of this node. -//======================================================================= +//================================================================================================= occ::handle VrmlData_Node::Clone(const occ::handle& theOther) const { diff --git a/src/DataExchange/TKDEVRML/VrmlData/VrmlData_WorldInfo.cxx b/src/DataExchange/TKDEVRML/VrmlData/VrmlData_WorldInfo.cxx index acb1dfc920..1cea9aeb61 100644 --- a/src/DataExchange/TKDEVRML/VrmlData/VrmlData_WorldInfo.cxx +++ b/src/DataExchange/TKDEVRML/VrmlData/VrmlData_WorldInfo.cxx @@ -35,10 +35,7 @@ VrmlData_WorldInfo::VrmlData_WorldInfo(const VrmlData_Scene& theScene, SetTitle(theTitle); } -//======================================================================= -// function : SetTitle -// purpose : Set or modify the title. -//======================================================================= +//================================================================================================= void VrmlData_WorldInfo::SetTitle(const char* theString) { @@ -74,10 +71,7 @@ void VrmlData_WorldInfo::AddInfo(const char* theString) } } -//======================================================================= -// function : Clone -// purpose : Create a copy of this node -//======================================================================= +//================================================================================================= occ::handle VrmlData_WorldInfo::Clone( const occ::handle& theOther) const diff --git a/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyGraph.cxx b/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyGraph.cxx index 1102664250..e714f0b68c 100644 --- a/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyGraph.cxx +++ b/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyGraph.cxx @@ -197,10 +197,7 @@ void XCAFDoc_AssemblyGraph::addComponents(const TDF_Label& theParent, const int } } -// ======================================================================= -// function : addNode -// purpose : Adds node into the graph -// ======================================================================= +//================================================================================================= int XCAFDoc_AssemblyGraph::addNode(const TDF_Label& theLabel, const int theParentId) { diff --git a/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyIterator.cxx b/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyIterator.cxx index 43c72edcdd..c8805a407c 100644 --- a/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyIterator.cxx +++ b/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_AssemblyIterator.cxx @@ -24,10 +24,7 @@ #include #include -// ======================================================================= -// function : XCAFDoc_AssemblyIterator constructor -// purpose : Starts from free shapes -// ======================================================================= +//================================================================================================= XCAFDoc_AssemblyIterator::XCAFDoc_AssemblyIterator(const occ::handle& theDoc, const int theLevel) @@ -112,10 +109,7 @@ bool XCAFDoc_AssemblyIterator::More() const return !myFringe.IsEmpty(); } -// ======================================================================= -// function : Next -// purpose : Moves to the next position -// ======================================================================= +//================================================================================================= void XCAFDoc_AssemblyIterator::Next() { @@ -156,10 +150,7 @@ void XCAFDoc_AssemblyIterator::Next() } } -// ======================================================================= -// function : Current -// purpose : Returns current assembly item -// ======================================================================= +//================================================================================================= XCAFDoc_AssemblyItemId XCAFDoc_AssemblyIterator::Current() const { diff --git a/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_Editor.cxx b/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_Editor.cxx index 2066fca313..52e8b215f5 100644 --- a/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_Editor.cxx +++ b/src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_Editor.cxx @@ -56,10 +56,8 @@ #include #include -//======================================================================= -// function : Expand -// purpose : Convert Shape to assembly -//======================================================================= +//================================================================================================= + bool XCAFDoc_Editor::Expand(const TDF_Label& theDoc, const TDF_Label& theShape, const bool theRecursively) diff --git a/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx b/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx index 85d30ab8d0..1659bb13db 100644 --- a/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx +++ b/src/DataExchange/TKXSBase/MoniTool/MoniTool_Timer.cxx @@ -74,10 +74,7 @@ occ::handle MoniTool_Timer::Timer(const char* const name) return MT; } -//======================================================================= -// function : ClearTimers -// purpose : Clears all the map of timers -//======================================================================= +//================================================================================================= void MoniTool_Timer::ClearTimers() { diff --git a/src/Draw/TKDCAF/DDF/DDF_Browser.cxx b/src/Draw/TKDCAF/DDF/DDF_Browser.cxx index 89e69c6eb4..afadfa35ed 100644 --- a/src/Draw/TKDCAF/DDF/DDF_Browser.cxx +++ b/src/Draw/TKDCAF/DDF/DDF_Browser.cxx @@ -235,10 +235,7 @@ TCollection_AsciiString DDF_Browser::OpenAttribute(const int anIndex) return list; } -//======================================================================= -// function : Information -// purpose : Information about . -//======================================================================= +//================================================================================================= TCollection_AsciiString DDF_Browser::Information() const { @@ -246,10 +243,7 @@ TCollection_AsciiString DDF_Browser::Information() const return list; } -//======================================================================= -// function : Information -// purpose : Information about a label. -//======================================================================= +//================================================================================================= TCollection_AsciiString DDF_Browser::Information(const TDF_Label& /*aLab*/) const { diff --git a/src/Draw/TKDCAF/DDF/DDF_DataCommands.cxx b/src/Draw/TKDCAF/DDF/DDF_DataCommands.cxx index 10605ede0e..a7b1d8edc9 100644 --- a/src/Draw/TKDCAF/DDF/DDF_DataCommands.cxx +++ b/src/Draw/TKDCAF/DDF/DDF_DataCommands.cxx @@ -43,10 +43,7 @@ #include #include -//======================================================================= -// function : MakeDF -// purpose : Creates a new data framework. -//======================================================================= +//================================================================================================= static int MakeDF(Draw_Interpretor& di, int n, const char** a) { @@ -73,10 +70,7 @@ static int MakeDF(Draw_Interpretor& di, int n, const char** a) return 0; } -//======================================================================= -// function : ClearDF -// purpose : Creates a new data framework. -//======================================================================= +//================================================================================================= static int ClearDF(Draw_Interpretor& di, int n, const char** a) diff --git a/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx b/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx index 678b8384e6..fda7206513 100644 --- a/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx +++ b/src/Draw/TKDCAF/DDF/DDF_TransactionCommands.cxx @@ -106,10 +106,7 @@ static int CommitTran(Draw_Interpretor& di, int n, const char** a) return 0; } -//======================================================================= -// function : CurrentTran -// purpose : Current transaction number. -//======================================================================= +//================================================================================================= static int CurrentTran(Draw_Interpretor& di, int n, const char** a) { diff --git a/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx b/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx index fddb243a71..275610e239 100644 --- a/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx +++ b/src/Draw/TKDCAF/DDataStd/DDataStd_DrawPresentation.cxx @@ -105,10 +105,7 @@ void DDataStd_DrawPresentation::Update(const TDF_Label& L) } } -//======================================================================= -// function : GetID -// purpose : idem GUID DDataStd Display -//======================================================================= +//================================================================================================= const Standard_GUID& DDataStd_DrawPresentation::GetID() { diff --git a/src/Draw/TKDCAF/DDocStd/DDocStd.cxx b/src/Draw/TKDCAF/DDocStd/DDocStd.cxx index e42c5d5a6d..88a13a47b4 100644 --- a/src/Draw/TKDCAF/DDocStd/DDocStd.cxx +++ b/src/Draw/TKDCAF/DDocStd/DDocStd.cxx @@ -78,10 +78,7 @@ bool DDocStd::GetDocument(const char*& Name, return false; } -//======================================================================= -// function : Label -// purpose : try to retrieve a label -//======================================================================= +//================================================================================================= bool DDocStd::Find(const occ::handle& D, const char* const Entry, @@ -95,10 +92,7 @@ bool DDocStd::Find(const occ::handle& D, return !Label.IsNull(); } -//======================================================================= -// function : Find -// purpose : Try to retrieve an attribute. -//======================================================================= +//================================================================================================= bool DDocStd::Find(const occ::handle& D, const char* const Entry, diff --git a/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx b/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx index 99ccf7a738..4bef8ce7a9 100644 --- a/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx +++ b/src/Draw/TKDCAF/DDocStd/DDocStd_MTMCommands.cxx @@ -153,10 +153,7 @@ static int mtmDump(Draw_Interpretor& di, int /*n*/, const char** /*a*/) return 0; } -//======================================================================= -// function : mtmUndo -// purpose : undos last transaction -//======================================================================= +//================================================================================================= static int mtmUndo(Draw_Interpretor& di, int /*n*/, const char** /*a*/) { @@ -169,10 +166,7 @@ static int mtmUndo(Draw_Interpretor& di, int /*n*/, const char** /*a*/) return 0; } -//======================================================================= -// function : mtmRedo -// purpose : redos last transaction -//======================================================================= +//================================================================================================= static int mtmRedo(Draw_Interpretor& di, int /*n*/, const char** /*a*/) { @@ -185,10 +179,7 @@ static int mtmRedo(Draw_Interpretor& di, int /*n*/, const char** /*a*/) return 0; } -//======================================================================= -// function : mtmNestedMode -// purpose : redos last transaction -//======================================================================= +//================================================================================================= static int mtmNestedMode(Draw_Interpretor& di, int n, const char** a) { diff --git a/src/Draw/TKDCAF/DNaming/DNaming.cxx b/src/Draw/TKDCAF/DNaming/DNaming.cxx index 2d87c4903b..a74ea4c37b 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming.cxx @@ -561,10 +561,8 @@ occ::handle DNaming::GetInteger( return anInteger; } -//======================================================================= -// function : String -// purpose : Returns Name attribute -//======================================================================= +//================================================================================================= + occ::handle DNaming::GetString(const occ::handle& theFunction, const int thePosition) { @@ -654,10 +652,8 @@ occ::handle DNaming::GetObjectValue( */ } -//======================================================================= -// function : GetPrevFunction -// purpose : Returns previous function -//======================================================================= +//================================================================================================= + occ::handle DNaming::GetPrevFunction( const occ::handle& theFunction) { @@ -690,10 +686,8 @@ occ::handle DNaming::GetPrevFunction( */ } -//======================================================================= -// function : GetFirstFunction -// purpose : Returns first function -//======================================================================= +//================================================================================================= + occ::handle DNaming::GetFirstFunction( const occ::handle& theObject) { diff --git a/src/Draw/TKDCAF/DNaming/DNaming_BooleanOperationDriver.cxx b/src/Draw/TKDCAF/DNaming/DNaming_BooleanOperationDriver.cxx index 921f4588b9..b837b78a78 100644 --- a/src/Draw/TKDCAF/DNaming/DNaming_BooleanOperationDriver.cxx +++ b/src/Draw/TKDCAF/DNaming/DNaming_BooleanOperationDriver.cxx @@ -421,10 +421,8 @@ bool DNaming_BooleanOperationDriver::CheckAndLoad( return false; } -// ------------------------------------------------------------------------ -// static function: FixSameParameter -// purpose: -// ------------------------------------------------------------------------ +//================================================================================================= + bool FixSameParameter(const TopoDS_Shape& theShape, BRepCheck_Analyzer& theAnalyzer, const bool bIgnoreNotSPErrors) @@ -462,10 +460,8 @@ bool FixSameParameter(const TopoDS_Shape& theShape, return false; } -// ------------------------------------------------------------------------ -// static function: FindSPErrorEdges -// purpose: -// ------------------------------------------------------------------------ +//================================================================================================= + void FindSPErrorEdges(const TopoDS_Shape& theShape, const BRepCheck_Analyzer& theAnalyzer, NCollection_IndexedMap& theMap) @@ -527,10 +523,8 @@ void FindSPErrorEdges(const TopoDS_Shape& } } -// ------------------------------------------------------------------------ -// static function: FindOtherErrors -// purpose: -// ------------------------------------------------------------------------ +//================================================================================================= + bool FindOtherErrors(const TopoDS_Shape& theShape, const BRepCheck_Analyzer& theAnalyzer, const NCollection_IndexedMap& theMap) diff --git a/src/Draw/TKDraw/Draw/Draw.cxx b/src/Draw/TKDraw/Draw/Draw.cxx index a7b01e7f4f..18f1b81676 100644 --- a/src/Draw/TKDraw/Draw/Draw.cxx +++ b/src/Draw/TKDraw/Draw/Draw.cxx @@ -232,10 +232,8 @@ Draw_Interpretor& Draw::GetInterpretor() return theCommands; } -//======================================================================= -// function : -// purpose : Set/Get Progress Indicator -//======================================================================= +//================================================================================================= + void Draw::SetProgressBar(const occ::handle& theProgress) { global_Progress = theProgress; diff --git a/src/Draw/TKDraw/Draw/Draw_UnitCommands.cxx b/src/Draw/TKDraw/Draw/Draw_UnitCommands.cxx index b1dcefc5e5..874730573a 100644 --- a/src/Draw/TKDraw/Draw/Draw_UnitCommands.cxx +++ b/src/Draw/TKDraw/Draw/Draw_UnitCommands.cxx @@ -23,10 +23,8 @@ #include #include -//======================================================================= -// function : parsing -// purpose : parsing of unit's expression -//======================================================================= +//================================================================================================= + static int parsing(Draw_Interpretor& di, int argc, const char** argv) { if (argc < 2) @@ -61,10 +59,8 @@ static int parsing(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : unitsdico -// purpose : dump dictionary of units -//======================================================================= +//================================================================================================= + static int unitsdico(Draw_Interpretor& /* di */, int /*argc*/, const char** /*argv*/) { UnitsAPI::SetLocalSystem(); diff --git a/src/Draw/TKDraw/Draw/Draw_Viewer.cxx b/src/Draw/TKDraw/Draw/Draw_Viewer.cxx index dfb70e11a0..438a1ec162 100644 --- a/src/Draw/TKDraw/Draw/Draw_Viewer.cxx +++ b/src/Draw/TKDraw/Draw/Draw_Viewer.cxx @@ -176,10 +176,7 @@ void Draw_Viewer::SetTitle(const int id, const char* name) myViews[id]->SetTitle(name); } -//======================================================================= -// function : ResetView -// purpose : reset view zoom and axes -//======================================================================= +//================================================================================================= void Draw_Viewer::ResetView(const int id) { @@ -550,10 +547,8 @@ void Draw_Viewer::RepaintView(const int id) const } #ifdef _WIN32 -//======================================================================= -// function : ResizeView -// purpose : WNT re-drawing optimization -//======================================================================= +//================================================================================================= + void Draw_Viewer::ResizeView(const int id) const { if (Draw_Batch) @@ -565,10 +560,8 @@ void Draw_Viewer::ResizeView(const int id) const } } -//======================================================================= -// function : UpdateView -// purpose : WNT re-drawing optimization -//======================================================================= +//================================================================================================= + void Draw_Viewer::UpdateView(const int id, const bool forced) const { if (Draw_Batch) @@ -873,10 +866,7 @@ void Draw_Viewer::RemoveDrawable(const occ::handle& D) } } -//======================================================================= -// function : MakeDisplay -// purpose : return a display on the view -//======================================================================= +//================================================================================================= Draw_Display Draw_Viewer::MakeDisplay(const int id) const { @@ -1134,10 +1124,7 @@ Draw_Viewer::~Draw_Viewer() DeleteView(id); } -//======================================================================= -// function : operator<< -// purpose : -//======================================================================= +//================================================================================================= Draw_Viewer& Draw_Viewer::operator<<(const occ::handle& d3d) { diff --git a/src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Drawable.cxx b/src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Drawable.cxx index fc861440f1..f4c33599c9 100644 --- a/src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Drawable.cxx +++ b/src/Draw/TKDraw/DrawTrSurf/DrawTrSurf_Drawable.cxx @@ -30,10 +30,8 @@ IMPLEMENT_STANDARD_RTTIEXT(DrawTrSurf_Drawable, Draw_Drawable3D) -//======================================================================= -// function : DrawTrSurf_Drawable -// purpose : initialise the discretisation -//======================================================================= +//================================================================================================= + DrawTrSurf_Drawable::DrawTrSurf_Drawable( const int discret, @@ -95,10 +93,8 @@ void DrawTrSurf_Drawable::DrawCurve2dOn(Adaptor2d_Curve2d& C, Draw_Display& aDis } } -//======================================================================= -// static function : PlotCurve -// purpose : draw a 3D curve -//======================================================================= +//================================================================================================= + static void PlotCurve(Draw_Display& aDisplay, const Adaptor3d_Curve& C, double& theFirstParam, diff --git a/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx b/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx index 12c4f4a554..06f8c830d6 100644 --- a/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx +++ b/src/Draw/TKIVtkDraw/IVtkDraw/IVtkDraw.cxx @@ -716,10 +716,8 @@ static int VtkErase(Draw_Interpretor&, int theArgNum, const char** theArgs) return 0; } -//================================================================ -// Function : VtkRemove -// Purpose : Remove the actor from memory. -//================================================================ +//================================================================================================= + static int VtkRemove(Draw_Interpretor&, int theArgNum, const char** theArgs) { if (!GetInteractor() || !GetInteractor()->IsEnabled()) @@ -1200,11 +1198,8 @@ static int VtkSetTransparency(Draw_Interpretor&, int theArgNb, const char** theA return 0; } -//================================================================ -// Function : VtkMoveTo -// Purpose : -// Draw args : ivtkmoveto x y -//================================================================ +//================================================================================================= + static int VtkMoveTo(Draw_Interpretor& theDI, int theArgNum, const char** theArgs) { if (!GetInteractor() || !GetInteractor()->IsEnabled()) diff --git a/src/Draw/TKQADraw/QADNaming/QADNaming.cxx b/src/Draw/TKQADraw/QADNaming/QADNaming.cxx index 75689e5724..6d348dcaf6 100644 --- a/src/Draw/TKQADraw/QADNaming/QADNaming.cxx +++ b/src/Draw/TKQADraw/QADNaming/QADNaming.cxx @@ -154,10 +154,8 @@ static int QADNaming_IsSameShapes(Draw_Interpretor& di, int nb, const char** arg return 1; } -//======================================================================= -// function : CenterOfShape -// purpose : CenterOfShape DrawShape -//======================================================================= +//================================================================================================= + static int QADNaming_CenterOfShape(Draw_Interpretor& di, int nb, const char** arg) { if (nb == 2) diff --git a/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx b/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx index 4bf7d07f0f..f9dbc7f474 100644 --- a/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx +++ b/src/Draw/TKQADraw/QADNaming/QADNaming_SelectionCommands.cxx @@ -200,10 +200,7 @@ static int QADNaming_DumpSelection(Draw_Interpretor& di, int n, const char** a) return 1; } -//======================================================================= -// function : ArgsSelection -// purpose : ArgsSelection DF entry -//======================================================================= +//================================================================================================= static int QADNaming_ArgsSelection(Draw_Interpretor& di, int n, const char** a) { diff --git a/src/Draw/TKTopTest/BOPTest/BOPTest_DebugCommands.cxx b/src/Draw/TKTopTest/BOPTest/BOPTest_DebugCommands.cxx index f84e869f96..c479d22fbc 100644 --- a/src/Draw/TKTopTest/BOPTest/BOPTest_DebugCommands.cxx +++ b/src/Draw/TKTopTest/BOPTest/BOPTest_DebugCommands.cxx @@ -1150,10 +1150,8 @@ int bopfinfo(Draw_Interpretor& di, int n, const char** a, const int iPriz) return 0; } -//======================================================================= -// function : bopfav -// purpose : alone vertices on face -//======================================================================= +//================================================================================================= + int bopfav(Draw_Interpretor& di, int n, const char** a) { if (n != 2) diff --git a/src/Draw/TKTopTest/BRepTest/BRepTest_CheckCommands.cxx b/src/Draw/TKTopTest/BRepTest/BRepTest_CheckCommands.cxx index aecc4cfaad..8a43e32d7b 100644 --- a/src/Draw/TKTopTest/BRepTest/BRepTest_CheckCommands.cxx +++ b/src/Draw/TKTopTest/BRepTest/BRepTest_CheckCommands.cxx @@ -467,10 +467,8 @@ void ContextualDump(Draw_Interpretor& theCommands, theCommands << "\n"; } -//======================================================================= -// function : FillProblems -// purpose : auxiliary for StructuralDump -//======================================================================= +//================================================================================================= + static void FillProblems(const BRepCheck_Status stat, occ::handle>& NbProblems) { @@ -483,10 +481,8 @@ static void FillProblems(const BRepCheck_Status stat, NbProblems->SetValue(anID, NbProblems->Value(anID) + 1); } -//======================================================================= -// function : GetProblemSub -// purpose : auxiliary for StructuralDump -//======================================================================= +//================================================================================================= + static void GetProblemSub(const BRepCheck_Analyzer& Ana, const TopoDS_Shape& Shape, occ::handle>& sl, @@ -535,10 +531,8 @@ static void GetProblemSub(const BRepCheck_Analyzer& Ana, } } -//======================================================================= -// function : GetProblemShapes -// purpose : auxiliary for StructuralDump -//======================================================================= +//================================================================================================= + static void GetProblemShapes(const BRepCheck_Analyzer& Ana, const TopoDS_Shape& Shape, occ::handle>& sl, diff --git a/src/Draw/TKTopTest/BRepTest/BRepTest_FeatureCommands.cxx b/src/Draw/TKTopTest/BRepTest/BRepTest_FeatureCommands.cxx index 3dcbe2e516..b22968a6af 100644 --- a/src/Draw/TKTopTest/BRepTest/BRepTest_FeatureCommands.cxx +++ b/src/Draw/TKTopTest/BRepTest/BRepTest_FeatureCommands.cxx @@ -2675,10 +2675,8 @@ static int BOSS(Draw_Interpretor& theCommands, int narg, const char** a) return 1; } -//============================================================================= -// function : ComputeSimpleOffset -// purpose : Computes simple offset. -//============================================================================= +//================================================================================================= + static int ComputeSimpleOffset(Draw_Interpretor& theCommands, int narg, const char** a) { if (narg < 4) diff --git a/src/Draw/TKTopTest/BRepTest/BRepTest_Fillet2DCommands.cxx b/src/Draw/TKTopTest/BRepTest/BRepTest_Fillet2DCommands.cxx index c68a283e70..a70301eb31 100644 --- a/src/Draw/TKTopTest/BRepTest/BRepTest_Fillet2DCommands.cxx +++ b/src/Draw/TKTopTest/BRepTest/BRepTest_Fillet2DCommands.cxx @@ -43,10 +43,7 @@ #include #include -//======================================================================= -// function : chfi2d -// purpose : 2d fillets and chamfers -//======================================================================= +//================================================================================================= static int chfi2d(Draw_Interpretor& di, int n, const char** a) { diff --git a/src/Draw/TKTopTest/GeomliteTest/GeomliteTest_CurveCommands.cxx b/src/Draw/TKTopTest/GeomliteTest/GeomliteTest_CurveCommands.cxx index 7c3759d45a..ff8f6e021b 100644 --- a/src/Draw/TKTopTest/GeomliteTest/GeomliteTest_CurveCommands.cxx +++ b/src/Draw/TKTopTest/GeomliteTest/GeomliteTest_CurveCommands.cxx @@ -1259,10 +1259,8 @@ static int minmaxcurandinf(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : shcurvature -// purpose : affiche le peigne de courbure -//======================================================================= +//================================================================================================= + static int shcurvature(Draw_Interpretor&, int argc, const char** argv) { if (argc < 2) @@ -1285,10 +1283,8 @@ static int shcurvature(Draw_Interpretor&, int argc, const char** argv) return 0; } -//======================================================================= -// function : clcurvature -// purpose : efface le peigne de courbure -//======================================================================= +//================================================================================================= + static int clcurvature(Draw_Interpretor&, int argc, const char** argv) { if (argc < 2) @@ -1967,10 +1963,7 @@ static int canceldenom(Draw_Interpretor&, int n, const char** c) return 0; } -//======================================================================= -// function : length -// purpose : eval curve's length -//======================================================================= +//================================================================================================= static int length(Draw_Interpretor& di, int n, const char** a) { diff --git a/src/Draw/TKTopTest/SWDRAW/SWDRAW_ShapeAnalysis.cxx b/src/Draw/TKTopTest/SWDRAW/SWDRAW_ShapeAnalysis.cxx index c0702b4b3c..618ad65120 100644 --- a/src/Draw/TKTopTest/SWDRAW/SWDRAW_ShapeAnalysis.cxx +++ b/src/Draw/TKTopTest/SWDRAW/SWDRAW_ShapeAnalysis.cxx @@ -1006,10 +1006,8 @@ static int freebounds(Draw_Interpretor& di, int n, const char** a) return 0; } -//======================================================================= -// function : PrintProps -// purpose : auxiliary for FreeBoundsProps -//======================================================================= +//================================================================================================= + static void PrintProps(int i, const occ::handle& fbd, Draw_Interpretor& di) diff --git a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx index 04403411c8..3311108f88 100644 --- a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx +++ b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx @@ -2721,11 +2721,7 @@ static int VDrawText(Draw_Interpretor& theDI, int theArgsNb, const char** theArg #include class AIS_InteractiveObject; -//=============================================================================================== -// function : CalculationOfSphere -// author : psn -// purpose : Create a Sphere -//=============================================================================================== +//================================================================================================= occ::handle CalculationOfSphere(double X, double Y, @@ -2968,11 +2964,8 @@ occ::handle CalculationOfSphere(double X, return polyTriangulation; } -//=============================================================================================== -// function : VDrawSphere -// author : psn -// purpose : Create an AIS shape. -//=============================================================================================== +//================================================================================================= + static int VDrawSphere(Draw_Interpretor& /*di*/, int argc, const char** argv) { // check for errors @@ -4953,11 +4946,8 @@ static int VSelectionPrevious(Draw_Interpretor& /*theDI*/, return 0; } -//=========================================================================== -// function : VTriangle -// Draw arg : vtriangle Name PointName PointName PointName -// purpose : creates and displays Triangle -//=========================================================================== +//================================================================================================= + static int VTriangle(Draw_Interpretor& /*di*/, int argc, const char** argv) { const bool isTri = TCollection_AsciiString(argv[0]) == "vtriangle"; @@ -5247,10 +5237,8 @@ static int VCylinder(Draw_Interpretor& /*di*/, int theNbArgs, const char** theAr return 0; } -//=========================================================================== -// function : VSphere -// purpose : creates and displays a sphere -//=========================================================================== +//================================================================================================= + static int VSphere(Draw_Interpretor& /*di*/, int theNbArgs, const char** theArgVec) { if (ViewerTest::GetAISContext().IsNull()) diff --git a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_RelationCommands.cxx b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_RelationCommands.cxx index db80a82247..4c0fd515c1 100644 --- a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_RelationCommands.cxx +++ b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_RelationCommands.cxx @@ -520,10 +520,8 @@ static int ParseDimensionParams( return 0; } -//======================================================================= -// function : SetDimensionParams -// purpose : Sets parameters for dimension -//======================================================================= +//================================================================================================= + static void SetDimensionParams( const occ::handle& theDim, const NCollection_DataMap& theRealParams, diff --git a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands.cxx b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands.cxx index 689c284a86..1649371110 100644 --- a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands.cxx +++ b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ViewerCommands.cxx @@ -837,10 +837,8 @@ TCollection_AsciiString ViewerTest::ViewerInit(const ViewerTest_VinitParams& the return aViewNames.GetViewName(); } -//============================================================================== -// function : RedrawAllViews -// purpose : Redraw all created views -//============================================================================== +//================================================================================================= + void ViewerTest::RedrawAllViews() { ViewerTest_ViewerCommandsViewMap::Iterator aViewIt(ViewerTest_myViews); @@ -1880,10 +1878,8 @@ void ViewerTest::GetMousePosition(int& theX, int& theY) } } -//============================================================================== -// function : VViewProj -// purpose : Switch view projection -//============================================================================== +//================================================================================================= + static int VViewProj(Draw_Interpretor&, int theNbArgs, const char** theArgVec) { static bool isYup = false; diff --git a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW.cxx b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW.cxx index d7a9755d8b..88a6f5c5de 100644 --- a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW.cxx +++ b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW.cxx @@ -314,10 +314,7 @@ static int dump(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : StatAssembly -// purpose : recursive part of statistics -//======================================================================= +//================================================================================================= static void StatAssembly(const TDF_Label L, const int level, @@ -1294,10 +1291,8 @@ static int dumpLengthUnit(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : XShowFaceBoundary -// purpose : Set face boundaries on/off -//======================================================================= +//================================================================================================= + static int XShowFaceBoundary(Draw_Interpretor& di, int argc, const char** argv) { if ((argc != 4 && argc < 7) || argc > 9) @@ -1506,10 +1501,7 @@ static int XDumpAssemblyTree(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : graphNodeTypename -// purpose : Returns node type name -//======================================================================= +//================================================================================================= static const char* graphNodeTypename(const XCAFDoc_AssemblyGraph::NodeType theNodeType) { diff --git a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx index 76b78ed7a8..3af01c363e 100644 --- a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx +++ b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Notes.cxx @@ -93,10 +93,8 @@ static int noteCount(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteNotes -// purpose : returns list of all notes -//======================================================================= +//================================================================================================= + static const cmd XNoteNotes = {"XNoteNotes", 2, "XNoteNotes Doc"}; static int noteNotes(Draw_Interpretor& di, int argc, const char** argv) @@ -129,10 +127,8 @@ static int noteNotes(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteAnnotations -// purpose : returns list of all notes -//======================================================================= +//================================================================================================= + static const cmd XNoteAnnotations = {"XNoteAnnotations", 2, "XNoteAnnotations Doc"}; static int noteAnnotations(Draw_Interpretor& di, int argc, const char** argv) @@ -432,10 +428,8 @@ static int noteCreateBinData(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteDelete -// purpose : deletes a note by the entry -//======================================================================= +//================================================================================================= + static const cmd XNoteDelete = {"XNoteDelete", 3, "XNoteDelete Doc note"}; static int noteDelete(Draw_Interpretor& di, int argc, const char** argv) @@ -503,10 +497,8 @@ static int noteDeleteAll(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteDeleteOrphan -// purpose : deletes all orphan notes -//======================================================================= +//================================================================================================= + static const cmd XNoteDeleteOrphan = {"XNoteDeleteOrphan", 2, "XNoteDeleteOrphan Doc"}; static int noteDeleteOrphan(Draw_Interpretor& di, int argc, const char** argv) @@ -533,10 +525,8 @@ static int noteDeleteOrphan(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteAdd -// purpose : adds a note to a labeled item -//======================================================================= +//================================================================================================= + static const cmd XNoteAdd = {"XNoteAdd", 4, "XNoteAdd Doc note item [--attr guid | --subshape num]"}; @@ -974,10 +964,8 @@ static int noteFindAnnotated(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteGetNotes -// purpose : get notes of the labeled item -//======================================================================= +//================================================================================================= + static const cmd XNoteGetNotes = {"XNoteGetNotes", 3, "XNoteGetNotes Doc item [--attr guid | --subshape num]"}; @@ -1275,10 +1263,8 @@ static int noteDump(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteIsRefOrphan -// purpose : checks if a ref is orphan -//======================================================================= +//================================================================================================= + static const cmd XNoteRefDump = {"XNoteRefDump", 3, "XNoteRefDump Doc ref"}; static int noteRefDump(Draw_Interpretor& di, int argc, const char** argv) @@ -1334,10 +1320,8 @@ static int noteRefDump(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : noteIsRefOrphan -// purpose : checks if a ref is orphan -//======================================================================= +//================================================================================================= + static const cmd XNoteIsRefOrphan = {"XNoteIsRefOrphan", 3, "XNoteIsRefOrphan Doc ref"}; static int noteIsRefOrphan(Draw_Interpretor& di, int argc, const char** argv) diff --git a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Props.cxx b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Props.cxx index cbabeb0bdf..f156d8cdb8 100644 --- a/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Props.cxx +++ b/src/Draw/TKXDEDRAW/XDEDRAW/XDEDRAW_Props.cxx @@ -793,10 +793,7 @@ static int ShapeVolume(Draw_Interpretor& di, int argc, const char** argv) return 0; } -//======================================================================= -// function : GetMassProps -// purpose : auxiliary for ShapeMassProps -//======================================================================= +//================================================================================================= static bool GetMassProps(const TDF_Label& aLabel, gp_XYZ& theCenterGravity, diff --git a/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx b/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx index c77d5ad6b6..224643997f 100644 --- a/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx +++ b/src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx @@ -56,10 +56,8 @@ #include #include -//======================================================================= -// function : WriteShape -// purpose : Creates a file Shape_'number' -//======================================================================= +//================================================================================================= + void WriteShape(const TopoDS_Shape& shape, const int number) { char fname[110]; @@ -911,10 +909,8 @@ static int etest(Draw_Interpretor& theDI, int theNbArgs, const char** theArgVec) return 0; } -//======================================================================= -// function : ReadIges -// purpose : Read IGES to DECAF document -//======================================================================= +//================================================================================================= + static int ReadIges(Draw_Interpretor& theDI, int theNbArgs, const char** theArgVec) { if (theNbArgs < 3) @@ -1012,10 +1008,8 @@ static int ReadIges(Draw_Interpretor& theDI, int theNbArgs, const char** theArgV return 0; } -//======================================================================= -// function : WriteIges -// purpose : Write DECAF document to IGES -//======================================================================= +//================================================================================================= + static int WriteIges(Draw_Interpretor& theDI, int theNbArgs, const char** theArgVec) { if (theNbArgs < 3) diff --git a/src/Draw/TKXSDRAWSTEP/XSDRAWSTEP/XSDRAWSTEP.cxx b/src/Draw/TKXSDRAWSTEP/XSDRAWSTEP/XSDRAWSTEP.cxx index 0528fd5e66..93dae13020 100644 --- a/src/Draw/TKXSDRAWSTEP/XSDRAWSTEP/XSDRAWSTEP.cxx +++ b/src/Draw/TKXSDRAWSTEP/XSDRAWSTEP/XSDRAWSTEP.cxx @@ -845,10 +845,8 @@ static int ReadStep(Draw_Interpretor& theDI, int theNbArgs, const char** theArgV return 0; } -//======================================================================= -// function : WriteStep -// purpose : Write DECAF document to STEP -//======================================================================= +//================================================================================================= + static int WriteStep(Draw_Interpretor& theDI, int theNbArgs, const char** theArgVec) { DeclareAndCast(STEPControl_Controller, aController, XSDRAW::Controller()); diff --git a/src/Draw/TKXSDRAWVRML/XSDRAWVRML/XSDRAWVRML.cxx b/src/Draw/TKXSDRAWVRML/XSDRAWVRML/XSDRAWVRML.cxx index 907b10bfe0..fe44ac481b 100644 --- a/src/Draw/TKXSDRAWVRML/XSDRAWVRML/XSDRAWVRML.cxx +++ b/src/Draw/TKXSDRAWVRML/XSDRAWVRML/XSDRAWVRML.cxx @@ -197,10 +197,8 @@ static int ReadVrml(Draw_Interpretor& theDI, int theArgc, const char** theArgv) return 0; } -//======================================================================= -// function : WriteVrml -// purpose : Write DECAF document to Vrml -//======================================================================= +//================================================================================================= + static int WriteVrml(Draw_Interpretor& di, int argc, const char** argv) { if (argc < 3) diff --git a/src/FoundationClasses/TKMath/BVH/BVH_BuildThread.cxx b/src/FoundationClasses/TKMath/BVH/BVH_BuildThread.cxx index 76abe8c6bb..a5b6225a62 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_BuildThread.cxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_BuildThread.cxx @@ -17,10 +17,8 @@ IMPLEMENT_STANDARD_RTTIEXT(BVH_BuildThread, Standard_Transient) -// ======================================================================= -// function : BVH_BuildThread -// purpose : Creates new BVH build thread -// ======================================================================= +//================================================================================================= + BVH_BuildThread::BVH_BuildThread(BVH_BuildTool& theBuildTool, BVH_BuildQueue& theBuildQueue) : myBuildTool(theBuildTool), myBuildQueue(theBuildQueue), @@ -28,10 +26,8 @@ BVH_BuildThread::BVH_BuildThread(BVH_BuildTool& theBuildTool, BVH_BuildQueue& th { } -// ======================================================================= -// function : execute -// purpose : Executes BVH build thread -// ======================================================================= +//================================================================================================= + void BVH_BuildThread::execute() { for (bool wasBusy = false; /**/; /**/) diff --git a/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx b/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx index 34af0829fc..51b7e3b84d 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_DistanceField.lxx @@ -33,10 +33,8 @@ BVH_DistanceField::BVH_DistanceField(const int theMaximumSize, const bool myVoxelData = new T[myMaximumSize * myMaximumSize * myMaximumSize]; } -// ======================================================================= -// function : ~BVH_DistanceField -// purpose : -// ======================================================================= +//================================================================================================= + template BVH_DistanceField::~BVH_DistanceField() { diff --git a/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx b/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx index 25e05f1262..08bb94dacd 100644 --- a/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx +++ b/src/FoundationClasses/TKMath/BVH/BVH_LinearBuilder.hxx @@ -76,10 +76,8 @@ BVH_LinearBuilder::BVH_LinearBuilder(const int theLeafNodeSize, const int { } -// ======================================================================= -// function : ~BVH_LinearBuilder -// purpose : -// ======================================================================= +//================================================================================================= + template BVH_LinearBuilder::~BVH_LinearBuilder() = default; diff --git a/src/FoundationClasses/TKMath/PLib/PLib.cxx b/src/FoundationClasses/TKMath/PLib/PLib.cxx index 91672afdb4..7bb1e4edbe 100644 --- a/src/FoundationClasses/TKMath/PLib/PLib.cxx +++ b/src/FoundationClasses/TKMath/PLib/PLib.cxx @@ -936,10 +936,7 @@ constexpr std::array THE_EVAL_POLY2_TABLE = } // namespace -//======================================================================= -// function : This evaluates a polynomial and its derivatives -// purpose : up to the requested order -//======================================================================= +//================================================================================================= void PLib::EvalPolynomial(const double Par, const int DerivativeRequest, diff --git a/src/FoundationClasses/TKMath/Poly/Poly_CoherentTriangulation.cxx b/src/FoundationClasses/TKMath/Poly/Poly_CoherentTriangulation.cxx index cfccc8d2a3..3b0c88f3da 100644 --- a/src/FoundationClasses/TKMath/Poly/Poly_CoherentTriangulation.cxx +++ b/src/FoundationClasses/TKMath/Poly/Poly_CoherentTriangulation.cxx @@ -157,10 +157,7 @@ occ::handle Poly_CoherentTriangulation::GetTriangulation() c return aResult; } -//======================================================================= -// function : GetFreeNodes -// purpose : Create a list of free nodes. -//======================================================================= +//================================================================================================= bool Poly_CoherentTriangulation::GetFreeNodes(NCollection_List& lstNodes) const { diff --git a/src/FoundationClasses/TKMath/math/math_GlobOptMin.cxx b/src/FoundationClasses/TKMath/math/math_GlobOptMin.cxx index ced579a44b..f339d4154e 100644 --- a/src/FoundationClasses/TKMath/math/math_GlobOptMin.cxx +++ b/src/FoundationClasses/TKMath/math/math_GlobOptMin.cxx @@ -170,30 +170,24 @@ void math_GlobOptMin::SetLocalParams(const math_Vector& theLocalA, const math_Ve myDone = false; } -//======================================================================= -// function : SetTol -// purpose : Set algorithm tolerances. -//======================================================================= +//================================================================================================= + void math_GlobOptMin::SetTol(const double theDiscretizationTol, const double theSameTol) { myTol = theDiscretizationTol; mySameTol = theSameTol; } -//======================================================================= -// function : GetTol -// purpose : Get algorithm tolerances. -//======================================================================= +//================================================================================================= + void math_GlobOptMin::GetTol(double& theDiscretizationTol, double& theSameTol) { theDiscretizationTol = myTol; theSameTol = mySameTol; } -//======================================================================= -// function : Perform -// purpose : Compute Global extremum point -//======================================================================= +//================================================================================================= + // In this algo indexes started from 1, not from 0. void math_GlobOptMin::Perform(const bool isFindSingleSolution) { diff --git a/src/FoundationClasses/TKernel/FSD/FSD_BinaryFile.cxx b/src/FoundationClasses/TKernel/FSD/FSD_BinaryFile.cxx index b4740ffa81..0cd0061925 100644 --- a/src/FoundationClasses/TKernel/FSD/FSD_BinaryFile.cxx +++ b/src/FoundationClasses/TKernel/FSD/FSD_BinaryFile.cxx @@ -153,10 +153,7 @@ Storage_Error FSD_BinaryFile::Close() return result; } -//======================================================================= -// function : MagicNumber -// purpose : ------------------ PROTECTED -//======================================================================= +//================================================================================================= const char* FSD_BinaryFile::MagicNumber() { diff --git a/src/FoundationClasses/TKernel/FSD/FSD_CmpFile.cxx b/src/FoundationClasses/TKernel/FSD/FSD_CmpFile.cxx index e2a3ffa083..305ac0424a 100644 --- a/src/FoundationClasses/TKernel/FSD/FSD_CmpFile.cxx +++ b/src/FoundationClasses/TKernel/FSD/FSD_CmpFile.cxx @@ -120,10 +120,7 @@ Storage_Error FSD_CmpFile::Open(const TCollection_AsciiString& aName, const Stor return result; } -//======================================================================= -// function : MagicNumber -// purpose : ------------------ PROTECTED -//======================================================================= +//================================================================================================= const char* FSD_CmpFile::MagicNumber() { diff --git a/src/FoundationClasses/TKernel/FSD/FSD_File.cxx b/src/FoundationClasses/TKernel/FSD/FSD_File.cxx index 051a4ee889..b91cac0d3e 100644 --- a/src/FoundationClasses/TKernel/FSD/FSD_File.cxx +++ b/src/FoundationClasses/TKernel/FSD/FSD_File.cxx @@ -149,10 +149,7 @@ Storage_Error FSD_File::Close() return result; } -//======================================================================= -// function : MagicNumber -// purpose : ------------------ PROTECTED -//======================================================================= +//================================================================================================= const char* FSD_File::MagicNumber() { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseList.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseList.cxx index 2b46eb0dcf..ab87c88835 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseList.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseList.cxx @@ -36,10 +36,7 @@ void NCollection_BaseList::PClear(NCollection_DelListNode fDel) myFirst = myLast = nullptr; } -//======================================================================= -// function : PAppend -// purpose : Appends one item at the end -//======================================================================= +//================================================================================================= void NCollection_BaseList::PAppend(NCollection_ListNode* theNode) noexcept { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_BasePointerVector.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_BasePointerVector.cxx index 12c685eb21..22e3aaf12a 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_BasePointerVector.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_BasePointerVector.cxx @@ -94,10 +94,8 @@ void NCollection_BasePointerVector::clear() myCapacity = 0; } -//======================================================================= -// function : operator= -// purpose : -//======================================================================= +//================================================================================================= + NCollection_BasePointerVector& NCollection_BasePointerVector::operator=( const NCollection_BasePointerVector& theOther) { @@ -116,10 +114,8 @@ NCollection_BasePointerVector& NCollection_BasePointerVector::operator=( return *this; } -//======================================================================= -// function : operator= -// purpose : -//======================================================================= +//================================================================================================= + NCollection_BasePointerVector& NCollection_BasePointerVector::operator=( NCollection_BasePointerVector&& theOther) noexcept { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx index 036a8d3f28..ec4b4ae828 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_BaseSequence.cxx @@ -37,10 +37,7 @@ void NCollection_BaseSequence::ClearSeq(NCollection_DelSeqNode fDel) Nullify(); } -//======================================================================= -// function : PAppend -// purpose : append an item to sequence -//======================================================================= +//================================================================================================= void NCollection_BaseSequence::PAppend(NCollection_SeqNode* theItem) { @@ -89,10 +86,7 @@ void NCollection_BaseSequence::PAppend(NCollection_BaseSequence& Other) Other.Nullify(); } -//======================================================================= -// function : PPrepend -// purpose : prepend an item to sequence -//======================================================================= +//================================================================================================= void NCollection_BaseSequence::PPrepend(NCollection_SeqNode* theItem) { diff --git a/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx b/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx index 9ed0a09e89..ed2c4e6784 100644 --- a/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx +++ b/src/FoundationClasses/TKernel/NCollection/NCollection_UtfString.lxx @@ -143,10 +143,8 @@ inline NCollection_UtfString::NCollection_UtfString(const wchar_t* theCopy } #endif -// ======================================================================= -// function : ~NCollection_UtfString -// purpose : -// ======================================================================= +//================================================================================================= + template inline NCollection_UtfString::~NCollection_UtfString() { @@ -259,10 +257,8 @@ inline bool NCollection_UtfString::ToLocale(char* theBuffer, const int the #endif } -// ======================================================================= -// function : operator= -// purpose : -// ======================================================================= +//================================================================================================= + template inline const NCollection_UtfString& NCollection_UtfString::operator=( const char* theStringUtf8) @@ -271,10 +267,8 @@ inline const NCollection_UtfString& NCollection_UtfString::operator= return (*this); } -// ======================================================================= -// function : operator= -// purpose : -// ======================================================================= +//================================================================================================= + template inline const NCollection_UtfString& NCollection_UtfString::operator=( const wchar_t* theStringUtfWide) diff --git a/src/FoundationClasses/TKernel/Quantity/Quantity_Period.cxx b/src/FoundationClasses/TKernel/Quantity/Quantity_Period.cxx index 7edf3407cc..09ddc25889 100644 --- a/src/FoundationClasses/TKernel/Quantity/Quantity_Period.cxx +++ b/src/FoundationClasses/TKernel/Quantity/Quantity_Period.cxx @@ -43,12 +43,8 @@ bool Quantity_Period::IsValid(const int dd, return (dd >= 0 && hh >= 0 && mn >= 0 && ss >= 0 && mis >= 0 && mics >= 0); } -// ------------------------------------------------------------- -// IsValid : Checks the validity of a date -// With: -// 0 <= ss -// 0 <= mics -// ------------------------------------------------------------- +//================================================================================================= + bool Quantity_Period::IsValid(const int ss, const int mics) { return (ss >= 0 && mics >= 0); diff --git a/src/FoundationClasses/TKernel/Resource/Resource_Manager.cxx b/src/FoundationClasses/TKernel/Resource/Resource_Manager.cxx index 04b7984df9..3cb4e52b33 100644 --- a/src/FoundationClasses/TKernel/Resource/Resource_Manager.cxx +++ b/src/FoundationClasses/TKernel/Resource/Resource_Manager.cxx @@ -523,10 +523,8 @@ void Resource_Manager::SetResource(const char* const aResource, const char* cons myUserMap(Resource) = Value; } -//======================================================================= -// function : Find -// purpose : Tells if a resource exits. -//======================================================================= +//================================================================================================= + bool Resource_Manager::Find(const char* const aResource) const { TCollection_AsciiString Resource(aResource); diff --git a/src/FoundationClasses/TKernel/Storage/Storage_Schema.cxx b/src/FoundationClasses/TKernel/Storage/Storage_Schema.cxx index bae8bfd146..4faed32e83 100644 --- a/src/FoundationClasses/TKernel/Storage/Storage_Schema.cxx +++ b/src/FoundationClasses/TKernel/Storage/Storage_Schema.cxx @@ -256,10 +256,7 @@ Storage_Schema::Storage_Schema() myCallBackState = false; } -//======================================================================= -// function : SetVersion -// purpose : returns version of the schema -//======================================================================= +//================================================================================================= void Storage_Schema::SetVersion(const TCollection_AsciiString& aVersion) { @@ -276,20 +273,14 @@ TCollection_AsciiString Storage_Schema::Version() const return myVersion; } -//======================================================================= -// function : SetName -// purpose : set the schema's name -//======================================================================= +//================================================================================================= void Storage_Schema::SetName(const TCollection_AsciiString& aSchemaName) { myName = aSchemaName; } -//======================================================================= -// function : Name -// purpose : returns the schema's name -//======================================================================= +//================================================================================================= TCollection_AsciiString Storage_Schema::Name() const { @@ -496,10 +487,7 @@ void Storage_Schema::AddReadUnknownTypeCallBack(const TCollection_AsciiString& } } -//======================================================================= -// function : RemoveReadUnknownTypeCallBack -// purpose : remove a callback for a type -//======================================================================= +//================================================================================================= void Storage_Schema::RemoveReadUnknownTypeCallBack(const TCollection_AsciiString& aTypeName) { diff --git a/src/FoundationClasses/TKernel/Units/Units_Dimensions.cxx b/src/FoundationClasses/TKernel/Units/Units_Dimensions.cxx index 00523f53dd..fff94307d8 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Dimensions.cxx +++ b/src/FoundationClasses/TKernel/Units/Units_Dimensions.cxx @@ -195,10 +195,7 @@ occ::handle operator*(const occ::handle& adi return adimension1->Multiply(adimension2); } -//======================================================================= -// function : operator / -// purpose : -//======================================================================= +//================================================================================================= occ::handle operator/(const occ::handle& adimension1, const occ::handle& adimension2) @@ -214,10 +211,7 @@ occ::handle pow(const occ::handle& adimensio return adimension->Power(areal); } -//======================================================================= -// function : operator == -// purpose : -//======================================================================= +//================================================================================================= // bool operator ==(const occ::handle& adimension1, // const occ::handle& adimension2) diff --git a/src/FoundationClasses/TKernel/Units/Units_Measurement.cxx b/src/FoundationClasses/TKernel/Units/Units_Measurement.cxx index 90a79d7d9e..407554b1d2 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Measurement.cxx +++ b/src/FoundationClasses/TKernel/Units/Units_Measurement.cxx @@ -220,10 +220,7 @@ Units_Measurement operator*(const double avalue, const Units_Measurement& ameasu return ameasurement * avalue; } -//======================================================================= -// function : operator/ -// purpose : -//======================================================================= +//================================================================================================= Units_Measurement operator/(const double avalue, const Units_Measurement& ameasurement) { diff --git a/src/FoundationClasses/TKernel/Units/Units_Quantity.cxx b/src/FoundationClasses/TKernel/Units/Units_Quantity.cxx index ab21127eab..ae00cb8016 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Quantity.cxx +++ b/src/FoundationClasses/TKernel/Units/Units_Quantity.cxx @@ -44,10 +44,7 @@ void Units_Quantity::Dump(const int ashift, const int alevel) const } } -//======================================================================= -// function : operator == -// purpose : -//======================================================================= +//================================================================================================= bool operator==(const occ::handle& aquantity, const char* const astring) { diff --git a/src/FoundationClasses/TKernel/Units/Units_Token.cxx b/src/FoundationClasses/TKernel/Units/Units_Token.cxx index 5a3463ff37..b30476df1c 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Token.cxx +++ b/src/FoundationClasses/TKernel/Units/Units_Token.cxx @@ -338,10 +338,7 @@ occ::handle operator+(const occ::handle& atoken1, return atoken1->Add(atoken2); } -//======================================================================= -// function : operator - -// purpose : -//======================================================================= +//================================================================================================= occ::handle operator-(const occ::handle& atoken1, const occ::handle& atoken2) @@ -360,10 +357,7 @@ occ::handle operator*(const occ::handle& atoken1, return atoken1->Multiply(atoken2); } -//======================================================================= -// function : operator / -// purpose : -//======================================================================= +//================================================================================================= occ::handle operator/(const occ::handle& atoken1, const occ::handle& atoken2) @@ -386,20 +380,14 @@ occ::handle pow(const occ::handle& atoken, const doubl return atoken->Power(areal); } -//======================================================================= -// function : operator == -// purpose : -//======================================================================= +//================================================================================================= bool operator==(const occ::handle& atoken, const char* const astring) { return atoken->IsEqual(astring); } -//======================================================================= -// function : operator == -// purpose : -//======================================================================= +//================================================================================================= // bool operator ==(const occ::handle& atoken1,const occ::handle& // atoken2) @@ -428,40 +416,28 @@ bool operator!=(const occ::handle& atoken, const char* const astrin // return atoken1->IsNotEqual(atoken2); // } -//======================================================================= -// function : operator <= -// purpose : -//======================================================================= +//================================================================================================= bool operator<=(const occ::handle& atoken, const char* const astring) { return atoken->IsLessOrEqual(astring); } -//======================================================================= -// function : operator > -// purpose : -//======================================================================= +//================================================================================================= bool operator>(const occ::handle& atoken, const char* const astring) { return atoken->IsGreater(astring); } -//======================================================================= -// function : operator > -// purpose : -//======================================================================= +//================================================================================================= bool operator>(const occ::handle& atoken1, const occ::handle& atoken2) { return atoken1->IsGreater(atoken2); } -//======================================================================= -// function : operator >= -// purpose : -//======================================================================= +//================================================================================================= bool operator>=(const occ::handle& atoken1, const occ::handle& atoken2) { diff --git a/src/FoundationClasses/TKernel/Units/Units_Unit.cxx b/src/FoundationClasses/TKernel/Units/Units_Unit.cxx index c8a0f63e27..2fe832deba 100644 --- a/src/FoundationClasses/TKernel/Units/Units_Unit.cxx +++ b/src/FoundationClasses/TKernel/Units/Units_Unit.cxx @@ -112,10 +112,7 @@ void Units_Unit::Dump(const int /*ashift*/, const int) const << std::endl; } -//======================================================================= -// function : operator == -// purpose : -//======================================================================= +//================================================================================================= bool operator==(const occ::handle& aunit, const char* const astring) { diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakeConnected.cxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakeConnected.cxx index ed0f3518c6..8244754032 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakeConnected.cxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakeConnected.cxx @@ -25,10 +25,8 @@ #include -//======================================================================= -// function : Perform -// purpose : Makes the shapes connected -//======================================================================= +//================================================================================================= + void BOPAlgo_MakeConnected::Perform() { // Check the input data @@ -96,10 +94,8 @@ void BOPAlgo_MakeConnected::CheckData() } } -//======================================================================= -// function : MakeConnected -// purpose : Glues the argument shapes -//======================================================================= +//================================================================================================= + void BOPAlgo_MakeConnected::MakeConnected() { // Initialize the history @@ -143,10 +139,8 @@ void BOPAlgo_MakeConnected::MakeConnected() FillOrigins(); } -//======================================================================= -// function : FillOrigins -// purpose : Fills the map of origins -//======================================================================= +//================================================================================================= + void BOPAlgo_MakeConnected::FillOrigins() { myOrigins.Clear(); diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakePeriodic.cxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakePeriodic.cxx index ce581a4eb4..22491bb66f 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakePeriodic.cxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakePeriodic.cxx @@ -44,10 +44,8 @@ // Periodic/Trim/Repeat directions static const gp_Dir MY_DIRECTIONS[3] = {gp::DX(), gp::DY(), gp::DZ()}; -//======================================================================= -// function : Perform -// purpose : Performs the operation -//======================================================================= +//================================================================================================= + void BOPAlgo_MakePeriodic::Perform() { // Check the validity of input data diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx index 333b860b2d..2ad44e7ba6 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_MakerVolume.lxx @@ -30,10 +30,8 @@ inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume( { } -//======================================================================= -// function : ~BOPAlgo_MakerVolume -// purpose : -//======================================================================= +//================================================================================================= + inline BOPAlgo_MakerVolume::~BOPAlgo_MakerVolume() { Clear(); diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_RemoveFeatures.cxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_RemoveFeatures.cxx index 2134184a33..d40cd68aee 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_RemoveFeatures.cxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_RemoveFeatures.cxx @@ -925,10 +925,8 @@ void BOPAlgo_RemoveFeatures::RemoveFeatures(const Message_ProgressRange& theRang } } -//======================================================================= -// function: RemoveFeature -// purpose: Remove the single feature -//======================================================================= +//================================================================================================= + void BOPAlgo_RemoveFeatures::RemoveFeature( const TopoDS_Shape& theFeature, const NCollection_IndexedMap& theSolids, diff --git a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx index 5e978bc82f..3e1fbc93f2 100644 --- a/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPAlgo/BOPAlgo_WireEdgeSet.lxx @@ -28,10 +28,8 @@ inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet( { } -//======================================================================= -// function : ~ -// purpose : -//======================================================================= +//================================================================================================= + inline BOPAlgo_WireEdgeSet::~BOPAlgo_WireEdgeSet() = default; //================================================================================================= diff --git a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx index 23eb549b03..91a21ac10a 100644 --- a/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx +++ b/src/ModelingAlgorithms/TKBO/BOPDS/BOPDS_FaceInfo.lxx @@ -43,10 +43,8 @@ inline BOPDS_FaceInfo::BOPDS_FaceInfo(const occ::handle& theLFIn, NCollection_IndexedMap& theMEAvoid, diff --git a/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_AlgoTools_1.cxx b/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_AlgoTools_1.cxx index 8e361bdb52..dae687bf2f 100644 --- a/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_AlgoTools_1.cxx +++ b/src/ModelingAlgorithms/TKBO/BOPTools/BOPTools_AlgoTools_1.cxx @@ -533,10 +533,8 @@ static double MapEdgeLength(const TopoDS_Edge& theEdge, return *pLen; } -//======================================================================= -// Function : EdgeData -// purpose : Structure to store edge data -//======================================================================= +//================================================================================================= + namespace { struct EdgeData @@ -550,10 +548,8 @@ struct EdgeData }; } // namespace -//======================================================================= -// Function : IntersectCurves2d -// purpose : Intersect 2d curves of edges -//======================================================================= +//================================================================================================= + static double IntersectCurves2d(const TopoDS_Vertex& theV, const occ::handle& theS, const EdgeData& theEData1, @@ -754,10 +750,8 @@ void CorrectWires(const TopoDS_Face& } // for (i=1; i<=aNbV; ++i) { } -//======================================================================= -// Function : CorrectEdgeTolerance -// purpose : Correct tolerances for Edge -//======================================================================= +//================================================================================================= + void CorrectEdgeTolerance( const TopoDS_Edge& myShape, const TopoDS_Face& S, diff --git a/src/ModelingAlgorithms/TKBO/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.cxx b/src/ModelingAlgorithms/TKBO/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.cxx index 680d9d03a5..7043ac8bfe 100644 --- a/src/ModelingAlgorithms/TKBO/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.cxx +++ b/src/ModelingAlgorithms/TKBO/BRepAlgoAPI/BRepAlgoAPI_BuilderAlgo.cxx @@ -125,10 +125,8 @@ void BRepAlgoAPI_BuilderAlgo::IntersectShapes(const NCollection_ListMerge(myDSFiller->GetReport()); } -//======================================================================= -// function : BuildResult -// purpose : Builds the result shape -//======================================================================= +//================================================================================================= + void BRepAlgoAPI_BuilderAlgo::BuildResult(const Message_ProgressRange& theRange) { // Set options to the builder diff --git a/src/ModelingAlgorithms/TKBO/IntTools/IntTools_BeanFaceIntersector.cxx b/src/ModelingAlgorithms/TKBO/IntTools/IntTools_BeanFaceIntersector.cxx index 777ff30504..528597b72c 100644 --- a/src/ModelingAlgorithms/TKBO/IntTools/IntTools_BeanFaceIntersector.cxx +++ b/src/ModelingAlgorithms/TKBO/IntTools/IntTools_BeanFaceIntersector.cxx @@ -1302,10 +1302,8 @@ void IntTools_BeanFaceIntersector::ComputeRangeFromStartPoint(const bool ToInc } } -// --------------------------------------------------------------------------------- -// static function: SetEmptyResultRange -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + static bool SetEmptyResultRange(const double theParameter, IntTools_MarkedRangeSet& theMarkedRange) { @@ -2116,10 +2114,8 @@ bool IntTools_BeanFaceIntersector::TestComputeCoinside() } // Modified by skv - Wed Nov 2 15:21:11 2005 Optimization Begin -// --------------------------------------------------------------------------------- -// static function: GetSurfaceBox -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + Bnd_Box GetSurfaceBox(const BRepAdaptor_Surface& theSurf, const double theFirstU, const double theLastU, @@ -2136,10 +2132,8 @@ Bnd_Box GetSurfaceBox(const BRepAdaptor_Surface& theSurf, return aTotalBox; } -// --------------------------------------------------------------------------------- -// static function: ComputeGridPoints -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + void ComputeGridPoints(const BRepAdaptor_Surface& theSurf, occ::handle theBsplSurf, const double theFirstU, @@ -2373,10 +2367,8 @@ void ComputeGridPoints(const BRepAdaptor_Surface& theSurf, theSurfaceData.SetGridDeflection(aDef); } -// --------------------------------------------------------------------------------- -// static function: BuildBox -// purpose: Compute bounding box. -// --------------------------------------------------------------------------------- +//================================================================================================= + void BuildBox(const BRepAdaptor_Surface& theSurf, const double theFirstU, const double theLastU, @@ -2439,10 +2431,8 @@ void BuildBox(const BRepAdaptor_Surface& theSurf, // Modified by skv - Wed Nov 2 15:21:11 2005 Optimization End -// --------------------------------------------------------------------------------- -// static function: MergeSolutions -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + static void MergeSolutions(const NCollection_List& theListCurveRange, const NCollection_List& theListSurfaceRange, NCollection_List& theListCurveRangeSort, @@ -2488,10 +2478,8 @@ static void MergeSolutions(const NCollection_List& } } -// --------------------------------------------------------------------------------- -// static function: CheckSampling -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + static void CheckSampling(const IntTools_CurveRangeSample& theCurveRange, const IntTools_SurfaceRangeSample& theSurfaceRange, const IntTools_CurveRangeLocalizeData& theCurveData, diff --git a/src/ModelingAlgorithms/TKBO/IntTools/IntTools_FaceFace.cxx b/src/ModelingAlgorithms/TKBO/IntTools/IntTools_FaceFace.cxx index be4dee7bb4..2f41acc8d5 100644 --- a/src/ModelingAlgorithms/TKBO/IntTools/IntTools_FaceFace.cxx +++ b/src/ModelingAlgorithms/TKBO/IntTools/IntTools_FaceFace.cxx @@ -202,10 +202,8 @@ bool IntTools_FaceFace::IsDone() const return myIsDone; } -//======================================================================= -// function : Lines -// purpose : return lines of intersection -//======================================================================= +//================================================================================================= + const NCollection_Sequence& IntTools_FaceFace::Lines() const { StdFail_NotDone_Raise_if(!myIsDone, "IntTools_FaceFace::Lines() => myIntersector NOT DONE"); @@ -2288,10 +2286,8 @@ bool IsCurveValid(const occ::handle& thePCurve) return true; } -//======================================================================= -// static function : ApproxWithPCurves -// purpose : for bug 20964 only -//======================================================================= +//================================================================================================= + bool ApproxWithPCurves(const gp_Cylinder& theCyl, const gp_Sphere& theSph) { bool bRes = true; diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx index f1c0d4bf47..f7f7e758e5 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Draft.cxx @@ -907,10 +907,8 @@ const NCollection_List& BRepFill_Draft::Generated(const TopoDS_Sha return myGenerated; } -//======================================================================= -// function : Shape -// purpose : return the complete shape -//====================================================================== +//================================================================================================= + TopoDS_Shape BRepFill_Draft::Shape() const { return myShape; diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Filling.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Filling.cxx index d37c2eae26..3d63785641 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Filling.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Filling.cxx @@ -208,10 +208,8 @@ void BRepFill_Filling::LoadInitSurface(const TopoDS_Face& aFace) myIsInitFaceGiven = true; } -//======================================================================= -// function : Add -// purpose : adds an edge as a constraint -//====================================================================== +//================================================================================================= + int BRepFill_Filling::Add(const TopoDS_Edge& anEdge, const GeomAbs_Shape Order, const bool IsBound) { TopoDS_Face NullFace; @@ -261,10 +259,8 @@ int BRepFill_Filling::Add(const TopoDS_Face& Support, const GeomAbs_Shape Order) return (myBoundary.Length() + myFreeConstraints.Length()); } -//======================================================================= -// function : Add -// purpose : adds a point constraint -//====================================================================== +//================================================================================================= + int BRepFill_Filling::Add(const gp_Pnt& Point) { occ::handle aPC = @@ -552,10 +548,8 @@ void BRepFill_Filling::FindExtremitiesOfHoles(const NCollection_List #include -// --------------------------------------------------------------------------------- -// static function: UpdateMap -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + static bool UpdateMap( const TopoDS_Shape& theKey, const TopoDS_Shape& theValue, diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx index c9cc73765a..dc7d8b34c6 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_PipeShell.cxx @@ -864,19 +864,15 @@ double BRepFill_PipeShell::ErrorOnSurface() const return myErrorOnSurf; } -//======================================================================= -// function : FirstShape -// purpose : Return the start section -//======================================================================= +//================================================================================================= + const TopoDS_Shape& BRepFill_PipeShell::FirstShape() const { return myFirst; } -//======================================================================= -// function : LastShape -// purpose : Return the end section -//======================================================================= +//================================================================================================= + const TopoDS_Shape& BRepFill_PipeShell::LastShape() const { return myLast; @@ -1481,10 +1477,8 @@ void BRepFill_PipeShell::BuildHistory(const BRepFill_Sweep& theSweep) } } -// --------------------------------------------------------------------------------- -// static function: BuildBoundaries -// purpose: -// --------------------------------------------------------------------------------- +//================================================================================================= + bool BuildBoundaries(const BRepFill_Sweep& theSweep, const occ::handle& theSection, TopoDS_Shape& theBottom, diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_SectionLaw.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_SectionLaw.cxx index fc327f9524..9ba86e8647 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_SectionLaw.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_SectionLaw.cxx @@ -71,10 +71,8 @@ bool BRepFill_SectionLaw::IsDone() const return myDone; } -//======================================================================= -// function : Init -// purpose : Prepare the parsing of a wire -//======================================================================= +//================================================================================================= + void BRepFill_SectionLaw::Init(const TopoDS_Wire& W) { myIterator.Init(W); diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Sweep.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Sweep.cxx index 8dc79dfce1..22aca57911 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Sweep.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_Sweep.cxx @@ -182,10 +182,8 @@ static void Translate(const occ::handle>& Arra } } -//======================================================================= -// function : Box -// purpose : Bounding box of a section. -//======================================================================= +//================================================================================================= + static void Box(occ::handle& Sec, const double U, Bnd_Box& Box) { @@ -711,10 +709,8 @@ static void BuildFace( F.Reverse(); } -//======================================================================= -// Fonction : BuildEdge -// Objet : Construct non-closed Edge -//======================================================================= +//================================================================================================= + static TopoDS_Edge BuildEdge(occ::handle& C3d, occ::handle& C2d, occ::handle& S, @@ -1359,10 +1355,8 @@ static void KeepEdge(const TopoDS_Shape& Face, } } -//======================================================================= -// Function : -// Objet : Construct a vertex via an iso -//======================================================================= +//================================================================================================= + static void BuildVertex(const occ::handle& Iso, const bool isfirst, const double First, @@ -1379,10 +1373,8 @@ static void BuildVertex(const occ::handle& Iso, B.MakeVertex(TopoDS::Vertex(Vertex), Iso->Value(val), Precision::Confusion()); } -//======================================================================= -// Function : -// Objet : Construct an empty edge -//======================================================================= +//================================================================================================= + static TopoDS_Edge NullEdge(TopoDS_Shape& Vertex) { TopoDS_Edge E; @@ -1395,10 +1387,8 @@ static TopoDS_Edge NullEdge(TopoDS_Shape& Vertex) return E; } -//======================================================================= -// Function : -// Objet : Construct an edge via an iso -//======================================================================= +//================================================================================================= + static TopoDS_Edge BuildEdge(const occ::handle& S, const bool isUiso, const double ValIso, @@ -1562,10 +1552,8 @@ static TopoDS_Edge BuildEdge(const occ::handle& S, return E; } -//======================================================================= -// Function : -// Objet : Complete an edge via an iso -//======================================================================= +//================================================================================================= + static void UpdateEdge(TopoDS_Edge& E, const occ::handle& S, const bool isUiso, @@ -1849,10 +1837,8 @@ BRepFill_Sweep::BRepFill_Sweep(const occ::handle& Section, myForceApproxC1 = false; } -//======================================================================= -// function : SetBounds -// purpose : Define start and end shapes -//====================================================================== +//================================================================================================= + void BRepFill_Sweep::SetBounds(const TopoDS_Wire& First, const TopoDS_Wire& Last) { FirstShape = First; @@ -1961,10 +1947,8 @@ bool BRepFill_Sweep::CorrectApproxParameters() return Corrected; } -//======================================================================= -// function : BuildWire -// purpose : Construit a wire by sweeping -//====================================================================== +//================================================================================================= + bool BRepFill_Sweep::BuildWire(const BRepFill_TransitionStyle /*Transition*/) { int ipath, isec = 1; @@ -2078,10 +2062,8 @@ bool BRepFill_Sweep::BuildWire(const BRepFill_TransitionStyle /*Transition*/) return true; } -//======================================================================= -// function : BuildShell -// purpose : Construct a Shell by sweeping -//====================================================================== +//================================================================================================= + bool BRepFill_Sweep::BuildShell( const BRepFill_TransitionStyle /*Transition*/, const int IFirst, @@ -3237,19 +3219,15 @@ double BRepFill_Sweep::ErrorOnSurface() const return Error; } -//======================================================================= -// function : SubShape -// purpose : Faces obtained by sweeping -//======================================================================= +//================================================================================================= + occ::handle> BRepFill_Sweep::SubShape() const { return myFaces; } -//======================================================================= -// function : InterFaces -// purpose : Edges obtained by sweeping -//======================================================================= +//================================================================================================= + occ::handle> BRepFill_Sweep::InterFaces() const { return myUEdges; @@ -3273,10 +3251,8 @@ TopoDS_Shape BRepFill_Sweep::Tape(const int Index) const return myTapes->Value(Index); } -//======================================================================= -// function : PerformCorner -// purpose : Trim and/or loop a corner -//====================================================================== +//================================================================================================= + bool BRepFill_Sweep::PerformCorner(const int Index, const BRepFill_TransitionStyle Transition, const occ::handle>& Bounds) diff --git a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_TrimShellCorner.cxx b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_TrimShellCorner.cxx index 2bc77ddfcb..baeff87a95 100644 --- a/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_TrimShellCorner.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepFill/BRepFill_TrimShellCorner.cxx @@ -1196,10 +1196,8 @@ bool BRepFill_TrimShellCorner::ChooseSection(const TopoDS_Shape& Comp, return false; } -// ------------------------------------------------------------------------------------------ -// static function: SplitUEdges -// purpose: -// ------------------------------------------------------------------------------------------ +//================================================================================================= + bool SplitUEdges( const occ::handle>& theUEdges, const BOPDS_PDS& theDS, @@ -1300,10 +1298,8 @@ bool SplitUEdges( return true; } -// ------------------------------------------------------------------------------------------ -// static function: StoreVedgeInHistMap -// purpose: -// ------------------------------------------------------------------------------------------ +//================================================================================================= + void StoreVedgeInHistMap( const occ::handle>& theVEdges, const int theIndex, @@ -1318,10 +1314,8 @@ void StoreVedgeInHistMap( theHistMap.Bound(aVEdge, NCollection_List())->Append(theNewVshape); } -// ------------------------------------------------------------------------------------------ -// static function: FindFreeVertices -// purpose: -// ------------------------------------------------------------------------------------------ +//================================================================================================= + void FindFreeVertices( const TopoDS_Shape& theShape, const NCollection_Map& theVerticesToAvoid, @@ -1349,10 +1343,8 @@ void FindFreeVertices( } } -// ------------------------------------------------------------------------------------------ -// static function: FindCommonVertex -// purpose: -// ------------------------------------------------------------------------------------------ +//================================================================================================= + bool FindCommonVertex(const BOPDS_PDS& theDS, const int theEIndex1, const int theEIndex2, @@ -1416,10 +1408,8 @@ bool FindCommonVertex(const BOPDS_PDS& theDS, return bvertexfound; } -// ---------------------------------------------------------------------------------------------------- -// static function: GetUEdges -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool GetUEdges(const int theIndex, const int theRank, const occ::handle>& theUEdges, @@ -1478,10 +1468,8 @@ bool GetUEdges(const int theIndex, return true; } -// ---------------------------------------------------------------------------------------------------- -// static function: FillGap -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FillGap(const TopoDS_Vertex& theFirstVertex, const TopoDS_Vertex& theLastVertex, const gp_Pnt2d& theFirstPoint, @@ -1519,10 +1507,8 @@ bool FillGap(const TopoDS_Vertex& theFirstVertex, return false; } -// ---------------------------------------------------------------------------------------------------- -// static function: FindNextEdge -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FindNextEdge(const TopoDS_Vertex& theFirstVertex, const TopoDS_Vertex& theLastVertex, const NCollection_IndexedDataMap& theOrderedList, const gp_Pnt2d& theFirstPoint, const gp_Pnt2d& theLastPoint, @@ -1720,10 +1704,8 @@ bool CheckAndOrientEdges(const NCollection_List& theOrderedList, return bFirstFound && bLastFound; } -// ---------------------------------------------------------------------------------------------------- -// static function: FindVertex -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FindVertex( const TopoDS_Edge& theEdge, const int theRank, @@ -1778,10 +1760,8 @@ bool FindVertex( return true; } -// ---------------------------------------------------------------------------------------------------- -// static function: FindNextVertex -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FindNextVertex(const int theEdgeIndex, const BOPDS_Pave& thePrevPave, const BOPDS_PDS& theDS, @@ -1824,10 +1804,8 @@ bool FindNextVertex(const int theEdgeIndex, return bFound; } -// ---------------------------------------------------------------------------------------------------- -// static function: GetPave -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool GetPave(const int theEdgeIndex, const bool isFirst, const BOPDS_PDS& theDS, @@ -1855,10 +1833,8 @@ bool GetPave(const int theEdgeIndex, return true; } -// ---------------------------------------------------------------------------------------------------- -// static function: FindFromUEdge -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FindFromUEdge( const TopoDS_Edge& theUE1Old, const TopoDS_Edge& theUE2Old, @@ -1968,10 +1944,8 @@ bool FindFromUEdge( return true; } -// ---------------------------------------------------------------------------------------------------- -// static function: FindFromVEdge -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FindFromVEdge( const BOPDS_Pave& thePrevPave, const bool& isOnUEdge, @@ -2409,10 +2383,8 @@ bool FindFromVEdge( return true; } -// ---------------------------------------------------------------------------------------------------- -// static function: RemoveEdges -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + void RemoveEdges(const TopoDS_Compound& theSourceComp, const NCollection_List& theListToRemove, TopoDS_Compound& theResultComp) @@ -2440,10 +2412,8 @@ void RemoveEdges(const TopoDS_Compound& theSourceComp, theResultComp = aComp; } -// ---------------------------------------------------------------------------------------------------- -// static function: FilterSectionEdges -// purpose: -// ---------------------------------------------------------------------------------------------------- +//================================================================================================= + bool FilterSectionEdges(const NCollection_Vector& theBCurves, const TopoDS_Face& theSecPlane, const BOPDS_PDS& theDS, diff --git a/src/ModelingAlgorithms/TKBool/BRepProj/BRepProj_Projection.cxx b/src/ModelingAlgorithms/TKBool/BRepProj/BRepProj_Projection.cxx index 2c80e2c4b7..393ea595e0 100644 --- a/src/ModelingAlgorithms/TKBool/BRepProj/BRepProj_Projection.cxx +++ b/src/ModelingAlgorithms/TKBool/BRepProj/BRepProj_Projection.cxx @@ -148,10 +148,7 @@ void BRepProj_Projection::BuildSection(const TopoDS_Shape& theShape, const TopoD } } -//======================================================================= -// function : BRepProj_Projection -// purpose : Cylindrical Projection -//======================================================================= +//================================================================================================= BRepProj_Projection::BRepProj_Projection(const TopoDS_Shape& Wire, const TopoDS_Shape& Shape, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx index b8e3ed6339..4d22a4a1f4 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx @@ -445,10 +445,8 @@ void TopOpeBRep_FacesFiller::ResetDSC() myDSCIL.Clear(); } -//======================================================================= -// function : ProcessVPInotonR -// purpose : Same as ProcessVPnotonR. -//======================================================================= +//================================================================================================= + void TopOpeBRep_FacesFiller::ProcessVPInotonR(TopOpeBRep_VPointInterIterator& VPI) { const TopOpeBRep_VPointInter& VP = VPI.CurrentVP(); diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx index 59387b53d0..66efaa71c2 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx @@ -615,10 +615,8 @@ double TopOpeBRep_FacesIntersector::ToleranceMax(const TopoDS_Shape& S, } // modified by NIZHNY-MKK Mon Apr 2 12:18:30 2001.BEGIN -// ================================================================================================ -// static function: TestWLineAlongRestriction -// purpose: -// ================================================================================================ +//================================================================================================= + static bool TestWLineAlongRestriction(const occ::handle& theWLine, const int theRank, const occ::handle& theSurface, @@ -664,10 +662,8 @@ static bool TestWLineAlongRestriction(const occ::handle& th return result; } -// ================================================================================================ -// static function: BuildRLineBasedOnWLine -// purpose: -// ================================================================================================ +//================================================================================================= + static occ::handle BuildRLineBasedOnWLine( const occ::handle& theWLine, const occ::handle& theArc, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInterClassifier.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInterClassifier.cxx index f399314e71..10ef69eb32 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInterClassifier.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_VPointInterClassifier.cxx @@ -204,10 +204,8 @@ double TopOpeBRep_VPointInterClassifier::EdgeParameter() const } // modified by NIZHNY-MKK Mon Jun 19 11:47:23 2000.BEGIN -//======================================================================= -// static function : SlowClassifyOnBoundary -// purpose : -//======================================================================= +//================================================================================================= + static TopAbs_State SlowClassifyOnBoundary(const gp_Pnt& thePointToClassify, const gp_Pnt2d& thePoint2dToClassify, BRepClass_FaceClassifier& theSlowClassifier, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx index 00eb33c562..4eb96b1f45 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx @@ -86,10 +86,8 @@ TopOpeBRepBuild_Builder::TopOpeBRepBuild_Builder(const TopOpeBRepDS_BuildTool& B } // modified by NIZHNY-MZV Sat May 6 10:04:49 2000 -//======================================================================= -// function : ~TopOpeBRepBuild_Builder -// purpose : virtual destructor -//======================================================================= +//================================================================================================= + TopOpeBRepBuild_Builder::~TopOpeBRepBuild_Builder() = default; //================================================================================================= @@ -562,10 +560,8 @@ bool TopOpeBRepBuild_Builder::Reverse(const TopAbs_State ToBuild1, const TopAbs_ return rev; } -//======================================================================= -// function : Orient -// purpose : reverse the orientation -//======================================================================= +//================================================================================================= + TopAbs_Orientation TopOpeBRepBuild_Builder::Orient(const TopAbs_Orientation Ori, const bool Reverse) { return !Reverse ? Ori : TopAbs::Complement(Ori); @@ -1056,10 +1052,7 @@ void TopOpeBRepBuild_Builder::SplitFace(const TopoDS_Shape& Foriented, return; } -//======================================================================= -// function : SplitFace1 -// purpose : tout dans le meme edge set -//======================================================================= +//================================================================================================= void TopOpeBRepBuild_Builder::SplitFace1(const TopoDS_Shape& Foriented, const TopAbs_State ToBuild1, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx index be38017b88..e5c56a33fe 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx @@ -1176,10 +1176,7 @@ static void MakeEdge( mymapEdgLEdg = mapEdgLEdg; } -//======================================================================= -// function : SameSupport -// purpose : Edges SameSupport ou pas -//======================================================================= +//================================================================================================= bool SameSupport(const TopoDS_Edge& E1, const TopoDS_Edge& E2) { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx index b0a4e0d1b8..6d07d48493 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx @@ -416,11 +416,8 @@ void TopOpeBRepBuild_Builder::GCopyList(const NCollection_List& Li } } -//======================================================================= -// function : GCopyList -// purpose : -// copy de Lin dans Lou -//======================================================================= +//================================================================================================= + void TopOpeBRepBuild_Builder::GCopyList(const NCollection_List& Lin, NCollection_List& Lou) { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx index 2c3c888356..48a5274dd1 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx @@ -67,10 +67,8 @@ void TopOpeBRepBuild_Builder::PrintGeo(const TopoDS_Shape& S) void TopOpeBRepBuild_Builder::PrintGeo(const TopoDS_Shape&) {} #endif -//======================================================================= -// function : PrintSur -// purpose : print the name of a surface -//======================================================================= +//================================================================================================= + #ifdef OCCT_DEBUG void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& F) { @@ -116,10 +114,8 @@ void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& F) void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face&) {} #endif -//======================================================================= -// function : PrintCur -// purpose : print the name of a curve -//======================================================================= +//================================================================================================= + #ifdef OCCT_DEBUG void TopOpeBRepBuild_Builder::PrintCur(const TopoDS_Edge& E) { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx index bac1c63f6f..41ee22ea9c 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx @@ -1256,10 +1256,7 @@ int TopOpeBRepBuild_Builder::KPiskoletge() return 1; } -//======================================================================= -// function : KPisdisj -// purpose : detection shapes disjoints -//======================================================================= +//================================================================================================= int TopOpeBRepBuild_Builder::KPisdisj() { @@ -2166,10 +2163,8 @@ int TopOpeBRepBuild_Builder::KPreturn(const int b) } // modified by NIZHNY-MKK Tue May 23 09:48:47 2000.BEGIN -//===================================================================================================== -// static function : LocalKPisdisjanalyse -// purpose: -//===================================================================================================== +//================================================================================================= + static void LocalKPisdisjanalyse(const TopAbs_State Stsol1, const TopAbs_State Stsol2, const TopOpeBRepBuild_KPart_Operation& theOperation, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx index 62eb161158..9ae5e71c96 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx @@ -55,10 +55,8 @@ // define parameter division number as 10*e^(-PI) = 0.43213918 const double PAR_T = 0.43213918; -//======================================================================= -// function TopOpeBRepBuild_Tools::FindState -// purpose : -//======================================================================= +//================================================================================================= + void TopOpeBRepBuild_Tools::FindState( const TopoDS_Shape& aSubsh, const TopAbs_State aState, @@ -91,10 +89,8 @@ void TopOpeBRepBuild_Tools::FindState( } } -//======================================================================= -// function TopOpeBRepBuild_Tools::PropagateState -// purpose : -//======================================================================= +//================================================================================================= + void TopOpeBRepBuild_Tools::PropagateState( const NCollection_DataMap& aSplShapesState, const NCollection_IndexedMap& aShapesToRestMap, diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools_1.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools_1.cxx index da9a2b8e47..c77ca7e1a0 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools_1.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_Tools_1.cxx @@ -97,10 +97,8 @@ void TopOpeBRepBuild_Tools::CorrectCurveOnSurface(const TopoDS_Shape& S, const d } } -//======================================================================= -// Function : CorrectEdgeTolerance -// purpose : Correct tolerances for Edge -//======================================================================= +//================================================================================================= + void CorrectEdgeTolerance(const TopoDS_Edge& myShape, const TopoDS_Face& S, const double aMaxTol) { // diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx index 36693aec7c..84386a803d 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx @@ -501,10 +501,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole() } // MergeKPartiskole -//======================================================================= -// function : KPiskole -// purpose : detection faces collees -//======================================================================= +//================================================================================================= int TopOpeBRepBuild_Builder::KPiskole() { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx index 8cad5bdeae..065ea53254 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx @@ -302,12 +302,8 @@ static TopAbs_Orientation FUN_ReOrientIntExtEdge(const TopoDS_Edge& FRE, return result; } -//---------------------------------------------------------------------------- +//================================================================================================= -//-- ofv -------------------------------------------------------------------- -// function : FUN_CheckORI -// purpose : -//---------------------------------------------------------------------------- static int FUN_CheckORI(TopAbs_Orientation O1, TopAbs_Orientation O2) { int result; diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx index 69f1a28b25..2b9901247d 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx @@ -958,10 +958,7 @@ void TopOpeBRepDS_BuildTool::UpdateEdge(const TopoDS_Shape& Ein, TopoDS_Shape& E } } -//======================================================================= -// function : Project -// purpose : project a vertex on a curve -//======================================================================= +//================================================================================================= static bool Project(const occ::handle& C, const TopoDS_Vertex& V, double& p) { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx index a41ec5c138..d4bf6c24f4 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx @@ -109,10 +109,7 @@ void TopOpeBRepTool_FuseEdges::Edges( theMapLstEdg = myMapLstEdg; } -//======================================================================= -// function : ResultEdges -// purpose : returns all the fused edges -//======================================================================= +//================================================================================================= void TopOpeBRepTool_FuseEdges::ResultEdges(NCollection_DataMap& theMapEdg) { @@ -266,10 +263,7 @@ void TopOpeBRepTool_FuseEdges::BuildListEdges() myResultEdgesDone = false; } -//======================================================================= -// function : BuildListResultEdges -// purpose : Build the result fused edges -//======================================================================= +//================================================================================================= void TopOpeBRepTool_FuseEdges::BuildListResultEdges() { @@ -608,10 +602,7 @@ bool TopOpeBRepTool_FuseEdges::NextConnexEdge(const TopoDS_Vertex& theVertex, return HasConnex; } -//======================================================================= -// function : SameSupport -// purpose : Edges SameSupport ou pas -//======================================================================= +//================================================================================================= bool TopOpeBRepTool_FuseEdges::SameSupport(const TopoDS_Edge& E1, const TopoDS_Edge& E2) const { diff --git a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx index 1889c4b48b..10b5e14ee9 100644 --- a/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx +++ b/src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx @@ -1035,10 +1035,7 @@ bool TopOpeBRepTool_REGUW::REGU(const int istep, return true; } -//======================================================================= -// function : REGU -// purpose : complete regularization -//======================================================================= +//================================================================================================= bool TopOpeBRepTool_REGUW::REGU() { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeDPrism.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeDPrism.cxx index 95112085b6..46f6208893 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeDPrism.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeDPrism.cxx @@ -147,10 +147,7 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape& Sbase, #endif } -//======================================================================= -// function : Add -// purpose : add sliding faces and edges -//======================================================================= +//================================================================================================= void BRepFeat_MakeDPrism::Add(const TopoDS_Edge& E, const TopoDS_Face& F) { @@ -414,10 +411,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& Until) } } -//======================================================================= -// function : Perform -// purpose : feature limited by two shapes -//======================================================================= +//================================================================================================= void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& From, const TopoDS_Shape& Until) { @@ -611,10 +605,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& From, const TopoDS_Shape& } } -//======================================================================= -// function : Perform -// purpose : feature semi-infinie -//======================================================================= +//================================================================================================= void BRepFeat_MakeDPrism::PerformUntilEnd() { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.cxx index 0a6e2445d0..43f3169aee 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeLinearForm.cxx @@ -835,10 +835,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase, } } -//======================================================================= -// function : Add -// purpose : add des element de collage -//======================================================================= +//================================================================================================= void BRepFeat_MakeLinearForm::Add(const TopoDS_Edge& E, const TopoDS_Face& F) { @@ -1252,10 +1249,7 @@ bool BRepFeat_MakeLinearForm::Propagate(NCollection_List& SliList, return result; } -//======================================================================= -// function : MajMap -// purpose : management of descendants -//======================================================================= +//================================================================================================= static void MajMap( const TopoDS_Shape& theB, @@ -1300,10 +1294,7 @@ static void MajMap( } } -//======================================================================= -// function : SetGluedFaces -// purpose : management of faces of gluing -//======================================================================= +//================================================================================================= static void SetGluedFaces( const NCollection_DataMap, TopTools_ShapeMapHasher>& diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx index a737c19076..e5bb4690de 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePipe.cxx @@ -269,10 +269,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& Until) GlobalPerform(); } -//======================================================================= -// function : Perform -// purpose : between From and Until -//======================================================================= +//================================================================================================= void BRepFeat_MakePipe::Perform(const TopoDS_Shape& From, const TopoDS_Shape& Until) { @@ -354,10 +351,7 @@ occ::handle BRepFeat_MakePipe::BarycCurve() return myBCurve; } -//======================================================================= -// function : MajMap -// purpose : management of descendants -//======================================================================= +//================================================================================================= static void MajMap( const TopoDS_Shape& theB, diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.cxx index 4cea13ee32..b08588ebaa 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakePrism.cxx @@ -1102,10 +1102,7 @@ int SensOfPrism(const occ::handle& C, const TopoDS_Shape& Until) return sens; } -//======================================================================= -// function : MajMap -// purpose : management of descendants -//======================================================================= +//================================================================================================= static void MajMap( const TopoDS_Shape& theB, @@ -1150,10 +1147,7 @@ static void MajMap( } } -//======================================================================= -// function : MajMap -// purpose : management of descendants -//======================================================================= +//================================================================================================= static occ::handle TestCurve(const TopoDS_Shape& Base, const gp_Vec& V) { @@ -1171,10 +1165,7 @@ static occ::handle TestCurve(const TopoDS_Shape& Base, const gp_Vec& return theLin; } -//======================================================================= -// function : ToFuse -// purpose : face SameDomaine or not -//======================================================================= +//================================================================================================= static bool ToFuse(const TopoDS_Face& F1, const TopoDS_Face& F2) { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.cxx index e8b97be115..1a02df7d96 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevol.cxx @@ -327,10 +327,7 @@ void BRepFeat_MakeRevol::Perform(const double Angle) } } -//======================================================================= -// function : Perform -// purpose : feature till shape Until -//======================================================================= +//================================================================================================= void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until) { @@ -461,10 +458,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until) } } -//======================================================================= -// function : Perform -// purpose : feature limited by two shapes -//======================================================================= +//================================================================================================= void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& From, const TopoDS_Shape& Until) { @@ -867,10 +861,7 @@ static void VerifGluedFaces( } } -//======================================================================= -// function : MajMap -// purpose : management of descendants -//======================================================================= +//================================================================================================= static void MajMap( const TopoDS_Shape& theB, @@ -915,10 +906,7 @@ static void MajMap( } } -//======================================================================= -// function : ToFuse -// purpose : two faces samedomaine or not -//======================================================================= +//================================================================================================= bool ToFuse(const TopoDS_Face& F1, const TopoDS_Face& F2) { diff --git a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.cxx b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.cxx index 74f5972e0a..a9b62296bd 100644 --- a/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.cxx +++ b/src/ModelingAlgorithms/TKFeat/BRepFeat/BRepFeat_MakeRevolutionForm.cxx @@ -1072,10 +1072,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase, } } -//======================================================================= -// function : Add -// purpose : add elements of gluing -//======================================================================= +//================================================================================================= void BRepFeat_MakeRevolutionForm::Add(const TopoDS_Edge& E, const TopoDS_Face& F) { @@ -1845,10 +1842,7 @@ bool BRepFeat_MakeRevolutionForm::Propagate(NCollection_List& SliL return result; } -//======================================================================= -// function : MajMap -// purpose : management of descendants -//======================================================================= +//================================================================================================= static void MajMap( const TopoDS_Shape& theB, @@ -1895,10 +1889,7 @@ static void MajMap( } } -//======================================================================= -// function : SetGluedFaces -// purpose : managemnet of sliding faces -//======================================================================= +//================================================================================================= static void SetGluedFaces( const NCollection_DataMap, TopTools_ShapeMapHasher>& diff --git a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx index b2972fa90b..e8f62ccea9 100644 --- a/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx +++ b/src/ModelingAlgorithms/TKFillet/BRepBlend/BRepBlend_RstRstLineBuilder.cxx @@ -280,10 +280,7 @@ void BRepBlend_RstRstLineBuilder::Perform(Blend_RstRstFunction& Func, done = true; } -//======================================================================= -// function : PerformFirstSection -// purpose : Creation of the first section -//======================================================================= +//================================================================================================= bool BRepBlend_RstRstLineBuilder::PerformFirstSection(Blend_RstRstFunction& Func, Blend_SurfCurvFuncInv& Finv1, @@ -1294,10 +1291,7 @@ bool BRepBlend_RstRstLineBuilder::Recadre2(Blend_RstRstFunction& Func, return false; } -//======================================================================= -// function : Recadre -// purpose : This is the end of curve rst1 -//======================================================================= +//================================================================================================= bool BRepBlend_RstRstLineBuilder::Recadre1(Blend_CurvPointFuncInv& FinvP, math_Vector& Solinv, @@ -1368,10 +1362,7 @@ bool BRepBlend_RstRstLineBuilder::Recadre1(Blend_CurvPointFuncInv& FinvP return false; } -//======================================================================= -// function : Recadre2 -// purpose : This is the end of curve rst2 -//======================================================================= +//================================================================================================= bool BRepBlend_RstRstLineBuilder::Recadre2(Blend_CurvPointFuncInv& FinvP, math_Vector& Solinv, diff --git a/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_0.cxx b/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_0.cxx index 6213e869bf..8536cb8374 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_0.cxx +++ b/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_0.cxx @@ -278,10 +278,8 @@ void ChFi3d_Boite(const gp_Pnt2d& p1, Dv = Mv - mv; } -//======================================================================= -// function : EnlargeBox and its friends. -// purpose : -//======================================================================= +//================================================================================================= + static occ::handle Geometry(TopOpeBRepDS_DataStructure& DStr, const int ind) { if (ind == 0) @@ -3331,10 +3329,7 @@ TopoDS_Edge ChFi3d_EdgeFromV1(const TopoDS_Vertex& V1, } } -//======================================================================= -// function : ConvTol2dToTol3d -// purpose : Comme son nom l indique. -//======================================================================= +//================================================================================================= double ChFi3d_ConvTol2dToTol3d(const occ::handle& S, const double tol2d) { diff --git a/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_2.cxx b/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_2.cxx index f0c4acf729..af09efea7e 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_2.cxx +++ b/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_Builder_2.cxx @@ -305,10 +305,7 @@ static bool BonVoisin(const gp_Pnt& Point, return bonvoisin; } -//======================================================================= -// function : Projection -// purpose : Projects a point on a curve -//======================================================================= +//================================================================================================= static bool Projection(Extrema_ExtPC& PExt, const gp_Pnt& P, @@ -453,10 +450,7 @@ static bool IsInput(const gp_Vec& Vec, const TopoDS_Vertex& Ve, const TopoDS_Fac return ((Angle >= amin) && (Angle <= amax)); } -//======================================================================= -// function : IsG1 -// purpose : Find a neighbor G1 by an edge -//======================================================================= +//================================================================================================= static bool IsG1(const ChFiDS_Map& TheMap, const TopoDS_Edge& E, diff --git a/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_ChBuilder.cxx b/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_ChBuilder.cxx index 7a5f21a1de..0a908d9eca 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_ChBuilder.cxx +++ b/src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_ChBuilder.cxx @@ -516,10 +516,7 @@ void ChFi3d_ChBuilder::GetDistAngle(const int IC, double& Dis, double& Angle) co chsp->GetDistAngle(Dis, Angle); } -//======================================================================= -// function : SetMode -// purpose : set the mode of chamfer -//======================================================================= +//================================================================================================= void ChFi3d_ChBuilder::SetMode(const ChFiDS_ChamfMode theMode) { diff --git a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.cxx b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.cxx index 491f59b02f..e2809667d7 100644 --- a/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.cxx +++ b/src/ModelingAlgorithms/TKFillet/ChFiDS/ChFiDS_Spine.cxx @@ -854,10 +854,8 @@ gp_Circ ChFiDS_Spine::Circle() const return gp_Circ(A, myCurve.Circle().Radius()); } -//======================================================================= -// function : SetErrorStatus -// purpose : met a jour le statut d'erreur -//======================================================================= +//================================================================================================= + void ChFiDS_Spine::SetErrorStatus(const ChFiDS_ErrorStatus state) { errorstate = state; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.lxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.lxx index 4ce38fc7ce..460da26ced 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatcher.lxx @@ -97,10 +97,7 @@ inline void Geom2dHatch_Hatcher::Clear() ClrElements(); } -//======================================================================= -// Function : Element -// Purpose : Returns the IndE-th element. -//======================================================================= +//================================================================================================= inline Geom2dHatch_Element& Geom2dHatch_Hatcher::Element(const int IndE) { @@ -125,10 +122,7 @@ inline const Geom2dAdaptor_Curve& Geom2dHatch_Hatcher::ElementCurve(const int In return Element.Curve(); } -//======================================================================= -// Function : Hatching -// Purpose : Returns the IndH-th hatching. -//======================================================================= +//================================================================================================= inline Geom2dHatch_Hatching& Geom2dHatch_Hatcher::Hatching(const int IndH) { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatching.cxx b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatching.cxx index b25489c107..187298721e 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatching.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Geom2dHatch/Geom2dHatch_Hatching.cxx @@ -130,20 +130,14 @@ bool Geom2dHatch_Hatching::IsDone() const return myIsDone; } -//======================================================================= -// Function : SetStatus -// Purpose : Sets the error status. -//======================================================================= +//================================================================================================= void Geom2dHatch_Hatching::Status(const HatchGen_ErrorStatus theStatus) { myStatus = theStatus; } -//======================================================================= -// Function : Status -// Purpose : Returns the error status. -//======================================================================= +//================================================================================================= HatchGen_ErrorStatus Geom2dHatch_Hatching::Status() const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_CorrectedFrenet.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_CorrectedFrenet.cxx index a37b6ead89..004a5c201d 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_CorrectedFrenet.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_CorrectedFrenet.cxx @@ -335,10 +335,8 @@ bool GeomFill_CorrectedFrenet::SetCurve(const occ::handle& C) return isFrenet; } -//=============================================================== -// Function : Init -// Purpose : Compute angle's law -//=============================================================== +//================================================================================================= + void GeomFill_CorrectedFrenet::Init() { EvolAroundT = new Law_Composite(); diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Darboux.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Darboux.cxx index 384f9b78f2..aec68fd427 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Darboux.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Darboux.cxx @@ -57,10 +57,8 @@ static gp_Vec DDeriv(const gp_Vec& F, const gp_Vec& DF, const gp_Vec& D2F) return Result; } -//======================================================================= -// function : NormalD0 -// purpose : computes Normal to Surface -//======================================================================= +//================================================================================================= + static void NormalD0(const double U, const double V, const occ::handle& Surf, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_DraftTrihedron.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_DraftTrihedron.cxx index 487fba7b5c..2b3019a8ab 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_DraftTrihedron.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_DraftTrihedron.cxx @@ -59,10 +59,8 @@ void GeomFill_DraftTrihedron::SetAngle(const double Angle) myCos = std::cos(myAngle); } -//======================================================================= -// function : D0 -// purpose : calculation of trihedron -//======================================================================= +//================================================================================================= + bool GeomFill_DraftTrihedron::D0(const double Param, gp_Vec& Tangent, gp_Vec& Normal, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronAC.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronAC.cxx index 9dcf4b7fba..348a13c292 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronAC.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronAC.cxx @@ -44,20 +44,15 @@ GeomFill_GuideTrihedronAC::GeomFill_GuideTrihedronAC(const occ::handle GeomFill_GuideTrihedronAC::Guide() const { return myGuide; } -//======================================================================= -// function : D0 -// purpose : calculation of trihedron -//======================================================================= +//================================================================================================= + bool GeomFill_GuideTrihedronAC::D0(const double Param, gp_Vec& Tangent, gp_Vec& Normal, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx index 7c6bc2c895..594e533083 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_GuideTrihedronPlan.cxx @@ -186,10 +186,8 @@ void GeomFill_GuideTrihedronPlan::Init() } // for_ii } -//======================================================================= -// function : SetCurve -// purpose : calculation of trihedron -//======================================================================= +//================================================================================================= + bool GeomFill_GuideTrihedronPlan::SetCurve(const occ::handle& C) { myCurve = C; @@ -198,20 +196,15 @@ bool GeomFill_GuideTrihedronPlan::SetCurve(const occ::handle& C return true; } -//======================================================================= -// function : Guide -// purpose : calculation of trihedron -//======================================================================= +//================================================================================================= occ::handle GeomFill_GuideTrihedronPlan::Guide() const { return myGuide; } -//======================================================================= -// function : D0 -// purpose : calculation of trihedron -//======================================================================= +//================================================================================================= + bool GeomFill_GuideTrihedronPlan::D0(const double Param, gp_Vec& Tangent, gp_Vec& Normal, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx index fedc882c21..6e4ab675af 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx @@ -175,10 +175,8 @@ GeomFill_LocationGuide::GeomFill_LocationGuide( WithTrans = false; } -//================================================================== -// Function: SetRotation -// Purpose : init et force la Rotation -//================================================================== +//================================================================================================= + void GeomFill_LocationGuide::SetRotation(const double PrecAngle, double& LastAngle) { if (myCurve.IsNull()) @@ -529,10 +527,8 @@ bool GeomFill_LocationGuide::SetCurve(const occ::handle& C) return myStatus == GeomFill_PipeOk; } -//================================================================== -// Function: GetCurve -// Purpose : return the trajectoire -//================================================================== +//================================================================================================= + const occ::handle& GeomFill_LocationGuide::GetCurve() const { return myCurve; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.cxx index bdc2a42232..4883a9aa6b 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.cxx @@ -317,10 +317,7 @@ GeomFill_Pipe::GeomFill_Pipe(const occ::handle& Path, //======================================================================= -//======================================================================= -// function : GeomFill_Pipe -// purpose : pipe avec courbe guide -//======================================================================= +//================================================================================================= GeomFill_Pipe::GeomFill_Pipe(const occ::handle& Path, const occ::handle& Guide, @@ -339,10 +336,7 @@ GeomFill_Pipe::GeomFill_Pipe(const occ::handle& Path, Init(Path, Guide, FirstSect, byACR, rotat); } -//======================================================================= -// function : Init -// purpose : pipe avec courbe guide -//======================================================================= +//================================================================================================= void GeomFill_Pipe::Init(const occ::handle& Path, const occ::handle& Guide, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS_1.cxx b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS_1.cxx index 2f8ca72dd9..4e190b3206 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS_1.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/GeomInt/GeomInt_IntSS_1.cxx @@ -1063,10 +1063,8 @@ void GeomInt_IntSS::MakeCurve(const int Index, } } -//======================================================================= -// function : TreatRLine -// purpose : Approx of Restriction line -//======================================================================= +//================================================================================================= + void GeomInt_IntSS::TreatRLine(const occ::handle& theRL, const occ::handle& theHS1, const occ::handle& theHS2, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_PointOnElement.cxx b/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_PointOnElement.cxx index 84439ae99a..681c0baae2 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_PointOnElement.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_PointOnElement.cxx @@ -201,10 +201,7 @@ bool HatchGen_PointOnElement::IsDifferent(const HatchGen_PointOnElement& Point, || (mySegBeg != Point.mySegBeg) || (mySegEnd != Point.mySegEnd)); } -//======================================================================= -// Function : Dump -// Purpose : Dump of the point on element -//======================================================================= +//================================================================================================= void HatchGen_PointOnElement::Dump(const int Index) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic.cxx index 3d3ad515d3..bd3256d44a 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic.cxx @@ -104,10 +104,8 @@ void SetBinfBsupFromIntAna2d(const IntAna2d_AnaIntersection& theIntAna2d, const double maxtol, const double LIMITE); -//======================================================================= -// function : Perform -// purpose : Line - Parabola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Lin2d& L, const IntRes2d_Domain& DL, const gp_Parab2d& P, @@ -223,10 +221,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L, } } -//======================================================================= -// function : Perform -// purpose : Line - Hyperbola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Lin2d& L, const IntRes2d_Domain& DL, const gp_Hypr2d& H, @@ -326,10 +322,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L, } } -//======================================================================= -// function : Perform -// purpose : Circle - Parabola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Circ2d& C, const IntRes2d_Domain& DC, const gp_Parab2d& P, @@ -430,10 +424,8 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& C, } } -//======================================================================= -// function : Perform -// purpose : Circle - Ellipse -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Circ2d& C, const IntRes2d_Domain& DC, const gp_Elips2d& E, @@ -479,10 +471,8 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& C, this->SetValues(Inter); } -//======================================================================= -// function : Perform -// purpose : Circle - Hyperbola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Circ2d& C, const IntRes2d_Domain& DC, const gp_Hypr2d& H, @@ -580,10 +570,8 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& C, } } -//======================================================================= -// function : Perform -// purpose : Parabola - Parabola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Parab2d& P1, const IntRes2d_Domain& DP1, const gp_Parab2d& P2, @@ -683,10 +671,8 @@ void IntCurve_IntConicConic::Perform(const gp_Parab2d& P1, } } -//======================================================================= -// function : Perform -// purpose : Ellipse - Parabola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Elips2d& E, const IntRes2d_Domain& DE, const gp_Parab2d& P, @@ -799,10 +785,8 @@ void IntCurve_IntConicConic::Perform(const gp_Elips2d& E, } } -//======================================================================= -// function : Perform -// purpose : Parabola - Hyperbola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Parab2d& P, const IntRes2d_Domain& DP, const gp_Hypr2d& H, @@ -900,10 +884,7 @@ void IntCurve_IntConicConic::Perform(const gp_Parab2d& P, } } -//======================================================================= -// function : Perform -// purpose : Ellipse - Ellipse -//======================================================================= +//================================================================================================= void IntCurve_IntConicConic::Perform(const gp_Elips2d& E1, const IntRes2d_Domain& DE1, @@ -950,10 +931,8 @@ void IntCurve_IntConicConic::Perform(const gp_Elips2d& E1, this->SetValues(Inter); } -//======================================================================= -// function : Perform -// purpose : Ellipse - Hyperbola -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Elips2d& E, const IntRes2d_Domain& DE, const gp_Hypr2d& H, @@ -1057,10 +1036,7 @@ void IntCurve_IntConicConic::Perform(const gp_Elips2d& E, } } -//======================================================================= -// function : Perform -// purpose : Hyperbola - Hyperbola -//======================================================================= +//================================================================================================= void IntCurve_IntConicConic::Perform(const gp_Hypr2d& H1, const IntRes2d_Domain& DH1, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic_1.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic_1.cxx index c9430a59c3..8dfb306c07 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic_1.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntCurve/IntCurve_IntConicConic_1.cxx @@ -2736,10 +2736,8 @@ void ProjectOnLAndIntersectWithLDomain(const gp_Elips2d& Ellipse, } } -//======================================================================= -// function : Perform -// purpose : Line - Ellipse -//======================================================================= +//================================================================================================= + void IntCurve_IntConicConic::Perform(const gp_Lin2d& L, const IntRes2d_Domain& DL, const gp_Elips2d& E, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_GLine.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_GLine.cxx index a1982adb65..db682ce9ff 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_GLine.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_GLine.cxx @@ -358,10 +358,7 @@ void IntPatch_GLine::Replace(const int /*Index*/, const IntPatch_Point& Pnt) //-- svtx(Index) = Pnt; } -//======================================================================= -// function : AddVertex -// purpose : To add a vertex in the list. -//======================================================================= +//================================================================================================= void IntPatch_GLine::AddVertex(const IntPatch_Point& Pnt) { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Intersection.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Intersection.cxx index 346e45371d..fe2f5f6dcd 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Intersection.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Intersection.cxx @@ -1631,10 +1631,8 @@ void IntPatch_Intersection::ParamParamPerfom(const occ::handle& theS1, const occ::handle& theD1, const occ::handle& theS2, @@ -2235,10 +2233,8 @@ double IntPatch_Intersection::DefineUVMaxStep(const occ::handle& theS, const occ::handle& theD, const double theTol, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Point.lxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Point.lxx index 295517c8b4..c56fab6462 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Point.lxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Point.lxx @@ -33,10 +33,8 @@ inline void IntPatch_Point::SetValue(const gp_Pnt& Pt) pt.SetValue(Pt); } -//======================================================================= -////function : SetValue -// purpose : -//======================================================================= +//================================================================================================= + inline void IntPatch_Point::SetValue(const IntSurf_PntOn2S& thePOn2S) { pt = thePOn2S; diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_WLineTool.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_WLineTool.cxx index 926ab2b332..8e137a8f72 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_WLineTool.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_WLineTool.cxx @@ -1722,10 +1722,8 @@ void IntPatch_WLineTool::JoinWLines(NCollection_Sequence& theWL, const Bnd_Box2d& theBoxS1, const Bnd_Box2d& theBoxS2, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_Intersection.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_Intersection.cxx index 3d4ab8d38f..f515cc41f7 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_Intersection.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_Intersection.cxx @@ -389,10 +389,8 @@ bool IntPolyh_Intersection::PerformMaillage(const NCollection_Array1& th return AnalyzeIntersection(theMaillage); } -//======================================================================= -// function : PerformMaillage -// purpose : Computes MaillageAffinage -//======================================================================= +//================================================================================================= + bool IntPolyh_Intersection::PerformMaillage(const NCollection_Array1& theUPars1, const NCollection_Array1& theVPars1, const NCollection_Array1& theUPars2, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_MaillageAffinage.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_MaillageAffinage.cxx index 804734de14..f58c0eef79 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_MaillageAffinage.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntPolyh/IntPolyh_MaillageAffinage.cxx @@ -118,10 +118,8 @@ static void DegeneratedIndex(const NCollection_Array1& Xpars, //======================================================================= typedef BVH_BoxSet IntPolyh_BoxBndTree; -//======================================================================= -// class : IntPolyh_BoxBndTreeSelector -// purpose : Selector of interfering boxes -//======================================================================= +//================================================================================================= + class IntPolyh_BoxBndTreeSelector : public BVH_PairTraverse { public: diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntRes2d/IntRes2d_Domain.cxx b/src/ModelingAlgorithms/TKGeomAlgo/IntRes2d/IntRes2d_Domain.cxx index a33a0e0aa1..4c0105e81b 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntRes2d/IntRes2d_Domain.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntRes2d/IntRes2d_Domain.cxx @@ -51,10 +51,7 @@ void IntRes2d_Domain::SetValues() periodfirst = periodlast = 0.0; } -//======================================================================= -// function : IntRes2d_Domain -// purpose : Creates a bounded Domain. -//======================================================================= +//================================================================================================= IntRes2d_Domain::IntRes2d_Domain(const gp_Pnt2d& Pnt1, const double Par1, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchInside.gxx b/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchInside.gxx index f9a8cb0c53..547d8fcfc8 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchInside.gxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchInside.gxx @@ -37,10 +37,7 @@ IntStart_SearchInside::IntStart_SearchInside(TheFunction& Fu Perform(Func, PS, T, Epsilon); } -//======================================================================= -// function : Perform -// purpose : Search all inside points -//======================================================================= +//================================================================================================= void IntStart_SearchInside::Perform(TheFunction& Func, const ThePSurface& PS, @@ -268,10 +265,7 @@ void IntStart_SearchInside::Perform(TheFunction& Func, done = true; } -//======================================================================= -// function : Perform -// purpose : Test the given inside point -//======================================================================= +//================================================================================================= void IntStart_SearchInside::Perform(TheFunction& Func, const ThePSurface& PS, diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx index bcc08da155..3ca14a56c2 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Intf/Intf_TangentZone.cxx @@ -204,10 +204,7 @@ const Intf_SectionPoint& Intf_TangentZone::GetPoint(const int Index) const return Result(Index); } -//======================================================================= -// function : IsEqual -// purpose : Compare two tangent zone. -//======================================================================= +//================================================================================================= bool Intf_TangentZone::IsEqual(const Intf_TangentZone& Other) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_BSpFunc.cxx b/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_BSpFunc.cxx index b70adc423a..f5eb421a5a 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_BSpFunc.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_BSpFunc.cxx @@ -54,10 +54,7 @@ GeomAbs_Shape Law_BSpFunc::Continuity() const return curv->Continuity(); } -//======================================================================= -// function : NbIntervals -// purpose : Inspirer de GeomAdaptor_Curve -//======================================================================= +//================================================================================================= int Law_BSpFunc::NbIntervals(const GeomAbs_Shape S) const { @@ -134,10 +131,7 @@ int Law_BSpFunc::NbIntervals(const GeomAbs_Shape S) const return myNbIntervals; } -//======================================================================= -// function : Intervals -// purpose : Inspirer de GeomAdaptor_Curve -//======================================================================= +//================================================================================================= void Law_BSpFunc::Intervals(NCollection_Array1& T, const GeomAbs_Shape S) const { diff --git a/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_Composite.cxx b/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_Composite.cxx index d398681a0f..c912f4967b 100644 --- a/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_Composite.cxx +++ b/src/ModelingAlgorithms/TKGeomAlgo/Law/Law_Composite.cxx @@ -78,10 +78,8 @@ int Law_Composite::NbIntervals(const GeomAbs_Shape S) const return nbr_interval; } -//======================================================================= -// function : Intervals -// purpose : Meme simplifications.... -//======================================================================= +//================================================================================================= + void Law_Composite::Intervals(NCollection_Array1& T, const GeomAbs_Shape S) const { NCollection_List>::Iterator It(funclist); diff --git a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx index 14b9dc768b..2e5c8bab50 100644 --- a/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx +++ b/src/ModelingAlgorithms/TKHLR/HLRTopoBRep/HLRTopoBRep_OutLiner.cxx @@ -291,10 +291,7 @@ void HLRTopoBRep_OutLiner::ProcessFace( B.Add(S, NF); // add the face in the shell. } -//======================================================================= -// function : BuildShape -// purpose : Build the OutLinedShape -//======================================================================= +//================================================================================================= void HLRTopoBRep_OutLiner::BuildShape( NCollection_DataMap& MST) diff --git a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Triangulator.cxx b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Triangulator.cxx index 74e81c77b0..2dd0816275 100644 --- a/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Triangulator.cxx +++ b/src/ModelingAlgorithms/TKMesh/BRepMesh/BRepMesh_Triangulator.cxx @@ -166,10 +166,8 @@ void BRepMesh_Triangulator::addTriange34(const NCollection_Sequence& theW, } } -//======================================================================= -// function : checkCondition -// purpose : auxiliary for addTriange34 -//======================================================================= +//================================================================================================= + bool BRepMesh_Triangulator::checkCondition(const int (&theNodes)[4], const NCollection_Sequence& theW) { diff --git a/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset.cxx b/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset.cxx index c812c8a222..eb9d9b69a0 100644 --- a/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset.cxx +++ b/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset.cxx @@ -3756,10 +3756,7 @@ const BRepAlgo_Image& BRepOffset_MakeOffset::OffsetFacesFromShapes() const // Modified by skv - Tue Mar 15 16:20:43 2005 Begin -//======================================================================= -// function : GetJoinType -// purpose : Query offset join type. -//======================================================================= +//================================================================================================= GeomAbs_JoinType BRepOffset_MakeOffset::GetJoinType() const { @@ -5390,10 +5387,8 @@ void RemoveSeamAndDegeneratedEdges(const TopoDS_Face& theFace, const TopoDS_Face } } -//======================================================================= -// function : IsSolid -// purpose : Checks if the shape is solid -//======================================================================= +//================================================================================================= + bool IsSolid(const TopoDS_Shape& theS) { TopExp_Explorer aExp(theS, TopAbs_SOLID); diff --git a/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset_1.cxx b/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset_1.cxx index 7b0182a9ab..bbaf52aaa4 100644 --- a/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset_1.cxx +++ b/src/ModelingAlgorithms/TKOffset/BRepOffset/BRepOffset_MakeOffset_1.cxx @@ -256,10 +256,8 @@ static void UpdateOrigins( } } -//======================================================================= -// function : UpdateImages -// purpose : Updating images of the shapes -//======================================================================= +//================================================================================================= + static void UpdateImages( const NCollection_List& theLA, NCollection_DataMap, TopTools_ShapeMapHasher>& @@ -2048,10 +2046,8 @@ bool BRepOffset_BuildOffsetFaces::CheckIfArtificial( return aItLE.More(); } -//======================================================================= -// function : FindInvalidEdges -// purpose : Looking for the invalid edges -//======================================================================= +//================================================================================================= + void BRepOffset_BuildOffsetFaces::FindInvalidEdges( const TopoDS_Face& theF, const NCollection_List& theLFImages, @@ -3987,10 +3983,8 @@ void BRepOffset_BuildOffsetFaces::RemoveInvalidSplitsFromValid( namespace { -//======================================================================= -// function : buildPairs -// purpose : builds pairs of shapes -//======================================================================= +//================================================================================================= + static void buildPairs(const NCollection_IndexedMap& theSMap, NCollection_DataMap, @@ -4019,10 +4013,8 @@ static void buildPairs(const NCollection_IndexedMap, @@ -6922,10 +6914,8 @@ void BRepOffset_BuildOffsetFaces::ProcessCommonEdges( namespace { -//======================================================================= -// function : FindOrigins -// purpose : Looking for the origin edges -//======================================================================= +//================================================================================================= + static void FindOrigins( const NCollection_List& theLFIm1, const NCollection_List& theLFIm2, diff --git a/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeFilling.cxx b/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeFilling.cxx index 31f0619fd9..2f46f512f1 100644 --- a/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeFilling.cxx +++ b/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeFilling.cxx @@ -79,10 +79,8 @@ void BRepOffsetAPI_MakeFilling::LoadInitSurface(const TopoDS_Face& Surf) myFilling.LoadInitSurface(Surf); } -//======================================================================= -// function : Add -// purpose : adds an edge as a constraint -//====================================================================== +//================================================================================================= + int BRepOffsetAPI_MakeFilling::Add(const TopoDS_Edge& Constr, const GeomAbs_Shape Order, const bool IsBound) @@ -111,10 +109,8 @@ int BRepOffsetAPI_MakeFilling::Add(const TopoDS_Face& Support, const GeomAbs_Sha return myFilling.Add(Support, Order); } -//======================================================================= -// function : Add -// purpose : adds a point constraint -//====================================================================== +//================================================================================================= + int BRepOffsetAPI_MakeFilling::Add(const gp_Pnt& Point) { return myFilling.Add(Point); @@ -132,10 +128,8 @@ int BRepOffsetAPI_MakeFilling::Add(const double U, return myFilling.Add(U, V, Support, Order); } -//======================================================================= -// function : Build -// purpose : builds the resulting face -//====================================================================== +//================================================================================================= + void BRepOffsetAPI_MakeFilling::Build(const Message_ProgressRange& /*theRange*/) { myFilling.Build(); diff --git a/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeOffsetShape.cxx b/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeOffsetShape.cxx index 82ed4f3518..942c24e2b1 100644 --- a/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeOffsetShape.cxx +++ b/src/ModelingAlgorithms/TKOffset/BRepOffsetAPI/BRepOffsetAPI_MakeOffsetShape.cxx @@ -129,10 +129,8 @@ bool BRepOffsetAPI_MakeOffsetShape::IsDeleted(const TopoDS_Shape& S) return false; } -//======================================================================= -// function : GetJoinType -// purpose : Query offset join type. -//======================================================================= +//================================================================================================= + GeomAbs_JoinType BRepOffsetAPI_MakeOffsetShape::GetJoinType() const { return myOffsetShape.GetJoinType(); diff --git a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx index 1b068fd43d..458fab6602 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx +++ b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_Builder.cxx @@ -138,10 +138,7 @@ void BRepPrim_Builder::ReverseFace(TopoDS_Face& F) const F.Reverse(); } -//======================================================================= -// function : AddEdgeVertex -// purpose : Add a Vertex to an Edge -//======================================================================= +//================================================================================================= void BRepPrim_Builder::AddEdgeVertex(TopoDS_Edge& E, const TopoDS_Vertex& V, @@ -155,10 +152,7 @@ void BRepPrim_Builder::AddEdgeVertex(TopoDS_Edge& E, myBuilder.UpdateVertex(VV, P, E, Precision::Confusion()); } -//======================================================================= -// function : AddEdgeVertex -// purpose : Add a Vertex to an Edge -//======================================================================= +//================================================================================================= void BRepPrim_Builder::AddEdgeVertex(TopoDS_Edge& E, const TopoDS_Vertex& V, diff --git a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_GWedge.cxx b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_GWedge.cxx index ab0e315bfb..83b2e85f27 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_GWedge.cxx +++ b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_GWedge.cxx @@ -105,10 +105,7 @@ static void BRepPrim_Wedge_Check(const bool V[], const bool E[], const bool W[], throw Standard_DomainError(); } -//======================================================================= -// function : BRepPrim_Wedge_Init -// purpose : Set arrays to false -//======================================================================= +//================================================================================================= static void BRepPrim_Wedge_Init(bool& S, bool V[], bool E[], bool W[], bool F[]) { @@ -462,10 +459,7 @@ gp_Pln BRepPrim_GWedge::Plane(const BRepPrim_Direction d1) return plane; } -//======================================================================= -// function : Face -// purpose : the face in one direction -//======================================================================= +//================================================================================================= const TopoDS_Face& BRepPrim_GWedge::Face(const BRepPrim_Direction d1) { diff --git a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_OneAxis.cxx b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_OneAxis.cxx index 248da9ea78..5591f4d3f8 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_OneAxis.cxx +++ b/src/ModelingAlgorithms/TKPrim/BRepPrim/BRepPrim_OneAxis.cxx @@ -319,10 +319,7 @@ const TopoDS_Shell& BRepPrim_OneAxis::Shell() return myShell; } -//======================================================================= -// function : LateralFace -// purpose : build the lateral face -//======================================================================= +//================================================================================================= const TopoDS_Face& BRepPrim_OneAxis::LateralFace() { @@ -400,10 +397,7 @@ const TopoDS_Face& BRepPrim_OneAxis::LateralFace() return myFaces[FLATERAL]; } -//======================================================================= -// function : TopFace -// purpose : build and return the TopFace -//======================================================================= +//================================================================================================= const TopoDS_Face& BRepPrim_OneAxis::TopFace() { diff --git a/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_NumLinearRegularSweep.cxx b/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_NumLinearRegularSweep.cxx index a0b2437aba..2704b86216 100644 --- a/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_NumLinearRegularSweep.cxx +++ b/src/ModelingAlgorithms/TKPrim/BRepSweep/BRepSweep_NumLinearRegularSweep.cxx @@ -27,10 +27,8 @@ #include #include -//======================================================================= -// function : BRepSweep_NumLinearRegularSweep -// purpose : Create a Regular Sweep. -//======================================================================= +//================================================================================================= + BRepSweep_NumLinearRegularSweep::BRepSweep_NumLinearRegularSweep(const BRepSweep_Builder& aBuilder, const TopoDS_Shape& aGenShape, const Sweep_NumShape& aDirShape) @@ -59,10 +57,7 @@ BRepSweep_NumLinearRegularSweep::BRepSweep_NumLinearRegularSweep(const BRepSweep BRepSweep_NumLinearRegularSweep::~BRepSweep_NumLinearRegularSweep() = default; -//======================================================================= -// function : Shape -// purpose : Returns the global Shape. -//======================================================================= +//================================================================================================= TopoDS_Shape BRepSweep_NumLinearRegularSweep::Shape() { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx index 878871f40e..a00fd598f4 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundData.lxx @@ -26,20 +26,14 @@ inline void ShapeAnalysis_FreeBoundData::SetFreeBound(const TopoDS_Wire& freebou myBound = freebound; } -//======================================================================= -// function : SetArea -// purpose : Sets area of the contour -//======================================================================= +//================================================================================================= inline void ShapeAnalysis_FreeBoundData::SetArea(const double area) { myArea = area; } -//======================================================================= -// function : SetPerimeter -// purpose : Sets perimeter of the contour -//======================================================================= +//================================================================================================= inline void ShapeAnalysis_FreeBoundData::SetPerimeter(const double perimeter) { @@ -78,10 +72,7 @@ inline TopoDS_Wire ShapeAnalysis_FreeBoundData::FreeBound() const return myBound; } -//======================================================================= -// function : Area -// purpose : Returns area of the contour -//======================================================================= +//================================================================================================= inline double ShapeAnalysis_FreeBoundData::Area() const { @@ -138,10 +129,7 @@ inline occ::handle> ShapeAnalysis_FreeBoundD return myNotches; } -//======================================================================= -// function : Notch -// purpose : Returns notch on the contour -//======================================================================= +//================================================================================================= inline TopoDS_Wire ShapeAnalysis_FreeBoundData::Notch(const int index) const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx index 6a31273085..f871c50baa 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeAnalysis/ShapeAnalysis_FreeBoundsProperties.lxx @@ -42,10 +42,7 @@ inline double ShapeAnalysis_FreeBoundsProperties::Tolerance() const return myTolerance; } -//======================================================================= -// function : NbFreeBounds -// purpose : Returns number of free bounds -//======================================================================= +//================================================================================================= inline int ShapeAnalysis_FreeBoundsProperties::NbFreeBounds() const { @@ -83,10 +80,7 @@ inline occ::handle>> ShapeAnalysis_FreeBoundsProperties::OpenFreeBounds() const diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_Modification.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_Modification.cxx index 5af1dd13a7..6182aa0a2b 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_Modification.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeCustom/ShapeCustom_Modification.cxx @@ -27,10 +27,7 @@ void ShapeCustom_Modification::SetMsgRegistrator( myMsgReg = msgreg; } -//======================================================================= -// function : MsgRegistrator -// purpose : Returns message registrator -//======================================================================= +//================================================================================================= occ::handle ShapeCustom_Modification::MsgRegistrator() const { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_EdgeConnect.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_EdgeConnect.cxx index a6841f4f65..e719db4ad1 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_EdgeConnect.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_EdgeConnect.cxx @@ -149,10 +149,7 @@ void ShapeFix_EdgeConnect::Add(const TopoDS_Shape& aShape) } } -//======================================================================= -// function : Build -// purpose : Builds shared vertices -//======================================================================= +//================================================================================================= void ShapeFix_EdgeConnect::Build() { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx index 8aea33bdce..96bd1ded05 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeFix/ShapeFix_Face.cxx @@ -1475,10 +1475,8 @@ bool ShapeFix_Face::FixOrientation( return done; } -//======================================================================= -// function : CheckWire -// purpose : auxiliary for FixMissingSeam -//======================================================================= +//================================================================================================= + //: i7 abv 18 Sep 98: ProSTEP TR9 r0501-ug.stp: algorithm of fixing missing seam changed // test whether the wire is opened on period of periodical surface static bool CheckWire(const TopoDS_Wire& wire, diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx index 6708927daf..0959769454 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeProcess/ShapeProcess_OperLibrary.cxx @@ -876,10 +876,7 @@ static bool splitcommonvertex(const occ::handle& context, return true; } -//======================================================================= -// function : Init -// purpose : Register standard operators -//======================================================================= +//================================================================================================= void ShapeProcess_OperLibrary::Init() { diff --git a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx index 2861d2a291..a80e3e74a8 100644 --- a/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx +++ b/src/ModelingAlgorithms/TKShHealing/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx @@ -4079,10 +4079,8 @@ void ShapeUpgrade_UnifySameDomain::UnifyEdges() myShape = myContext->Apply(myShape); } -//======================================================================= -// function : Build -// purpose : builds the resulting shape -//======================================================================= +//================================================================================================= + void ShapeUpgrade_UnifySameDomain::Build() { TopExp::MapShapesAndAncestors(myInitShape, TopAbs_EDGE, TopAbs_FACE, myEFmap); diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib.cxx index 520809b272..a12719bc99 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib.cxx @@ -76,10 +76,8 @@ static bool IsModifySize(const BRepAdaptor_Surface& theBS, const double theTolV); // -//======================================================================= -// function : Add -// purpose : Add a shape bounding to a box -//======================================================================= +//================================================================================================= + void BRepBndLib::Add(const TopoDS_Shape& S, Bnd_Box& B, bool useTriangulation) { TopExp_Explorer ex; @@ -244,10 +242,8 @@ void BRepBndLib::AddClose(const TopoDS_Shape& S, Bnd_Box& B) } } -//======================================================================= -// function : AddOptimal -// purpose : Add a shape bounding to a box -//======================================================================= +//================================================================================================= + void BRepBndLib::AddOptimal(const TopoDS_Shape& S, Bnd_Box& B, const bool useTriangulation, diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib_1.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib_1.cxx index cad0f1872d..ec1f4cfb0c 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib_1.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepBndLib/BRepBndLib_1.cxx @@ -311,10 +311,8 @@ static bool CheckPoints(const TopoDS_Shape& theS, return (!theOBB.IsVoid()); } -//======================================================================= -// Function : ComputeProperties -// purpose : Computes properties of theS. -//======================================================================= +//================================================================================================= + static void ComputeProperties(const TopoDS_Shape& theS, GProp_GProps& theGCommon) { TopExp_Explorer anExp; diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx index b7d5b74f88..cb0d2608d1 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx @@ -1902,10 +1902,7 @@ void BRepBuilderAPI_Sewing::Init(const double tolerance, Load(TopoDS_Shape()); } -//======================================================================= -// function : Load -// purpose : Loads the context shape -//======================================================================= +//================================================================================================= void BRepBuilderAPI_Sewing::Load(const TopoDS_Shape& theShape) { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepClass3d/BRepClass3d_SolidExplorer.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepClass3d/BRepClass3d_SolidExplorer.cxx index 0bb69d079a..469dc60528 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepClass3d/BRepClass3d_SolidExplorer.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepClass3d/BRepClass3d_SolidExplorer.cxx @@ -405,10 +405,8 @@ bool BRepClass3d_SolidExplorer::PointInTheFace(const TopoDS_Face& theVecD1V); } -//======================================================================= -// function : LimitInfiniteUV -// purpose : Limit infinite parameters -//======================================================================= +//================================================================================================= + static void LimitInfiniteUV(double& U1, double& V1, double& U2, double& V2) { bool infU1 = Precision::IsNegativeInfinite(U1), infV1 = Precision::IsNegativeInfinite(V1), @@ -971,10 +969,7 @@ void BRepClass3d_SolidExplorer::NextShell() myShellExplorer.Next(); } -//======================================================================= -// function : CurrentShell -// purpose : Returns the current shell. -//======================================================================= +//================================================================================================= TopoDS_Shell BRepClass3d_SolidExplorer::CurrentShell() const { @@ -1021,10 +1016,7 @@ void BRepClass3d_SolidExplorer::NextFace() myFaceExplorer.Next(); } -//======================================================================= -// function : CurrentFace -// purpose : Returns the current face. -//======================================================================= +//================================================================================================= TopoDS_Face BRepClass3d_SolidExplorer::CurrentFace() const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx index b3142add2b..43476050e8 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_DistanceSS.cxx @@ -686,10 +686,8 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Shape& theS1, } } -//======================================================================= -// function : Perform -// purpose : Vertex-Vertex -//======================================================================= +//================================================================================================= + void BRepExtrema_DistanceSS::Perform( const TopoDS_Vertex& theS1, const TopoDS_Vertex& theS2, @@ -712,10 +710,8 @@ void BRepExtrema_DistanceSS::Perform( } } -//======================================================================= -// function : Perform -// purpose : Vertex-Edge -//======================================================================= +//================================================================================================= + void BRepExtrema_DistanceSS::Perform( const TopoDS_Vertex& theS1, const TopoDS_Edge& theS2, @@ -770,10 +766,8 @@ void BRepExtrema_DistanceSS::Perform( } } -//======================================================================= -// function : Perform -// purpose : Vertex-Face -//======================================================================= +//================================================================================================= + void BRepExtrema_DistanceSS::Perform( const TopoDS_Vertex& theS1, const TopoDS_Face& theS2, @@ -829,10 +823,8 @@ void BRepExtrema_DistanceSS::Perform( } } -//======================================================================= -// function : Perform -// purpose : Edge-Edge -//======================================================================= +//================================================================================================= + void BRepExtrema_DistanceSS::Perform( const TopoDS_Edge& theS1, const TopoDS_Edge& theS2, @@ -920,10 +912,8 @@ void BRepExtrema_DistanceSS::Perform( } } -//======================================================================= -// function : Perform -// purpose : Edge-Face -//======================================================================= +//================================================================================================= + void BRepExtrema_DistanceSS::Perform( const TopoDS_Edge& theS1, const TopoDS_Face& theS2, @@ -1075,10 +1065,8 @@ void BRepExtrema_DistanceSS::Perform( } } -//======================================================================= -// function : Perform -// purpose : Face-Face -//======================================================================= +//================================================================================================= + void BRepExtrema_DistanceSS::Perform( const TopoDS_Face& theS1, const TopoDS_Face& theS2, diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_TriangleSet.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_TriangleSet.cxx index 070b49eb3a..dd44b47c94 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_TriangleSet.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepExtrema/BRepExtrema_TriangleSet.cxx @@ -22,10 +22,8 @@ IMPLEMENT_STANDARD_RTTIEXT(BRepExtrema_TriangleSet, BVH_PrimitiveSet3d) -//======================================================================= -// function : BRepExtrema_TriangleSet -// purpose : Creates empty triangle set -//======================================================================= +//================================================================================================= + BRepExtrema_TriangleSet::BRepExtrema_TriangleSet() { // Set default builder - linear BVH (LBVH) @@ -203,10 +201,8 @@ void BRepExtrema_TriangleSet::GetVtxIndices(const int theIndex, theVtxIndices.SetValue(2, aTriangle.z()); } -//======================================================================= -// function : Clear -// purpose : Clears triangle set data -//======================================================================= +//================================================================================================= + void BRepExtrema_TriangleSet::Clear() { BVH_Array4i anEmptyTriangles; @@ -216,10 +212,8 @@ void BRepExtrema_TriangleSet::Clear() myVertexArray.swap(anEmptyVertexArray); } -//======================================================================= -// function : Init -// purpose : Initializes triangle set -//======================================================================= +//================================================================================================= + bool BRepExtrema_TriangleSet::Init(const NCollection_Vector& theShapes) { Clear(); @@ -249,10 +243,8 @@ bool BRepExtrema_TriangleSet::Init(const NCollection_Vector& theSh return true; } -//======================================================================= -// function : initFace -// purpose : Initializes triangle set -//======================================================================= +//================================================================================================= + bool BRepExtrema_TriangleSet::initFace(const TopoDS_Face& theFace, const int theIndex) { TopLoc_Location aLocation; @@ -284,10 +276,8 @@ bool BRepExtrema_TriangleSet::initFace(const TopoDS_Face& theFace, const int the return true; } -//======================================================================= -// function : initEdge -// purpose : Initializes triangle set -//======================================================================= +//================================================================================================= + bool BRepExtrema_TriangleSet::initEdge(const TopoDS_Edge& theEdge, const int theIndex) { TopLoc_Location aLocation; diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx index 8146078511..f8c6283121 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_Domain.lxx @@ -61,10 +61,7 @@ inline void BRepGProp_Domain::Init() myExplorer.ReInit(); } -//======================================================================= -// function : Value -// purpose : Returns the current edge. -//======================================================================= +//================================================================================================= inline const TopoDS_Edge& BRepGProp_Domain::Value() { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.cxx index 49973c0cd5..1a3e11eefe 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_TFunction.cxx @@ -20,10 +20,8 @@ #include #include -//======================================================================= -// function : Constructor. -// purpose : -//======================================================================= +//================================================================================================= + BRepGProp_TFunction::BRepGProp_TFunction(const BRepGProp_Face& theSurface, const gp_Pnt& theVertex, const bool IsByPoint, diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_UFunction.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_UFunction.cxx index 54152135b8..3146ce925c 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_UFunction.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepGProp/BRepGProp_UFunction.cxx @@ -17,10 +17,8 @@ #include #include -//======================================================================= -// function : Constructor. -// purpose : -//======================================================================= +//================================================================================================= + BRepGProp_UFunction::BRepGProp_UFunction(const BRepGProp_Face& theSurface, const gp_Pnt& theVertex, const bool IsByPoint, @@ -152,10 +150,7 @@ bool BRepGProp_UFunction::CenterMassValue(const double X, double& F) return true; } -//======================================================================= -// function : InertiaValue -// purpose : Compute the value of inertia. -//======================================================================= +//================================================================================================= bool BRepGProp_UFunction::InertiaValue(const double X, double& F) { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_FuseEdges.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_FuseEdges.cxx index 1c19f55a67..fe0ea94c9e 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_FuseEdges.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_FuseEdges.cxx @@ -257,10 +257,7 @@ void BRepLib_FuseEdges::Edges( theMapLstEdg = myMapLstEdg; } -//======================================================================= -// function : ResultEdges -// purpose : returns all the fused edges -//======================================================================= +//================================================================================================= void BRepLib_FuseEdges::ResultEdges(NCollection_DataMap& theMapEdg) { @@ -404,10 +401,7 @@ void BRepLib_FuseEdges::BuildListEdges() myResultEdgesDone = false; } -//======================================================================= -// function : BuildListResultEdges -// purpose : Build the result fused edges -//======================================================================= +//================================================================================================= void BRepLib_FuseEdges::BuildListResultEdges() { @@ -754,10 +748,7 @@ bool BRepLib_FuseEdges::NextConnexEdge(const TopoDS_Vertex& theVertex, return HasConnex; } -//======================================================================= -// function : SameSupport -// purpose : Edges SameSupport ou pas -//======================================================================= +//================================================================================================= bool BRepLib_FuseEdges::SameSupport(const TopoDS_Edge& E1, const TopoDS_Edge& E2) const { diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge.cxx index 2256716748..0a6fb36178 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge.cxx @@ -50,10 +50,8 @@ #include #include -//======================================================================= -// function : Project -// purpose : project a vertex on a curve -//======================================================================= +//================================================================================================= + static bool Project(const occ::handle& C, const TopoDS_Vertex& V, double& p) { double Eps2 = BRep_Tool::Tolerance(V); diff --git a/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge2d.cxx b/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge2d.cxx index 7a2a54fdbc..674320ea5b 100644 --- a/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge2d.cxx +++ b/src/ModelingAlgorithms/TKTopAlgo/BRepLib/BRepLib_MakeEdge2d.cxx @@ -65,10 +65,7 @@ static gp_Pnt2d Project(const TopoDS_Vertex& Ve) return gp_Pnt2d(U, V); } -//======================================================================= -// function : Project -// purpose : project a vertex on a curve -//======================================================================= +//================================================================================================= static bool Project(const occ::handle& C, const TopoDS_Vertex& V, double& p) { diff --git a/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx b/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx index f718c78e52..418c48712f 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Builder.cxx @@ -1168,9 +1168,6 @@ void BRep_Builder::Transfert(const TopoDS_Edge& Ein, const TopoDS_Edge& Eout) co } } -//================================================================================================= -// function : UpdateVertex -// purpose : update vertex with 3d point //================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const gp_Pnt& P, const double Tol) const @@ -1386,9 +1383,6 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve, TV->Modified(true); } -//================================================================================================= -// function : UpdateVertex -// purpose : update vertex with 3d point //================================================================================================= void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const double Tol) const diff --git a/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx b/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx index a28d422240..ffd2c396ce 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Builder.lxx @@ -46,10 +46,7 @@ inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, const occ::handle& P, @@ -59,10 +56,7 @@ inline void BRep_Builder::MakeEdge(TopoDS_Edge& UpdateEdge(E, P, T, TopLoc_Location()); } -//======================================================================= -// function : MakeEdge -// purpose : make edge from triangulation -//======================================================================= +//================================================================================================= inline void BRep_Builder::MakeEdge(TopoDS_Edge& E, const occ::handle& P, diff --git a/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx b/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx index 6a02e80d63..50cd9f3735 100644 --- a/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx +++ b/src/ModelingData/TKBRep/BRep/BRep_Tool.cxx @@ -1115,9 +1115,6 @@ bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, const TopoDS_Face& F1, const return HasContinuity(E, S1, S2, l1, l2); } -//================================================================================================= -// function : Continuity -// purpose : Returns the continuity. //================================================================================================= GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E, @@ -1159,9 +1156,6 @@ bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, return false; } -//================================================================================================= -// function : Continuity -// purpose : Returns the continuity. //================================================================================================= GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E, @@ -1249,9 +1243,6 @@ gp_Pnt BRep_Tool::Pnt(const TopoDS_Vertex& V) return P.Transformed(V.Location().Transformation()); } -//================================================================================================= -// function : Tolerance -// purpose : Returns the tolerance. //================================================================================================= double BRep_Tool::Tolerance(const TopoDS_Vertex& V) diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx index 0e237987e0..7daca9349e 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_IStream.cxx @@ -128,9 +128,7 @@ BinTools_IStream::operator bool() const } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_IStream& BinTools_IStream::operator>>(double& theValue) { if (!myStream->read((char*)&theValue, sizeof(double))) @@ -143,9 +141,7 @@ BinTools_IStream& BinTools_IStream::operator>>(double& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_IStream& BinTools_IStream::operator>>(int& theValue) { if (!myStream->read((char*)&theValue, sizeof(int))) @@ -158,9 +154,7 @@ BinTools_IStream& BinTools_IStream::operator>>(int& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_IStream& BinTools_IStream::operator>>(gp_Pnt& theValue) { double aValue; @@ -178,9 +172,7 @@ BinTools_IStream& BinTools_IStream::operator>>(gp_Pnt& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_IStream& BinTools_IStream::operator>>(uint8_t& theValue) { myStream->read((char*)&theValue, sizeof(uint8_t)); @@ -189,9 +181,7 @@ BinTools_IStream& BinTools_IStream::operator>>(uint8_t& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_IStream& BinTools_IStream::operator>>(float& theValue) { myStream->read((char*)&theValue, sizeof(float)); @@ -200,9 +190,7 @@ BinTools_IStream& BinTools_IStream::operator>>(float& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_IStream& BinTools_IStream::operator>>(gp_Trsf& theValue) { double aV1[3], aV2[3], aV3[3], aV[3]; diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx index 477d39ad2d..002f7f4e64 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_OStream.cxx @@ -82,9 +82,7 @@ void BinTools_OStream::WriteShape(const TopAbs_ShapeEnum& theType, } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const BinTools_ObjectType& theType) { myStream->put((uint8_t)theType); @@ -93,9 +91,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const BinTools_ObjectType& theTyp } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const uint8_t& theValue) { myStream->put(theValue); @@ -104,9 +100,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const uint8_t& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const double& theValue) { #if DO_INVERSE @@ -120,9 +114,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const double& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const bool& theValue) { myStream->put((uint8_t)(theValue ? 1 : 0)); @@ -131,9 +123,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const bool& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const int& theValue) { #if DO_INVERSE @@ -147,9 +137,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const int& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const char16_t& theValue) { #if DO_INVERSE @@ -163,9 +151,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const char16_t& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt& theValue) { #if DO_INVERSE @@ -183,9 +169,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir& theValue) { #if DO_INVERSE @@ -203,9 +187,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt2d& theValue) { #if DO_INVERSE @@ -221,9 +203,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt2d& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir2d& theValue) { #if DO_INVERSE @@ -239,9 +219,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir2d& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const gp_Trsf& theValue) { gp_XYZ aTr = theValue.TranslationPart(); @@ -279,9 +257,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Trsf& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const Poly_Triangle& theValue) { theValue.Value(1); @@ -300,9 +276,7 @@ BinTools_OStream& BinTools_OStream::operator<<(const Poly_Triangle& theValue) } //================================================================================================= -// function : operator << -// purpose : -//================================================================================================= + BinTools_OStream& BinTools_OStream::operator<<(const NCollection_Vec3& theValue) { #if DO_INVERSE diff --git a/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx b/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx index 1db73df684..54ee6358ac 100644 --- a/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx +++ b/src/ModelingData/TKBRep/BinTools/BinTools_SurfaceSet.cxx @@ -438,9 +438,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, gp_Ax3& A3) return IS; } -//================================================================================================= -// function : operator>> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -451,9 +448,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -466,9 +460,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -482,9 +473,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -497,9 +485,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -513,9 +498,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, @@ -529,9 +511,6 @@ static Standard_IStream& operator>>(Standard_IStream& return IS; } -//================================================================================================= -// function : operator>> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -545,9 +524,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -590,9 +566,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) @@ -668,9 +641,6 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, @@ -687,9 +657,6 @@ static Standard_IStream& operator>>(Standard_IStream& return IS; } -//================================================================================================= -// function : operator>> -// purpose : //================================================================================================= static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle& S) diff --git a/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx b/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx index f55f58fbae..1b937e29a4 100644 --- a/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx +++ b/src/ModelingData/TKBRep/TopTools/TopTools_ShapeSet.cxx @@ -233,9 +233,6 @@ static void PrintOrientation(const TopAbs_Orientation O, Standard_OStream& S, bo } } -//================================================================================================= -// function : DumpExtent -// purpose : Dump number of shapes. //================================================================================================= Standard_OStream& TopTools_ShapeSet::DumpExtent(Standard_OStream& OS) const @@ -307,9 +304,6 @@ Standard_OStream& TopTools_ShapeSet::DumpExtent(Standard_OStream& OS) const return OS; } -//================================================================================================= -// function : DumpExtent -// purpose : Dump number of shapes. //================================================================================================= void TopTools_ShapeSet::DumpExtent(TCollection_AsciiString& S) const diff --git a/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx b/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx index 1b8fce9bdb..eea3e25f9a 100644 --- a/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx +++ b/src/ModelingData/TKG3d/Adaptor3d/Adaptor3d_CurveOnSurface.cxx @@ -647,10 +647,7 @@ static void Locate1Coord(const int Index, } } -//======================================================================= -// function :Locate2Coord -// purpose : along non-BSpline curve -//======================================================================= +//================================================================================================= static void Locate2Coord(const int Index, const gp_Pnt2d& UV, diff --git a/src/ModelingData/TKGeomBase/Approx/Approx_SameParameter.cxx b/src/ModelingData/TKGeomBase/Approx/Approx_SameParameter.cxx index f7dad40060..dac4a36837 100644 --- a/src/ModelingData/TKGeomBase/Approx/Approx_SameParameter.cxx +++ b/src/ModelingData/TKGeomBase/Approx/Approx_SameParameter.cxx @@ -528,9 +528,6 @@ void Approx_SameParameter::Build(const double Tolerance) myCurveOnSurface = occ::down_cast(aData.myCOnS.ShallowCopy()); } -//================================================================================================= -// function : BuildInitialDistribution -// purpose : Sub-method in Build. //================================================================================================= bool Approx_SameParameter::BuildInitialDistribution(Approx_SameParameter_Data& theData) const @@ -633,9 +630,6 @@ bool Approx_SameParameter::IncreaseInitialNbSamples(Approx_SameParameter_Data& t return true; } -//================================================================================================= -// function : CheckSameParameter -// purpose : Sub-method in Build. //================================================================================================= bool Approx_SameParameter::CheckSameParameter(Approx_SameParameter_Data& theData, @@ -747,9 +741,6 @@ bool Approx_SameParameter::CheckSameParameter(Approx_SameParameter_Data& theData return isSameParam; } -//================================================================================================= -// function : ComputeTangents -// purpose : Sub-method in Build. //================================================================================================= bool Approx_SameParameter::ComputeTangents(const Adaptor3d_CurveOnSurface& theCOnS, @@ -785,9 +776,6 @@ bool Approx_SameParameter::ComputeTangents(const Adaptor3d_CurveOnSurface& theCO return true; } -//================================================================================================= -// function : Interpolate -// purpose : Sub-method in Build. //================================================================================================= bool Approx_SameParameter::Interpolate(const Approx_SameParameter_Data& theData, @@ -832,9 +820,6 @@ bool Approx_SameParameter::Interpolate(const Approx_SameParameter_Data& theData, return inversion_problem == 0; } -//================================================================================================= -// function : IncreaseNbPoles -// purpose : Sub-method in Build. //================================================================================================= bool Approx_SameParameter::IncreaseNbPoles(const NCollection_Array1& thePoles, diff --git a/src/ModelingData/TKGeomBase/FEmTool/FEmTool_ProfileMatrix.cxx b/src/ModelingData/TKGeomBase/FEmTool/FEmTool_ProfileMatrix.cxx index 99a3755856..49539e763b 100644 --- a/src/ModelingData/TKGeomBase/FEmTool/FEmTool_ProfileMatrix.cxx +++ b/src/ModelingData/TKGeomBase/FEmTool/FEmTool_ProfileMatrix.cxx @@ -88,10 +88,8 @@ double& FEmTool_ProfileMatrix::ChangeValue(const int I, const int J) return ProfileMatrix->ChangeValue(Ind); } -//======================================================================= -// function : Decompose -// purpose : Choleski's decomposition -//======================================================================= +//================================================================================================= + bool FEmTool_ProfileMatrix::Decompose() { int i, j, k, ik, jk, DiagAddr, CurrAddr, Kmin, Kj; diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx index 72ca695914..4ada8fc265 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_IntQuadQuad.cxx @@ -338,9 +338,7 @@ public: ////////// //================================================================================================= -// function : IntAna_IntQuadQuad::IntAna_IntQuadQuad -// purpose : Empty constructor -//================================================================================================= + IntAna_IntQuadQuad::IntAna_IntQuadQuad() { done = false; diff --git a/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx b/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx index 1adc95d256..6587e2c6f8 100644 --- a/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx +++ b/src/ModelingData/TKGeomBase/IntAna/IntAna_QuadQuadGeo.cxx @@ -1003,10 +1003,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& P, const gp_Sphere& S) done = true; } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Cylinder - Cylinder -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl1, const gp_Cylinder& Cyl2, const double Tol) @@ -1279,10 +1277,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Cylinder& Cyl1, const gp_Cylinder& Cyl } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Cylinder - Cone -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl, const gp_Cone& Con, const double Tol) : done(false), nbint(0), @@ -1328,10 +1324,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Cylinder& Cyl, const gp_Cone& Con, con } } -//======================================================================= -// function : -// purpose : Cylinder - Sphere -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl, const gp_Sphere& Sph, const double Tol) @@ -1391,10 +1385,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Cylinder& Cyl, const gp_Sphere& Sph, c } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Cone - Cone -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cone& Con1, const gp_Cone& Con2, const double Tol) : done(false), nbint(0), @@ -1878,10 +1870,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Cone& Con1, const gp_Cone& Con2, const } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Sphere - Cone -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Sphere& Sph, const gp_Cone& Con, const double Tol) : done(false), nbint(0), @@ -1995,10 +1985,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Sphere& Sph, const gp_Cone& Con, const } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Sphere - Sphere -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Sphere& Sph1, const gp_Sphere& Sph2, const double Tol) @@ -2124,10 +2112,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Sphere& Sph1, const gp_Sphere& Sph2, c } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Plane - Torus -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Pln& Pln, const gp_Torus& Tor, const double Tol) : done(false), nbint(0), @@ -2239,10 +2225,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Pln& Pln, const gp_Torus& Tor, const d } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Cylinder - Torus -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cylinder& Cyl, const gp_Torus& Tor, const double Tol) @@ -2322,10 +2306,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Cylinder& Cyl, const gp_Torus& Tor, co } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Cone - Torus -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Cone& Con, const gp_Torus& Tor, const double Tol) : done(false), nbint(0), @@ -2463,10 +2445,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Cone& Con, const gp_Torus& Tor, const } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Sphere - Torus -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Sphere& Sph, const gp_Torus& Tor, const double Tol) : done(false), nbint(0), @@ -2557,10 +2537,8 @@ void IntAna_QuadQuadGeo::Perform(const gp_Sphere& Sph, const gp_Torus& Tor, cons } } -//======================================================================= -// function : IntAna_QuadQuadGeo -// purpose : Torus - Torus -//======================================================================= +//================================================================================================= + IntAna_QuadQuadGeo::IntAna_QuadQuadGeo(const gp_Torus& Tor1, const gp_Torus& Tor2, const double Tol) : done(false), nbint(0), diff --git a/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx b/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx index f7eff5fcf7..d659da730f 100644 --- a/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx +++ b/src/Visualization/TKIVtk/IVtkOCC/IVtkOCC_ViewerSelector.cxx @@ -77,10 +77,8 @@ occ::handle IVtkOCC_ViewerSelector::ConvertVtkToOccCamera( return aCamera; } -//============================================================================ -// Method: Pick -// Purpose: Implements point picking -//============================================================================ +//================================================================================================= + void IVtkOCC_ViewerSelector::Pick(const int theXPix, const int theYPix, const IVtk_IView::Handle& theView) @@ -199,10 +197,8 @@ void IVtkOCC_ViewerSelector::Pick(double** thePoly, TraverseSensitives(-1); } -//============================================================================ -// Method: Activate -// Purpose: Activates the given selection -//============================================================================ +//================================================================================================= + void IVtkOCC_ViewerSelector::Activate(const occ::handle& theSelection) { for (NCollection_Vector>::Iterator aSelEntIter( diff --git a/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapePicker.cxx b/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapePicker.cxx index 79f2e0b3da..d6440ea512 100644 --- a/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapePicker.cxx +++ b/src/Visualization/TKIVtk/IVtkTools/IVtkTools_ShapePicker.cxx @@ -50,10 +50,8 @@ vtkStandardNewMacro(IVtkTools_ShapePicker) myOccPickerAlgo = new IVtkOCC_ShapePickerAlgo(); } -//============================================================================ -// Method: ~IVtkTools_ShapePicker -// Purpose: Destructor -//============================================================================ +//================================================================================================= + IVtkTools_ShapePicker::~IVtkTools_ShapePicker() = default; //============================================================================ @@ -219,10 +217,8 @@ void IVtkTools_ShapePicker::SetRenderer(vtkRenderer* theRenderer) myOccPickerAlgo->SetView(aView); } -//============================================================================ -// Method: SetAreaSelection -// Purpose: Sets area selection on/off -//============================================================================ +//================================================================================================= + void IVtkTools_ShapePicker::SetAreaSelection(bool theIsOn) { myIsRectSelection = theIsOn; diff --git a/src/Visualization/TKMeshVS/MeshVS/MeshVS_PrsBuilder.cxx b/src/Visualization/TKMeshVS/MeshVS/MeshVS_PrsBuilder.cxx index 67b073d2b8..704ece10c7 100644 --- a/src/Visualization/TKMeshVS/MeshVS/MeshVS_PrsBuilder.cxx +++ b/src/Visualization/TKMeshVS/MeshVS/MeshVS_PrsBuilder.cxx @@ -166,10 +166,8 @@ void MeshVS_PrsBuilder::SetPresentationManager( myPrsMgr = thePrsMgr; } -//================================================================ -// Function : GetPresentationManager -// Purpose : Get presentation manager -//================================================================ +//================================================================================================= + occ::handle MeshVS_PrsBuilder::GetPresentationManager() const { return myPrsMgr; diff --git a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx index 4f775b69fb..57c765e14c 100644 --- a/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx +++ b/src/Visualization/TKMeshVS/MeshVS/MeshVS_SensitiveMesh.cxx @@ -76,19 +76,15 @@ int MeshVS_SensitiveMesh::NbSubElements() const return aDataSource->GetAllNodes().Extent(); } -//======================================================================= -// function : BoundingBox -// purpose : Returns bounding box of mesh -//======================================================================= +//================================================================================================= + Select3D_BndBox3d MeshVS_SensitiveMesh::BoundingBox() { return myBndBox; } -//======================================================================= -// function : CenterOfGeometry -// purpose : Returns center of mesh -//======================================================================= +//================================================================================================= + gp_Pnt MeshVS_SensitiveMesh::CenterOfGeometry() const { if (!myBndBox.IsValid()) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_Caps.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_Caps.cxx index a510edf36b..f91012c311 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_Caps.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_Caps.cxx @@ -55,10 +55,8 @@ OpenGl_Caps::OpenGl_Caps() #endif } -// ======================================================================= -// function : operator= -// purpose : -// ======================================================================= +//================================================================================================= + OpenGl_Caps& OpenGl_Caps::operator=(const OpenGl_Caps& theCopy) { sRGBDisable = theCopy.sRGBDisable; diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_GraduatedTrihedron.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_GraduatedTrihedron.cxx index 4442fd7097..5f054f5e85 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_GraduatedTrihedron.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_GraduatedTrihedron.cxx @@ -717,16 +717,12 @@ OpenGl_GraduatedTrihedron::Axis::Axis(const Graphic3d_GraduatedTrihedron::AxisAs LineAspect.Aspect()->SetColor(theAspect.Color()); } -// ======================================================================= -// method : OpenGl_GraduatedTrihedron::Axis::~Axis -// purpose : -// ======================================================================= +//================================================================================================= + OpenGl_GraduatedTrihedron::Axis::~Axis() = default; -// ======================================================================= -// method : OpenGl_GraduatedTrihedron::Axis operator= -// purpose : -// ======================================================================= +//================================================================================================= + OpenGl_GraduatedTrihedron::Axis& OpenGl_GraduatedTrihedron::Axis::operator=(const Axis& theOther) { Direction = theOther.Direction; diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_SceneGeometry.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_SceneGeometry.cxx index aeb9e8ee1e..22874d48c0 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_SceneGeometry.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_SceneGeometry.cxx @@ -33,10 +33,8 @@ static const BVH_Vec4f ZERO_VEC_4F; IMPLEMENT_STANDARD_RTTIEXT(OpenGl_TriangleSet, OpenGl_BVHTriangulation3f) -// ======================================================================= -// function : OpenGl_RaytraceMaterial -// purpose : Creates new default material -// ======================================================================= +//================================================================================================= + OpenGl_RaytraceMaterial::OpenGl_RaytraceMaterial() : Ambient(ZERO_VEC_4F), Diffuse(ZERO_VEC_4F), @@ -48,10 +46,8 @@ OpenGl_RaytraceMaterial::OpenGl_RaytraceMaterial() { } -// ======================================================================= -// function : OpenGl_RaytraceLight -// purpose : Creates new light source -// ======================================================================= +//================================================================================================= + OpenGl_RaytraceLight::OpenGl_RaytraceLight(const BVH_Vec4f& theEmission, const BVH_Vec4f& thePosition) : Emission(theEmission), @@ -99,10 +95,8 @@ float OpenGl_TriangleSet::Center(const int theIndex, const int theAxis) const * 0.5f; } -// ======================================================================= -// function : Box -// purpose : Returns AABB of primitive set -// ======================================================================= +//================================================================================================= + OpenGl_TriangleSet::BVH_BoxNt OpenGl_TriangleSet::Box() const { BVH_BoxNt aBox = BVH_PrimitiveSet::Box(); @@ -144,10 +138,8 @@ OpenGl_TriangleSet::OpenGl_TriangleSet(const size_t { } -// ======================================================================= -// function : Clear -// purpose : Clears ray-tracing geometry -// ======================================================================= +//================================================================================================= + void OpenGl_RaytraceGeometry::Clear() { BVH_Geometry::BVH_Geometry::Clear(); diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderManager.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderManager.cxx index 684e4426c0..4cb5834a83 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderManager.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderManager.cxx @@ -181,10 +181,8 @@ void OpenGl_ShaderManager::clear() switchLightPrograms(); } -// ======================================================================= -// function : Create -// purpose : Creates new shader program -// ======================================================================= +//================================================================================================= + bool OpenGl_ShaderManager::Create(const occ::handle& theProxy, TCollection_AsciiString& theShareKey, occ::handle& theProgram) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderObject.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderObject.cxx index 71d7b19f86..670f0d394b 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderObject.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderObject.cxx @@ -173,10 +173,8 @@ void OpenGl_ShaderObject::DumpSourceCode(const occ::handle& theC getShaderTypeString(myType) + " [" + theId + "] source code:\n" + theSource); } -// ======================================================================= -// function : LoadSource -// purpose : Loads shader source code -// ======================================================================= +//================================================================================================= + bool OpenGl_ShaderObject::LoadSource(const occ::handle& theCtx, const TCollection_AsciiString& theSource) { @@ -190,10 +188,8 @@ bool OpenGl_ShaderObject::LoadSource(const occ::handle& theCtx, return true; } -// ======================================================================= -// function : Compile -// purpose : Compiles the shader object -// ======================================================================= +//================================================================================================= + bool OpenGl_ShaderObject::Compile(const occ::handle& theCtx) { if (myShaderID == NO_SHADER) @@ -250,10 +246,8 @@ bool OpenGl_ShaderObject::Create(const occ::handle& theCtx) return myShaderID != NO_SHADER; } -// ======================================================================= -// function : Release -// purpose : Destroys shader object -// ======================================================================= +//================================================================================================= + void OpenGl_ShaderObject::Release(OpenGl_Context* theCtx) { if (myShaderID == NO_SHADER) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderProgram.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderProgram.cxx index c6de06eee6..f15a9c146b 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderProgram.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderProgram.cxx @@ -769,10 +769,8 @@ bool OpenGl_ShaderProgram::DetachShader(const occ::handle& return true; } -// ======================================================================= -// function : Link -// purpose : Links the program object -// ======================================================================= +//================================================================================================= + bool OpenGl_ShaderProgram::link(const occ::handle& theCtx) { if (myProgramID == NO_PROGRAM) @@ -1504,10 +1502,8 @@ bool OpenGl_ShaderProgram::Create(const occ::handle& theCtx) return myProgramID != NO_PROGRAM; } -// ======================================================================= -// function : Release -// purpose : Destroys shader program -// ======================================================================= +//================================================================================================= + void OpenGl_ShaderProgram::Release(OpenGl_Context* theCtx) { if (myProgramID == NO_PROGRAM) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx index dad4a396e6..9882252456 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx @@ -64,10 +64,8 @@ OpenGl_ModelWorldState::OpenGl_ModelWorldState() { } -// ======================================================================= -// function : Set -// purpose : Sets new model-world matrix -// ======================================================================= +//================================================================================================= + void OpenGl_ModelWorldState::Set(const NCollection_Mat4& theModelWorldMatrix) { myModelWorldMatrix = theModelWorldMatrix; @@ -97,10 +95,8 @@ OpenGl_WorldViewState::OpenGl_WorldViewState() { } -// ======================================================================= -// function : Set -// purpose : Sets new world-view matrix -// ======================================================================= +//================================================================================================= + void OpenGl_WorldViewState::Set(const NCollection_Mat4& theWorldViewMatrix) { myWorldViewMatrix = theWorldViewMatrix; @@ -121,10 +117,8 @@ const NCollection_Mat4& OpenGl_WorldViewState::WorldViewMatrixInverse() c return myWorldViewMatrixInverse; } -// ======================================================================= -// function : OpenGl_ClippingState -// purpose : Creates new clipping state -// ======================================================================= +//================================================================================================= + OpenGl_ClippingState::OpenGl_ClippingState() : myIndex(0), myNextIndex(1) diff --git a/src/Visualization/TKOpenGl/OpenGl/OpenGl_View_Raytrace.cxx b/src/Visualization/TKOpenGl/OpenGl/OpenGl_View_Raytrace.cxx index a8c3f46c7a..6b0be54bf4 100644 --- a/src/Visualization/TKOpenGl/OpenGl/OpenGl_View_Raytrace.cxx +++ b/src/Visualization/TKOpenGl/OpenGl/OpenGl_View_Raytrace.cxx @@ -1879,10 +1879,8 @@ bool OpenGl_View::initRaytraceResources(const int theSi return true; } -// ======================================================================= -// function : nullifyResource -// purpose : Releases OpenGL resource -// ======================================================================= +//================================================================================================= + template inline void nullifyResource(const occ::handle& theGlContext, occ::handle& theResource) @@ -3146,10 +3144,8 @@ bool OpenGl_View::runRaytrace(const int theSizeX, return aResult; } -// ======================================================================= -// function : runPathtrace -// purpose : Runs path tracing shader -// ======================================================================= +//================================================================================================= + bool OpenGl_View::runPathtrace(const int theSizeX, const int theSizeY, const Graphic3d_Camera::Projection theProjection, diff --git a/src/Visualization/TKService/Graphic3d/Graphic3d_BSDF.cxx b/src/Visualization/TKService/Graphic3d/Graphic3d_BSDF.cxx index e976a3af35..1dd6a47817 100644 --- a/src/Visualization/TKService/Graphic3d/Graphic3d_BSDF.cxx +++ b/src/Visualization/TKService/Graphic3d/Graphic3d_BSDF.cxx @@ -71,10 +71,8 @@ Graphic3d_BSDF::Graphic3d_BSDF() FresnelBase = Graphic3d_Fresnel::CreateConstant(1.f); } -// ======================================================================= -// function : operator== -// purpose : -// ======================================================================= +//================================================================================================= + bool Graphic3d_BSDF::operator==(const Graphic3d_BSDF& theOther) const { return Kc == theOther.Kc && Kd == theOther.Kd && Kt == theOther.Kt && Ks == theOther.Ks diff --git a/src/Visualization/TKService/Graphic3d/Graphic3d_CubeMapOrder.cxx b/src/Visualization/TKService/Graphic3d/Graphic3d_CubeMapOrder.cxx index 0fca81f69d..acd3b3e688 100644 --- a/src/Visualization/TKService/Graphic3d/Graphic3d_CubeMapOrder.cxx +++ b/src/Visualization/TKService/Graphic3d/Graphic3d_CubeMapOrder.cxx @@ -62,10 +62,8 @@ Graphic3d_CubeMapOrder& Graphic3d_CubeMapOrder::Set(const Graphic3d_CubeMapOrder return *this; } -// ======================================================================= -// function : operator= -// purpose : -// ======================================================================= +//================================================================================================= + Graphic3d_ValidatedCubeMapOrder Graphic3d_CubeMapOrder::Validated() const { if (!IsValid()) diff --git a/src/Visualization/TKService/Graphic3d/Graphic3d_FrameStatsData.cxx b/src/Visualization/TKService/Graphic3d/Graphic3d_FrameStatsData.cxx index 1f1f4ac815..94c41c8f96 100644 --- a/src/Visualization/TKService/Graphic3d/Graphic3d_FrameStatsData.cxx +++ b/src/Visualization/TKService/Graphic3d/Graphic3d_FrameStatsData.cxx @@ -48,10 +48,8 @@ Graphic3d_FrameStatsData::Graphic3d_FrameStatsData(Graphic3d_FrameStatsData&& th { } -// ======================================================================= -// function : operator= -// purpose : -// ======================================================================= +//================================================================================================= + Graphic3d_FrameStatsData& Graphic3d_FrameStatsData::operator=( const Graphic3d_FrameStatsData& theOther) { @@ -70,10 +68,8 @@ Graphic3d_FrameStatsData& Graphic3d_FrameStatsData::operator=( return *this; } -// ======================================================================= -// function : operator= -// purpose : -// ======================================================================= +//================================================================================================= + Graphic3d_FrameStatsData& Graphic3d_FrameStatsData::operator=( Graphic3d_FrameStatsData&& theOther) noexcept { diff --git a/src/Visualization/TKService/Graphic3d/Graphic3d_TransformPers.hxx b/src/Visualization/TKService/Graphic3d/Graphic3d_TransformPers.hxx index 45425e6c09..7094786e7b 100644 --- a/src/Visualization/TKService/Graphic3d/Graphic3d_TransformPers.hxx +++ b/src/Visualization/TKService/Graphic3d/Graphic3d_TransformPers.hxx @@ -687,10 +687,8 @@ void Graphic3d_TransformPers::Apply(const occ::handle& theCame } } -// ======================================================================= -// function : Compute -// purpose : Compute transformation. -// ======================================================================= +//================================================================================================= + template NCollection_Mat4 Graphic3d_TransformPers::Compute(const occ::handle& theCamera, const NCollection_Mat4& theProjection, diff --git a/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx b/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx index c8db743a44..8657f3f541 100644 --- a/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx +++ b/src/Visualization/TKV3d/AIS/AIS_Manipulator.cxx @@ -1695,11 +1695,8 @@ void AIS_Manipulator::Cube::Init(const gp_Ax1& thePosition, } } -//======================================================================= -// class : Cube -// function : addTriangle -// purpose : -//======================================================================= +//================================================================================================= + void AIS_Manipulator::Cube::addTriangle(const int theIndex, const gp_Pnt& theP1, const gp_Pnt& theP2, @@ -1764,11 +1761,8 @@ void AIS_Manipulator::Sector::Init(const float theRadius, } } -//======================================================================= -// class : Axis -// function : Constructor -// purpose : -//======================================================================= +//================================================================================================= + AIS_Manipulator::Axis::Axis(const gp_Ax1& theAxis, const Quantity_Color& theColor, const float theLength) diff --git a/src/Visualization/TKV3d/AIS/AIS_TextLabel.cxx b/src/Visualization/TKV3d/AIS/AIS_TextLabel.cxx index 890a2820ba..6ae8000083 100644 --- a/src/Visualization/TKV3d/AIS/AIS_TextLabel.cxx +++ b/src/Visualization/TKV3d/AIS/AIS_TextLabel.cxx @@ -93,10 +93,8 @@ void AIS_TextLabel::SetHJustification(const Graphic3d_HorizontalTextAlignment th myDrawer->TextAspect()->SetHorizontalJustification(theHJust); } -//======================================================================= -// function : SetVJustification -// purpose : Setup vertical justification. -//======================================================================= +//================================================================================================= + void AIS_TextLabel::SetVJustification(const Graphic3d_VerticalTextAlignment theVJust) { myDrawer->TextAspect()->SetVerticalJustification(theVJust); diff --git a/src/Visualization/TKV3d/DsgPrs/DsgPrs_DiameterPresentation.cxx b/src/Visualization/TKV3d/DsgPrs/DsgPrs_DiameterPresentation.cxx index 3bdf68b628..0e82f2602e 100644 --- a/src/Visualization/TKV3d/DsgPrs/DsgPrs_DiameterPresentation.cxx +++ b/src/Visualization/TKV3d/DsgPrs/DsgPrs_DiameterPresentation.cxx @@ -120,10 +120,7 @@ static bool DsgPrs_InDomain(const double fpar, const double lpar, const double p return false; } -//======================================================================= -// function : DsgPrs_DiameterPresentation::Add -// purpose : SZY 12-february-98 -//======================================================================= +//================================================================================================= void DsgPrs_DiameterPresentation::Add(const occ::handle& aPresentation, const occ::handle& aDrawer, diff --git a/src/Visualization/TKV3d/DsgPrs/DsgPrs_LengthPresentation.cxx b/src/Visualization/TKV3d/DsgPrs/DsgPrs_LengthPresentation.cxx index dd9e94085f..6f4f85a044 100644 --- a/src/Visualization/TKV3d/DsgPrs/DsgPrs_LengthPresentation.cxx +++ b/src/Visualization/TKV3d/DsgPrs/DsgPrs_LengthPresentation.cxx @@ -377,10 +377,7 @@ void DsgPrs_LengthPresentation::Add(const occ::handle& aPres } } -//================================ -// Function: -// Purpose: Rob 26-mar-96 -//================================= +//================================================================================================= void DsgPrs_LengthPresentation::Add(const occ::handle& aPrs, const occ::handle& aDrawer, diff --git a/src/Visualization/TKV3d/Prs3d/Prs3d_Drawer.cxx b/src/Visualization/TKV3d/Prs3d/Prs3d_Drawer.cxx index 17d5938ab3..c48dc91d97 100644 --- a/src/Visualization/TKV3d/Prs3d/Prs3d_Drawer.cxx +++ b/src/Visualization/TKV3d/Prs3d/Prs3d_Drawer.cxx @@ -110,20 +110,14 @@ void Prs3d_Drawer::SetTypeOfDeflection(const Aspect_TypeOfDeflection theTypeOfDe myTypeOfDeflection = theTypeOfDeflection; } -// ======================================================================= -// function : SetTypeOfHLR -// purpose : set type of HLR algorithm -// ======================================================================= +//================================================================================================= void Prs3d_Drawer::SetTypeOfHLR(const Prs3d_TypeOfHLR theTypeOfHLR) { myTypeOfHLR = theTypeOfHLR; } -// ======================================================================= -// function : TypeOfHLR -// purpose : gets type of HLR algorithm -// ======================================================================= +//================================================================================================= Prs3d_TypeOfHLR Prs3d_Drawer::TypeOfHLR() const { diff --git a/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx b/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx index 1d89d23bb6..745e8a9df1 100644 --- a/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx +++ b/src/Visualization/TKV3d/PrsDim/PrsDim_LengthDimension.cxx @@ -47,10 +47,8 @@ PrsDim_LengthDimension::PrsDim_LengthDimension() SetFlyout(15.0); } -//======================================================================= -// function : Constructor -// purpose : Dimension between two faces -//======================================================================= +//================================================================================================= + PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Face& theFirstFace, const TopoDS_Face& theSecondFace) : PrsDim_Dimension(PrsDim_KOD_LENGTH), @@ -60,10 +58,8 @@ PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Face& theFirstFace, SetFlyout(15.0); } -//======================================================================= -// function : Constructor -// purpose : Dimension between two shape -//======================================================================= +//================================================================================================= + PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Face& theFace, const TopoDS_Edge& theEdge) : PrsDim_Dimension(PrsDim_KOD_LENGTH), @@ -73,10 +69,8 @@ PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Face& theFace, SetFlyout(15.0); } -//======================================================================= -// function : Constructor -// purpose : Dimension between two points -//======================================================================= +//================================================================================================= + PrsDim_LengthDimension::PrsDim_LengthDimension(const gp_Pnt& theFirstPoint, const gp_Pnt& theSecondPoint, const gp_Pln& thePlane) @@ -87,10 +81,8 @@ PrsDim_LengthDimension::PrsDim_LengthDimension(const gp_Pnt& theFirstPoint, SetFlyout(15.0); } -//======================================================================= -// function : Constructor -// purpose : Dimension between two shape -//======================================================================= +//================================================================================================= + PrsDim_LengthDimension::PrsDim_LengthDimension(const TopoDS_Shape& theFirstShape, const TopoDS_Shape& theSecondShape, const gp_Pln& thePlane) diff --git a/src/Visualization/TKV3d/Select3D/Select3D_SensitiveFace.cxx b/src/Visualization/TKV3d/Select3D/Select3D_SensitiveFace.cxx index 1c2cf6e9f7..030fab2331 100644 --- a/src/Visualization/TKV3d/Select3D/Select3D_SensitiveFace.cxx +++ b/src/Visualization/TKV3d/Select3D/Select3D_SensitiveFace.cxx @@ -76,10 +76,8 @@ void Select3D_SensitiveFace::GetPoints(occ::handle>& } } -//======================================================================= -// function : BVH -// purpose : Builds BVH tree for the face -//======================================================================= +//================================================================================================= + void Select3D_SensitiveFace::BVH() { myFacePoints->BVH(); diff --git a/src/Visualization/TKV3d/Select3D/Select3D_SensitiveGroup.cxx b/src/Visualization/TKV3d/Select3D/Select3D_SensitiveGroup.cxx index dd50c2b04b..f6be206db5 100644 --- a/src/Visualization/TKV3d/Select3D/Select3D_SensitiveGroup.cxx +++ b/src/Visualization/TKV3d/Select3D/Select3D_SensitiveGroup.cxx @@ -63,10 +63,8 @@ Select3D_SensitiveGroup::Select3D_SensitiveGroup( MarkDirty(); } -//======================================================================= -// function : Add -// purpose : No control of entities inside -//======================================================================= +//================================================================================================= + void Select3D_SensitiveGroup::Add( NCollection_Sequence>& theEntities) { diff --git a/src/Visualization/TKV3d/Select3D/Select3D_SensitiveSegment.cxx b/src/Visualization/TKV3d/Select3D/Select3D_SensitiveSegment.cxx index e0521e80fb..ae194e3252 100644 --- a/src/Visualization/TKV3d/Select3D/Select3D_SensitiveSegment.cxx +++ b/src/Visualization/TKV3d/Select3D/Select3D_SensitiveSegment.cxx @@ -95,10 +95,8 @@ Select3D_BndBox3d Select3D_SensitiveSegment::BoundingBox() return Select3D_BndBox3d(aMinPnt, aMaxPnt); } -//======================================================================= -// function : NbSubElements -// purpose : Returns the amount of points -//======================================================================= +//================================================================================================= + int Select3D_SensitiveSegment::NbSubElements() const { return 2; diff --git a/src/Visualization/TKV3d/SelectMgr/SelectMgr_ViewerSelector.cxx b/src/Visualization/TKV3d/SelectMgr/SelectMgr_ViewerSelector.cxx index eef863cf53..f4f729e10c 100644 --- a/src/Visualization/TKV3d/SelectMgr/SelectMgr_ViewerSelector.cxx +++ b/src/Visualization/TKV3d/SelectMgr/SelectMgr_ViewerSelector.cxx @@ -1276,10 +1276,8 @@ void SelectMgr_ViewerSelector::Pick(const int theXPMin, TraverseSensitives(theView->View()->Identification()); } -//======================================================================= -// Function: Pick -// Purpose : Selection using a polyline -//======================================================================= +//================================================================================================= + void SelectMgr_ViewerSelector::Pick(const NCollection_Array1& thePolyline, const occ::handle& theView) { @@ -1347,10 +1345,8 @@ bool SelectMgr_ViewerSelector::ToPixMap(Image_PixMap& the return true; } -//======================================================================= -// Function: DisplaySensitive. -// Purpose : Display active primitives. -//======================================================================= +//================================================================================================= + void SelectMgr_ViewerSelector::DisplaySensitive(const occ::handle& theView) { for (SelectMgr_SelectableObjectSet::Iterator aSelectableIt(mySelectableObjects);