if (bLineLine) {
// increase tolerance for Line/Line intersection, but do not update
// the vertex till its intersection with some other shape
- Standard_Real aTol = (aCR1.Last() - aCR1.First()) / 2.;
- if (aTol > aTolVnew) {
- aTolVnew = aTol;
+ Standard_Real aTolMin = (aCR1.Last() - aCR1.First()) / 2.;
+ if (aTolMin > aTolVnew) {
+ aTolVnew = aTolMin;
}
}
// <-LXBR
//
Standard_Integer nVx, nVSD, iV, iErr, nE, iFlag, iX, i, aNbPBLI;
Standard_Real aT, dummy;
- TopoDS_Shape aV;
BOPCol_ListIteratorOfListOfShape aItLS;
BOPCol_ListIteratorOfListOfInteger aItLI;
BOPDS_PDS aPDS;
const TopoDS_Shape& aVx = aItLS.Value();
nVx = aPDS->Index(aVx);
//
- if (aPDS->HasShapeSD(nVx, nVSD)) {
- aV = aPDS->Shape(nVSD);
- }
- else {
- aV = aVx;
- }
+ const TopoDS_Shape& aV = (aPDS->HasShapeSD(nVx, nVSD) ? aPDS->Shape(nVSD) : aVx);
BOPCol_ListOfShape* pLst = aImages.ChangeSeek(aV);
if (!pLst) {
pLst = &aImages.ChangeFromIndex(aImages.Add(aV, BOPCol_ListOfShape()));
const TopoDS_Shape& aVx=aItLS.Value();
nVx=aPDS->Index(aVx);
//
- if (aPDS->HasShapeSD(nVx, nVSD)) {
- aV=aPDS->Shape(nVSD);
- }
- else {
- aV=aVx;
- }
+ const TopoDS_Shape& aV = (aPDS->HasShapeSD(nVx, nVSD) ? aPDS->Shape(nVSD) : aVx);
iV = aMVI.Find(aV);
//
BOPDS_CoupleOfPaveBlocks &aCPB=theMVCPB.ChangeFromKey(aVx);
template <typename T>
const Handle(Standard_Type)& type_instance<T>::get ()
{
+#if (defined(_MSC_VER) && _MSC_VER < 1800) || \
+ (defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3)) && \
+ ! defined(__clang__) && ! defined(__INTEL_COMPILER))
// ensure that myInstance is instantiated
(void)myInstance;
+#endif
// static variable inside function ensures that descriptors
// are initialized in correct sequence
{
public:
//! Register types.
- Standard_EXPORT virtual void BindTypes (StdObjMgt_MapOfInstantiators& theMap);
+ Standard_EXPORT virtual void BindTypes (StdObjMgt_MapOfInstantiators& theMap) Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT (StdDrivers_DocumentRetrievalDriver, StdLDrivers_DocumentRetrievalDriver)
};
{
public:
//! Create an empty TDocStd_Document.
- Standard_EXPORT virtual Handle(CDM_Document) CreateDocument();
+ Standard_EXPORT virtual Handle(CDM_Document) CreateDocument() Standard_OVERRIDE;
//! Retrieve the content of a file into a new document.
Standard_EXPORT virtual void Read (const TCollection_ExtendedString& theFileName,
const Handle(CDM_Document)& theNewDocument,
- const Handle(CDM_Application)& theApplication);
+ const Handle(CDM_Application)& theApplication) Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT (StdLDrivers_DocumentRetrievalDriver, PCDM_RetrievalDriver)