Open CASCADE Technology 7.8.0
Public Member Functions
IntPatch_RLine Class Reference

Implementation of an intersection line described by a restriction line on one of the surfaces. More...

#include <IntPatch_RLine.hxx>

Inheritance diagram for IntPatch_RLine:
Inheritance graph
[legend]

Public Member Functions

 IntPatch_RLine (const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2)
 Creates a restriction as an intersection line when the transitions are In or Out.
 
 IntPatch_RLine (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 Creates a restriction as an intersection line when the transitions are Touch.
 
 IntPatch_RLine (const Standard_Boolean Tang)
 Creates a restriction as an intersection line when the transitions are Undecided.
 
virtual void AddVertex (const IntPatch_Point &Pnt, const Standard_Boolean theIsPrepend=Standard_False) override
 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.
 
void Replace (const Standard_Integer Index, const IntPatch_Point &Pnt)
 Replaces the element of range Index in the list of points.
 
void SetFirstPoint (const Standard_Integer IndFirst)
 
void SetLastPoint (const Standard_Integer IndLast)
 
void Add (const Handle< IntSurf_LineOn2S > &L)
 
Standard_Boolean IsArcOnS1 () const
 Returns True if the intersection is on the domain of the first patch. Returns False if the intersection is on the domain of the second patch.
 
Standard_Boolean IsArcOnS2 () const
 Returns True if the intersection is on the domain of the first patch. Returns False if the intersection is on the domain of the second patch.
 
void SetArcOnS1 (const Handle< Adaptor2d_Curve2d > &A)
 
void SetArcOnS2 (const Handle< Adaptor2d_Curve2d > &A)
 
void SetParamOnS1 (const Standard_Real p1, const Standard_Real p2)
 
void SetParamOnS2 (Standard_Real &p1, Standard_Real &p2)
 
const Handle< Adaptor2d_Curve2d > & ArcOnS1 () const
 Returns the concerned arc.
 
const Handle< Adaptor2d_Curve2d > & ArcOnS2 () const
 Returns the concerned arc.
 
void ParamOnS1 (Standard_Real &p1, Standard_Real &p2) const
 
void ParamOnS2 (Standard_Real &p1, Standard_Real &p2) const
 
Standard_Boolean HasFirstPoint () const
 Returns True if the line has a known First point. This point is given by the method FirstPoint().
 
Standard_Boolean HasLastPoint () const
 Returns True if the line has a known Last point. This point is given by the method LastPoint().
 
const IntPatch_PointFirstPoint () const
 Returns the IntPoint corresponding to the FirstPoint. An exception is raised when HasFirstPoint returns False.
 
const IntPatch_PointLastPoint () const
 Returns the IntPoint corresponding to the LastPoint. An exception is raised when HasLastPoint returns False.
 
virtual Standard_Integer NbVertex () const override
 Returns number of vertices (IntPatch_Point) of the line.
 
virtual const IntPatch_PointVertex (const Standard_Integer Index) const override
 Returns the vertex of range Index on the line.
 
virtual IntPatch_PointChangeVertex (const Standard_Integer Index) override
 Returns the vertex of range Index on the line.
 
virtual void RemoveVertex (const Standard_Integer theIndex) override
 Removes single vertex from the line.
 
Standard_Boolean HasPolygon () const
 
virtual Standard_Integer NbPnts () const override
 Returns the number of intersection points.
 
virtual const IntSurf_PntOn2SPoint (const Standard_Integer Index) const override
 Returns the intersection point of range Index.
 
void SetPoint (const Standard_Integer Index, const IntPatch_Point &Pnt)
 Set the Point of index <Index> in the LineOn2S.
 
void ComputeVertexParameters (const Standard_Real Tol)
 Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.
 
virtual Handle< IntSurf_LineOn2SCurve () const override
 Returns set of intersection points.
 
virtual Standard_Boolean IsOutSurf1Box (const gp_Pnt2d &theP) const override
 Returns TRUE if theP is out of the box built from the points on 1st surface.
 
virtual Standard_Boolean IsOutSurf2Box (const gp_Pnt2d &theP) const override
 Returns TRUE if theP is out of the box built from the points on 2nd surface.
 
virtual Standard_Boolean IsOutBox (const gp_Pnt &theP) const override
 Returns TRUE if theP is out of the box built from 3D-points.
 
virtual void ClearVertexes () override
 Removes vertices from the line (i.e. cleans svtx member)
 
void SetCurve (const Handle< IntSurf_LineOn2S > &theNewCurve)
 
void Dump (const Standard_Integer theMode) const
 if (theMode == 0) then prints the information about WLine if (theMode == 1) then prints the list of 3d-points if (theMode == 2) then prints the list of 2d-points on the 1st surface Otherwise, prints list of 2d-points on the 2nd surface
 
- 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.
 
IntPatch_IType ArcType () const
 Returns the type of geometry 3d (Line, Circle, Parabola, Hyperbola, Ellipse, Analytic, Walking, Restriction)
 
Standard_Boolean IsTangent () const
 Returns TRUE if the intersection is a line of tangency between the 2 patches.
 
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.
 
IntSurf_TypeTrans TransitionOnS2 () const
 Returns the type of the transition of the line for the second surface. The transition is "constant" along the line.
 
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.
 
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.
 
Standard_Boolean IsUIsoOnS1 () const
 Returns TRUE if the intersection is a U isoparametric curve on the first patch.
 
Standard_Boolean IsVIsoOnS1 () const
 Returns TRUE if the intersection is a V isoparametric curve on the first patch.
 
Standard_Boolean IsUIsoOnS2 () const
 Returns TRUE if the intersection is a U isoparametric curve on the second patch.
 
Standard_Boolean IsVIsoOnS2 () const
 Returns TRUE if the intersection is a V isoparametric curve on the second patch.
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
 
virtual ~Standard_Transient ()
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
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.
 
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.
 
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.
 
Standard_Integer GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object.
 
Standard_Integer DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from IntPatch_PointLine
static Standard_Real CurvatureRadiusOfIntersLine (const Handle< Adaptor3d_Surface > &theS1, const Handle< Adaptor3d_Surface > &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.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_type_name ()
 Returns a type descriptor about this object.
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
 
- Protected Member Functions inherited from IntPatch_PointLine
 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.
 
 IntPatch_PointLine (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 To initialize the fields, when the transitions are Touch.
 
 IntPatch_PointLine (const Standard_Boolean Tang)
 To initialize the fields, when the transitions are Undecided.
 
- 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.
 
 IntPatch_Line (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 To initialize the fields, when the transitions are Touch.
 
 IntPatch_Line (const Standard_Boolean Tang)
 To initialize the fields, when the transitions are Undecided.
 
- Protected Attributes inherited from IntPatch_Line
IntPatch_IType typ
 

Detailed Description

Implementation of an intersection line described by a restriction line on one of the surfaces.

Constructor & Destructor Documentation

◆ IntPatch_RLine() [1/3]

IntPatch_RLine::IntPatch_RLine ( const Standard_Boolean  Tang,
const IntSurf_TypeTrans  Trans1,
const IntSurf_TypeTrans  Trans2 
)

Creates a restriction as an intersection line when the transitions are In or Out.

◆ IntPatch_RLine() [2/3]

IntPatch_RLine::IntPatch_RLine ( const Standard_Boolean  Tang,
const IntSurf_Situation  Situ1,
const IntSurf_Situation  Situ2 
)

Creates a restriction as an intersection line when the transitions are Touch.

◆ IntPatch_RLine() [3/3]

IntPatch_RLine::IntPatch_RLine ( const Standard_Boolean  Tang)

Creates a restriction as an intersection line when the transitions are Undecided.

Member Function Documentation

◆ Add()

void IntPatch_RLine::Add ( const Handle< IntSurf_LineOn2S > &  L)

◆ AddVertex()

virtual void IntPatch_RLine::AddVertex ( const IntPatch_Point Pnt,
const Standard_Boolean  theIsPrepend = Standard_False 
)
overridevirtual

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.

Implements IntPatch_PointLine.

◆ ArcOnS1()

const Handle< Adaptor2d_Curve2d > & IntPatch_RLine::ArcOnS1 ( ) const

Returns the concerned arc.

◆ ArcOnS2()

const Handle< Adaptor2d_Curve2d > & IntPatch_RLine::ArcOnS2 ( ) const

Returns the concerned arc.

◆ ChangeVertex()

virtual IntPatch_Point & IntPatch_RLine::ChangeVertex ( const Standard_Integer  Index)
overridevirtual

Returns the vertex of range Index on the line.

Implements IntPatch_PointLine.

◆ ClearVertexes()

virtual void IntPatch_RLine::ClearVertexes ( )
inlineoverridevirtual

Removes vertices from the line (i.e. cleans svtx member)

Implements IntPatch_PointLine.

◆ ComputeVertexParameters()

void IntPatch_RLine::ComputeVertexParameters ( const Standard_Real  Tol)

Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.

◆ Curve()

virtual Handle< IntSurf_LineOn2S > IntPatch_RLine::Curve ( ) const
overridevirtual

Returns set of intersection points.

Implements IntPatch_PointLine.

◆ Dump()

void IntPatch_RLine::Dump ( const Standard_Integer  theMode) const

if (theMode == 0) then prints the information about WLine if (theMode == 1) then prints the list of 3d-points if (theMode == 2) then prints the list of 2d-points on the 1st surface Otherwise, prints list of 2d-points on the 2nd surface

◆ FirstPoint()

const IntPatch_Point & IntPatch_RLine::FirstPoint ( ) const

Returns the IntPoint corresponding to the FirstPoint. An exception is raised when HasFirstPoint returns False.

◆ HasFirstPoint()

Standard_Boolean IntPatch_RLine::HasFirstPoint ( ) const

Returns True if the line has a known First point. This point is given by the method FirstPoint().

◆ HasLastPoint()

Standard_Boolean IntPatch_RLine::HasLastPoint ( ) const

Returns True if the line has a known Last point. This point is given by the method LastPoint().

◆ HasPolygon()

Standard_Boolean IntPatch_RLine::HasPolygon ( ) const

◆ IsArcOnS1()

Standard_Boolean IntPatch_RLine::IsArcOnS1 ( ) const

Returns True if the intersection is on the domain of the first patch. Returns False if the intersection is on the domain of the second patch.

◆ IsArcOnS2()

Standard_Boolean IntPatch_RLine::IsArcOnS2 ( ) const

Returns True if the intersection is on the domain of the first patch. Returns False if the intersection is on the domain of the second patch.

◆ IsOutBox()

virtual Standard_Boolean IntPatch_RLine::IsOutBox ( const gp_Pnt theP) const
inlineoverridevirtual

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

Implements IntPatch_PointLine.

◆ IsOutSurf1Box()

virtual Standard_Boolean IntPatch_RLine::IsOutSurf1Box ( const gp_Pnt2d theP) const
inlineoverridevirtual

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

Implements IntPatch_PointLine.

◆ IsOutSurf2Box()

virtual Standard_Boolean IntPatch_RLine::IsOutSurf2Box ( const gp_Pnt2d theP) const
inlineoverridevirtual

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

Implements IntPatch_PointLine.

◆ LastPoint()

const IntPatch_Point & IntPatch_RLine::LastPoint ( ) const

Returns the IntPoint corresponding to the LastPoint. An exception is raised when HasLastPoint returns False.

◆ NbPnts()

virtual Standard_Integer IntPatch_RLine::NbPnts ( ) const
overridevirtual

Returns the number of intersection points.

Implements IntPatch_PointLine.

◆ NbVertex()

virtual Standard_Integer IntPatch_RLine::NbVertex ( ) const
overridevirtual

Returns number of vertices (IntPatch_Point) of the line.

Implements IntPatch_PointLine.

◆ ParamOnS1()

void IntPatch_RLine::ParamOnS1 ( Standard_Real p1,
Standard_Real p2 
) const

◆ ParamOnS2()

void IntPatch_RLine::ParamOnS2 ( Standard_Real p1,
Standard_Real p2 
) const

◆ Point()

virtual const IntSurf_PntOn2S & IntPatch_RLine::Point ( const Standard_Integer  Index) const
overridevirtual

Returns the intersection point of range Index.

Implements IntPatch_PointLine.

◆ RemoveVertex()

virtual void IntPatch_RLine::RemoveVertex ( const Standard_Integer  theIndex)
overridevirtual

Removes single vertex from the line.

Implements IntPatch_PointLine.

◆ Replace()

void IntPatch_RLine::Replace ( const Standard_Integer  Index,
const IntPatch_Point Pnt 
)

Replaces the element of range Index in the list of points.

◆ SetArcOnS1()

void IntPatch_RLine::SetArcOnS1 ( const Handle< Adaptor2d_Curve2d > &  A)

◆ SetArcOnS2()

void IntPatch_RLine::SetArcOnS2 ( const Handle< Adaptor2d_Curve2d > &  A)

◆ SetCurve()

void IntPatch_RLine::SetCurve ( const Handle< IntSurf_LineOn2S > &  theNewCurve)
inline

◆ SetFirstPoint()

void IntPatch_RLine::SetFirstPoint ( const Standard_Integer  IndFirst)

◆ SetLastPoint()

void IntPatch_RLine::SetLastPoint ( const Standard_Integer  IndLast)

◆ SetParamOnS1()

void IntPatch_RLine::SetParamOnS1 ( const Standard_Real  p1,
const Standard_Real  p2 
)

◆ SetParamOnS2()

void IntPatch_RLine::SetParamOnS2 ( Standard_Real p1,
Standard_Real p2 
)

◆ SetPoint()

void IntPatch_RLine::SetPoint ( const Standard_Integer  Index,
const IntPatch_Point Pnt 
)

Set the Point of index <Index> in the LineOn2S.

◆ Vertex()

virtual const IntPatch_Point & IntPatch_RLine::Vertex ( const Standard_Integer  Index) const
overridevirtual

Returns the vertex of range Index on the line.

Implements IntPatch_PointLine.


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