Open CASCADE Technology  7.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions

IntPatch_PointLine Class Referenceabstract

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). More...

#include <IntPatch_PointLine.hxx>

Inheritance diagram for IntPatch_PointLine:
Inheritance graph
[legend]

Public Member Functions

virtual void AddVertex (const IntPatch_Point &Pnt, const Standard_Boolean theIsPrepend=Standard_False)=0
 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. More...
 
virtual Standard_Integer NbPnts () const =0
 Returns the number of intersection points. More...
 
virtual Standard_Integer NbVertex () const =0
 Returns number of vertices (IntPatch_Point) of the line. More...
 
virtual const IntSurf_PntOn2SPoint (const Standard_Integer Index) const =0
 Returns the intersection point of range Index. More...
 
virtual const IntPatch_PointVertex (const Standard_Integer Index) const =0
 Returns the vertex of range Index on the line. More...
 
virtual IntPatch_PointChangeVertex (const Standard_Integer Index)=0
 Returns the vertex of range Index on the line. More...
 
virtual void ClearVertexes ()=0
 Removes vertices from the line. More...
 
virtual void RemoveVertex (const Standard_Integer theIndex)=0
 Removes single vertex from the line. More...
 
virtual Handle< IntSurf_LineOn2SCurve () const =0
 Returns set of intersection points. More...
 
virtual Standard_Boolean IsOutSurf1Box (const gp_Pnt2d &P1) const =0
 Returns TRUE if P1 is out of the box built from the points on 1st surface. More...
 
virtual Standard_Boolean IsOutSurf2Box (const gp_Pnt2d &P2) const =0
 Returns TRUE if P2 is out of the box built from the points on 2nd surface. More...
 
virtual Standard_Boolean IsOutBox (const gp_Pnt &P) const =0
 Returns TRUE if P is out of the box built from 3D-points. More...
 
- Public Member Functions inherited from IntPatch_Line
void SetValue (const Standard_Boolean Uiso1, const Standard_Boolean Viso1, const Standard_Boolean Uiso2, const Standard_Boolean Viso2)
 To set the values returned by IsUIsoS1,.... The default values are False. More...
 
IntPatch_IType ArcType () const
 Returns the type of geometry 3d (Line, Circle, Parabola, Hyperbola, Ellipse, Analytic, Walking, Restriction) More...
 
Standard_Boolean IsTangent () const
 Returns TRUE if the intersection is a line of tangency between the 2 patches. More...
 
IntSurf_TypeTrans TransitionOnS1 () const
 Returns the type of the transition of the line for the first surface. The transition is "constant" along the line. The transition is IN if the line is oriented in such a way that the system of vector (N1,N2,T) is right-handed, where N1 is the normal to the first surface at a point P, N2 is the normal to the second surface at a point P, T is the tangent to the intersection line at P. If the system of vector is left-handed, the transition is OUT. When N1 and N2 are colinear all along the intersection line, the transition will be. More...
 
IntSurf_TypeTrans TransitionOnS2 () const
 Returns the type of the transition of the line for the second surface. The transition is "constant" along the line. More...
 
IntSurf_Situation SituationS1 () const
 Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of the first patch compared to the second one, when TransitionOnS1 or TransitionOnS2 returns TOUCH. Otherwise, an exception is raised. More...
 
IntSurf_Situation SituationS2 () const
 Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of the second patch compared to the first one, when TransitionOnS1 or TransitionOnS2 returns TOUCH. Otherwise, an exception is raised. More...
 
Standard_Boolean IsUIsoOnS1 () const
 Returns TRUE if the intersection is a U isoparametric curve on the first patch. More...
 
Standard_Boolean IsVIsoOnS1 () const
 Returns TRUE if the intersection is a V isoparametric curve on the first patch. More...
 
Standard_Boolean IsUIsoOnS2 () const
 Returns TRUE if the intersection is a U isoparametric curve on the second patch. More...
 
Standard_Boolean IsVIsoOnS2 () const
 Returns TRUE if the intersection is a V isoparametric curve on the second patch. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Static Public Member Functions

static Standard_Real CurvatureRadiusOfIntersLine (const Handle< Adaptor3d_HSurface > &theS1, const Handle< Adaptor3d_HSurface > &theS2, const IntSurf_PntOn2S &theUVPoint)
 Returns the radius of curvature of the intersection line in given point. Returns negative value if computation is not possible. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Protected Member Functions

 IntPatch_PointLine (const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2)
 To initialize the fields, when the transitions are In or Out. More...
 
 IntPatch_PointLine (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 To initialize the fields, when the transitions are Touch. More...
 
 IntPatch_PointLine (const Standard_Boolean Tang)
 To initialize the fields, when the transitions are Undecided. More...
 
- Protected Member Functions inherited from IntPatch_Line
 IntPatch_Line (const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2)
 To initialize the fields, when the transitions are In or Out. More...
 
 IntPatch_Line (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 To initialize the fields, when the transitions are Touch. More...
 
 IntPatch_Line (const Standard_Boolean Tang)
 To initialize the fields, when the transitions are Undecided. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Protected Attributes inherited from IntPatch_Line
IntPatch_IType typ
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ IntPatch_PointLine() [1/3]

IntPatch_PointLine::IntPatch_PointLine ( const Standard_Boolean  Tang,
const IntSurf_TypeTrans  Trans1,
const IntSurf_TypeTrans  Trans2 
)
protected

To initialize the fields, when the transitions are In or Out.

◆ IntPatch_PointLine() [2/3]

IntPatch_PointLine::IntPatch_PointLine ( const Standard_Boolean  Tang,
const IntSurf_Situation  Situ1,
const IntSurf_Situation  Situ2 
)
protected

To initialize the fields, when the transitions are Touch.

◆ IntPatch_PointLine() [3/3]

IntPatch_PointLine::IntPatch_PointLine ( const Standard_Boolean  Tang)
protected

To initialize the fields, when the transitions are Undecided.

Member Function Documentation

◆ AddVertex()

virtual void IntPatch_PointLine::AddVertex ( const IntPatch_Point Pnt,
const Standard_Boolean  theIsPrepend = Standard_False 
)
pure virtual

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.

Implemented in IntPatch_WLine, and IntPatch_RLine.

◆ ChangeVertex()

virtual IntPatch_Point& IntPatch_PointLine::ChangeVertex ( const Standard_Integer  Index)
pure virtual

Returns the vertex of range Index on the line.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ ClearVertexes()

virtual void IntPatch_PointLine::ClearVertexes ( )
pure virtual

Removes vertices from the line.

Implemented in IntPatch_WLine, and IntPatch_RLine.

◆ CurvatureRadiusOfIntersLine()

static Standard_Real IntPatch_PointLine::CurvatureRadiusOfIntersLine ( const Handle< Adaptor3d_HSurface > &  theS1,
const Handle< Adaptor3d_HSurface > &  theS2,
const IntSurf_PntOn2S theUVPoint 
)
static

Returns the radius of curvature of the intersection line in given point. Returns negative value if computation is not possible.

◆ Curve()

virtual Handle< IntSurf_LineOn2S > IntPatch_PointLine::Curve ( ) const
pure virtual

Returns set of intersection points.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ IsOutBox()

virtual Standard_Boolean IntPatch_PointLine::IsOutBox ( const gp_Pnt P) const
pure virtual

Returns TRUE if P is out of the box built from 3D-points.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ IsOutSurf1Box()

virtual Standard_Boolean IntPatch_PointLine::IsOutSurf1Box ( const gp_Pnt2d P1) const
pure virtual

Returns TRUE if P1 is out of the box built from the points on 1st surface.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ IsOutSurf2Box()

virtual Standard_Boolean IntPatch_PointLine::IsOutSurf2Box ( const gp_Pnt2d P2) const
pure virtual

Returns TRUE if P2 is out of the box built from the points on 2nd surface.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ NbPnts()

virtual Standard_Integer IntPatch_PointLine::NbPnts ( ) const
pure virtual

Returns the number of intersection points.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ NbVertex()

virtual Standard_Integer IntPatch_PointLine::NbVertex ( ) const
pure virtual

Returns number of vertices (IntPatch_Point) of the line.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ Point()

virtual const IntSurf_PntOn2S& IntPatch_PointLine::Point ( const Standard_Integer  Index) const
pure virtual

Returns the intersection point of range Index.

Implemented in IntPatch_RLine, and IntPatch_WLine.

◆ RemoveVertex()

virtual void IntPatch_PointLine::RemoveVertex ( const Standard_Integer  theIndex)
pure virtual

Removes single vertex from the line.

Implemented in IntPatch_WLine, and IntPatch_RLine.

◆ Vertex()

virtual const IntPatch_Point& IntPatch_PointLine::Vertex ( const Standard_Integer  Index) const
pure virtual

Returns the vertex of range Index on the line.

Implemented in IntPatch_RLine, and IntPatch_WLine.


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