mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
1. In frame of the fix for #27282 issue, we have obtained several prolonged curves, which have common point(s). Fix for this issue joins these curves if it is possible. 2. ElCLib::InPeriod(...) method has been improved. Now it has become more faster (in general cases) and more reliable (in frame of FLT_OVERFLOW and DIVISION_BY_ZERO cases processing). Creation of test case for issue #27302 Test case tests\bugs\modalg_6\bug27282_2 has been adjusted in accordance with its new behavior.
112 lines
3.5 KiB
C++
112 lines
3.5 KiB
C++
// Created on: 2015-02-18
|
|
// Created by: Nikolai BUKHALOV
|
|
// Copyright (c) 1992-1999 Matra Datavision
|
|
// Copyright (c) 1999-2015 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _IntPatch_PointLine_HeaderFile
|
|
#define _IntPatch_PointLine_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_Type.hxx>
|
|
|
|
#include <IntPatch_Line.hxx>
|
|
#include <IntPatch_Point.hxx>
|
|
#include <Standard_Boolean.hxx>
|
|
#include <IntSurf_TypeTrans.hxx>
|
|
#include <IntSurf_Situation.hxx>
|
|
#include <Standard_Integer.hxx>
|
|
class Standard_DomainError;
|
|
class Standard_OutOfRange;
|
|
class IntSurf_PntOn2S;
|
|
class IntSurf_LineOn2S;
|
|
|
|
|
|
class IntPatch_PointLine;
|
|
DEFINE_STANDARD_HANDLE(IntPatch_PointLine, IntPatch_Line)
|
|
|
|
//! Definition of an intersection line between two
|
|
//! surfaces.
|
|
//! A line defined by a set of points
|
|
//! (e.g. coming from a walking algorithm) as
|
|
//! defined in the class WLine or RLine (Restriction line).
|
|
class IntPatch_PointLine : public IntPatch_Line
|
|
{
|
|
|
|
public:
|
|
|
|
//! Adds a vertex in the list. If theIsPrepend == TRUE the new
|
|
//! vertex will be added before the first element of vertices sequence.
|
|
//! Otherwise, to the end of the sequence
|
|
Standard_EXPORT virtual
|
|
void AddVertex (const IntPatch_Point& Pnt,
|
|
const Standard_Boolean theIsPrepend = Standard_False) = 0;
|
|
|
|
//! Returns the number of intersection points.
|
|
Standard_EXPORT virtual Standard_Integer NbPnts() const = 0;
|
|
|
|
//! Returns number of vertices (IntPatch_Point) of the line
|
|
Standard_EXPORT virtual Standard_Integer NbVertex() const = 0;
|
|
|
|
//! Returns the intersection point of range Index.
|
|
Standard_EXPORT virtual const IntSurf_PntOn2S& Point (const Standard_Integer Index) const = 0;
|
|
|
|
//! Returns the vertex of range Index on the line.
|
|
Standard_EXPORT virtual const IntPatch_Point& Vertex (const Standard_Integer Index) const = 0;
|
|
|
|
//! Returns the vertex of range Index on the line.
|
|
virtual IntPatch_Point& ChangeVertex (const Standard_Integer Index) = 0;
|
|
|
|
//! Removes vertices from the line
|
|
Standard_EXPORT virtual void ClearVertexes() = 0;
|
|
|
|
//! Removes single vertex from the line
|
|
Standard_EXPORT virtual void RemoveVertex (const Standard_Integer theIndex) = 0;
|
|
|
|
//! Returns set of intersection points
|
|
Standard_EXPORT virtual Handle(IntSurf_LineOn2S) Curve() const = 0;
|
|
|
|
DEFINE_STANDARD_RTTIEXT(IntPatch_PointLine,IntPatch_Line)
|
|
|
|
protected:
|
|
|
|
|
|
//! To initialize the fields, when the transitions
|
|
//! are In or Out.
|
|
Standard_EXPORT IntPatch_PointLine(const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2);
|
|
|
|
//! To initialize the fields, when the transitions
|
|
//! are Touch.
|
|
Standard_EXPORT IntPatch_PointLine(const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2);
|
|
|
|
//! To initialize the fields, when the transitions
|
|
//! are Undecided.
|
|
Standard_EXPORT IntPatch_PointLine(const Standard_Boolean Tang);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _IntPatch_PointLine_HeaderFile
|