OCC.Core.Contap module

Contap module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_contap.html

class Contap_ArcFunction(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

Return type

None

LastComputedPoint()
  • Returns the point, which has been computed while the last calling Value() method
    rtype

    gp_Pnt

NbSamples()
Return type

int

Quadric()
Return type

IntSurf_Quadric

Set()
Parameters

S

type S

Adaptor3d_HSurface

rtype

None:param Direction:

type Direction

gp_Dir

rtype

None:param Direction:

type Direction

gp_Dir

param Angle

type Angle

float

rtype

None:param Eye:

type Eye

gp_Pnt

rtype

None:param Eye:

type Eye

gp_Pnt

param Angle

type Angle

float

rtype

None:param A:

type A

Adaptor2d_HCurve2d

rtype

None

Surface()
  • Returns mySurf field
    rtype

    opencascade::handle<Adaptor3d_HSurface>

Valpoint()
Parameters

Index

type Index

int

rtype

gp_Pnt

property thisown

The membership flag

class Contap_ContAna(*args)

Bases: object

Return type

None

Circle()
Return type

gp_Circ

IsDone()
Return type

bool

Line()
Parameters

Index

type Index

int

rtype

gp_Lin

NbContours()
Return type

int

Perform()
Parameters

S

type S

gp_Sphere

param D

type D

gp_Dir

rtype

None:param S:

type S

gp_Sphere

param D

type D

gp_Dir

param Ang

type Ang

float

rtype

None:param S:

type S

gp_Sphere

param Eye

type Eye

gp_Pnt

rtype

None:param C:

type C

gp_Cylinder

param D

type D

gp_Dir

rtype

None:param C:

type C

gp_Cylinder

param D

type D

gp_Dir

param Ang

type Ang

float

rtype

None:param C:

type C

gp_Cylinder

param Eye

type Eye

gp_Pnt

rtype

None:param C:

type C

gp_Cone

param D

type D

gp_Dir

rtype

None:param C:

type C

gp_Cone

param D

type D

gp_Dir

param Ang

type Ang

float

rtype

None:param C:

type C

gp_Cone

param Eye

type Eye

gp_Pnt

rtype

None

TypeContour()
  • Returns GeomAbs_Line or GeomAbs_Circle, when IsDone() returns True.
    rtype

    GeomAbs_CurveType

property thisown

The membership flag

class Contap_Contour(*args)

Bases: object

Return type

None:param Direction: :type Direction: gp_Vec :rtype: None:param Direction: :type Direction: gp_Vec :param Angle: :type Angle: float :rtype: None:param Eye: :type Eye: gp_Pnt :rtype: None* Creates the contour in a given direction. :param Surf: :type Surf: Adaptor3d_HSurface :param Domain: :type Domain: Adaptor3d_TopolTool :param Direction: :type Direction: gp_Vec :rtype: None* Creates the contour in a given direction. :param Surf: :type Surf: Adaptor3d_HSurface :param Domain: :type Domain: Adaptor3d_TopolTool :param Direction: :type Direction: gp_Vec :param Angle: :type Angle: float :rtype: None* Creates the contour for a perspective view. :param Surf: :type Surf: Adaptor3d_HSurface :param Domain: :type Domain: Adaptor3d_TopolTool :param Eye: :type Eye: gp_Pnt :rtype: None

Init()
Parameters

Direction

type Direction

gp_Vec

rtype

None:param Direction:

type Direction

gp_Vec

param Angle

type Angle

float

rtype

None:param Eye:

type Eye

gp_Pnt

rtype

None

IsDone()
Return type

bool

IsEmpty()
  • Returns true if the is no line.
    rtype

    bool

Line()
Parameters

Index

type Index

int

rtype

Contap_Line

NbLines()
Return type

int

Perform()
  • Creates the contour in a given direction.
    param Surf

    type Surf

    Adaptor3d_HSurface

    param Domain

    type Domain

    Adaptor3d_TopolTool

    rtype

    None* Creates the contour in a given direction.

    param Surf

    type Surf

    Adaptor3d_HSurface

    param Domain

    type Domain

    Adaptor3d_TopolTool

    param Direction

    type Direction

    gp_Vec

    rtype

    None* Creates the contour in a given direction.

    param Surf

    type Surf

    Adaptor3d_HSurface

    param Domain

    type Domain

    Adaptor3d_TopolTool

    param Direction

    type Direction

    gp_Vec

    param Angle

    type Angle

    float

    rtype

    None* Creates the contour for a perspective view.

    param Surf

    type Surf

    Adaptor3d_HSurface

    param Domain

    type Domain

    Adaptor3d_TopolTool

    param Eye

    type Eye

    gp_Pnt

    rtype

    None

SurfaceFunction()
  • Returns a reference on the internal SurfaceFunction. This is used to compute tangents on the lines.
    rtype

    Contap_SurfFunction

property thisown

The membership flag

class Contap_HContTool

Bases: object

static Bounds()
  • Returns the parametric limits on the arc C. These limits must be finitethey are either the real limits of the arc, for a finite arc, or a bounding box for an infinite arc.
    param C

    type C

    Adaptor2d_HCurve2d

    param Ufirst

    type Ufirst

    float

    param Ulast

    type Ulast

    float

    rtype

    void

static HasBeenSeen()
  • Returns True if all the intersection point and edges are known on the Arc. The intersection point are given as vertices. The intersection edges are given as intervals between two vertices.
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    bool

static HasFirstPoint()
  • Returns True when the segment of range Index is not open at the left side. In that case, IndFirst is the range in the list intersection points (see NbPoints) of the one which defines the left bound of the segment. Otherwise, the method has to return False, and IndFirst has no meaning.
    param C

    type C

    Adaptor2d_HCurve2d

    param Index

    type Index

    int

    param IndFirst

    type IndFirst

    int

    rtype

    bool

static HasLastPoint()
  • Returns True when the segment of range Index is not open at the right side. In that case, IndLast is the range in the list intersection points (see NbPoints) of the one which defines the right bound of the segment. Otherwise, the method has to return False, and IndLast has no meaning.
    param C

    type C

    Adaptor2d_HCurve2d

    param Index

    type Index

    int

    param IndLast

    type IndLast

    int

    rtype

    bool

static IsAllSolution()
  • Returns True when the whole restriction is solution of the intersection problem.
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    bool

static IsVertex()
  • Returns True if the intersection point of range Index corresponds with a vertex on the arc A.
    param C

    type C

    Adaptor2d_HCurve2d

    param Index

    type Index

    int

    rtype

    bool

static NbPoints()
  • Returns the number of intersection points on the arc A.
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    int

static NbSamplePoints()
Parameters

S

type S

Adaptor3d_HSurface

rtype

int

static NbSamplesOnArc()
  • returns the number of points which is used to make a sample on the arc. this number is a function of the Surface and the CurveOnSurface complexity.
    param A

    type A

    Adaptor2d_HCurve2d

    rtype

    int

static NbSamplesU()
Parameters

S

type S

Adaptor3d_HSurface

param u1

type u1

float

param u2

type u2

float

rtype

int

static NbSamplesV()
Parameters

S

type S

Adaptor3d_HSurface

param v1

type v1

float

param v2

type v2

float

rtype

int

static NbSegments()
  • returns the number of part of A solution of the of intersection problem.
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    int

static Parameter()
  • Returns the parameter of the vertex V on the arc A.
    param V

    type V

    Adaptor3d_HVertex

    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    float

static Project()
  • Projects the point P on the arc C. If the methods returns Standard_True, the projection is successful, and Paramproj is the parameter on the arc of the projected point, Ptproj is the projected Point. If the method returns Standard_False, Param proj and Ptproj are not significant.
    param C

    type C

    Adaptor2d_HCurve2d

    param P

    type P

    gp_Pnt2d

    param Paramproj

    type Paramproj

    float

    param Ptproj

    type Ptproj

    gp_Pnt2d

    rtype

    bool

static SamplePoint()
Parameters

S

type S

Adaptor3d_HSurface

param Index

type Index

int

param U

type U

float

param V

type V

float

rtype

void

static Tolerance()
  • Returns the parametric tolerance used to consider that the vertex and another point meet, i-e if Abs(parameter(Vertex) - parameter(OtherPnt))<= Tolerance, the points are ‘merged’.
    param V

    type V

    Adaptor3d_HVertex

    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    float

static Value()
  • Returns the value (Pt), the tolerance (Tol), and the parameter (U) on the arc A , of the intersection point of range Index.
    param C

    type C

    Adaptor2d_HCurve2d

    param Index

    type Index

    int

    param Pt

    type Pt

    gp_Pnt

    param Tol

    type Tol

    float

    param U

    type U

    float

    rtype

    void

static Vertex()
  • When IsVertex returns True, this method returns the vertex on the arc A.
    param C

    type C

    Adaptor2d_HCurve2d

    param Index

    type Index

    int

    param V

    type V

    Adaptor3d_HVertex

    rtype

    void

property thisown

The membership flag

class Contap_HCurve2dTool

Bases: object

static BSpline()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

opencascade::handle<Geom2d_BSplineCurve>

static Bezier()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

opencascade::handle<Geom2d_BezierCurve>

static Circle()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

gp_Circ2d

static Continuity()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

GeomAbs_Shape

static D0()
  • Computes the point of parameter U on the curve.
    param C

    type C

    Adaptor2d_HCurve2d

    param U

    type U

    float

    param P

    type P

    gp_Pnt2d

    rtype

    None

static D1()
  • Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
    param C

    type C

    Adaptor2d_HCurve2d

    param U

    type U

    float

    param P

    type P

    gp_Pnt2d

    param V

    type V

    gp_Vec2d

    rtype

    None

static D2()
  • Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
    param C

    type C

    Adaptor2d_HCurve2d

    param U

    type U

    float

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    rtype

    None

static D3()
  • Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
    param C

    type C

    Adaptor2d_HCurve2d

    param U

    type U

    float

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param V3

    type V3

    gp_Vec2d

    rtype

    None

static DN()
  • The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
    param C

    type C

    Adaptor2d_HCurve2d

    param U

    type U

    float

    param N

    type N

    int

    rtype

    gp_Vec2d

static Ellipse()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

gp_Elips2d

static FirstParameter()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

float

static GetType()
  • Returns the type of the curve in the current intervalLine, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    GeomAbs_CurveType

static Hyperbola()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

gp_Hypr2d

static Intervals()
  • Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
    param C

    type C

    Adaptor2d_HCurve2d

    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    None

static IsClosed()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

bool

static IsPeriodic()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

bool

static LastParameter()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

float

static Line()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

gp_Lin2d

static NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(myclass) >= <S>
    param C

    type C

    Adaptor2d_HCurve2d

    param S

    type S

    GeomAbs_Shape

    rtype

    int

static NbSamples()
Parameters

C

type C

Adaptor2d_HCurve2d

param U0

type U0

float

param U1

type U1

float

rtype

int

static Parabola()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

gp_Parab2d

static Period()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

float

static Resolution()
  • Returns the parametric resolution corresponding to the real space resolution <R3d>.
    param C

    type C

    Adaptor2d_HCurve2d

    param R3d

    type R3d

    float

    rtype

    float

static Value()
  • Computes the point of parameter U on the curve.
    param C

    type C

    Adaptor2d_HCurve2d

    param U

    type U

    float

    rtype

    gp_Pnt2d

property thisown

The membership flag

class Contap_Line(*args)

Bases: object

Return type

None

Add()
Parameters

P

type P

IntSurf_PntOn2S

rtype

None:param P:

type P

Contap_Point

rtype

None

Arc()
Return type

opencascade::handle<Adaptor2d_HCurve2d>

Circle()
Return type

gp_Circ

Clear()
Return type

None

Line()
Return type

gp_Lin

LineOn2S()
Return type

opencascade::handle<IntSurf_LineOn2S>

NbPnts()
Return type

int

NbVertex()
Return type

int

Point()
Parameters

Index

type Index

int

rtype

IntSurf_PntOn2S

ResetSeqOfVertex()
Return type

None

SetLineOn2S()
Parameters

L

type L

IntSurf_LineOn2S

rtype

None

SetTransitionOnS()
  • Set The Tansition of the line.
    param T

    type T

    IntSurf_TypeTrans

    rtype

    None

SetValue()
Parameters

L

type L

gp_Lin

rtype

None:param C:

type C

gp_Circ

rtype

None:param A:

type A

Adaptor2d_HCurve2d

rtype

None

TransitionOnS()
  • returns IN if at the ‘left’ of the line, the normale of the surface is oriented to the observator.
    rtype

    IntSurf_TypeTrans

TypeContour()
  • Returns Contap_Lin for a line, Contap_Circle for a circle, and Contap_Walking for a Walking line, Contap_Restriction for a part of boundarie.
    rtype

    Contap_IType

Vertex()
Parameters

Index

type Index

int

rtype

Contap_Point

property thisown

The membership flag

class Contap_Point(*args)

Bases: object

  • Empty constructor.
    rtype

    None* Creates a point.

    param Pt

    type Pt

    gp_Pnt

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

Arc()
  • Returns the arc of restriction containing the vertex.
    rtype

    opencascade::handle<Adaptor2d_HCurve2d>

IsInternal()
  • Returns True if the point is an internal one, i.e if the tangent to the line on the point and the eye direction are parallel.
    rtype

    bool

IsMultiple()
  • Returns True if the point belongs to several lines.
    rtype

    bool

IsOnArc()
  • Returns True when the point is an intersection between the contour and a restriction.
    rtype

    bool

IsVertex()
  • Returns True if the point is a vertex on the initial restriction facet of the surface.
    rtype

    bool

ParameterOnArc()
  • Returns the parameter of the point on the arc returned by the method Arc().
    rtype

    float

ParameterOnLine()
  • This method returns the parameter of the point on the intersection line. If the points does not belong to an intersection line, the value returned does not have any sens.
    rtype

    float

Parameters()
  • Returns the parameters on the surface of the point.
    param U1

    type U1

    float

    param V1

    type V1

    float

    rtype

    None

SetArc()
  • Sets the value of the arc and of the parameter on this arc of the point.
    param A

    type A

    Adaptor2d_HCurve2d

    param Param

    type Param

    float

    param TLine

    type TLine

    IntSurf_Transition

    param TArc

    type TArc

    IntSurf_Transition

    rtype

    None

SetInternal()
Return type

None

SetMultiple()
Return type

None

SetParameter()
  • Set the value of the parameter on the intersection line.
    param Para

    type Para

    float

    rtype

    None

SetValue()
  • Sets the values for a point.
    param Pt

    type Pt

    gp_Pnt

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

SetVertex()
  • Sets the values of a point which is a vertex on the initial facet of restriction of one of the surface.
    param V

    type V

    Adaptor3d_HVertex

    rtype

    None

TransitionOnArc()
  • Returns the transition of the point on the arc.
    rtype

    IntSurf_Transition

TransitionOnLine()
  • Returns the transition of the point on the contour.
    rtype

    IntSurf_Transition

Value()
  • Returns the intersection point (geometric information).
    rtype

    gp_Pnt

Vertex()
  • Returns the information about the point when it is on the domain of the patch, i-e when the function IsVertex returns True. Otherwise, an exception is raised.
    rtype

    opencascade::handle<Adaptor3d_HVertex>

property thisown

The membership flag

class Contap_SequenceOfIWLineOfTheIWalking(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class Contap_SequenceOfPathPointOfTheSearch(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class Contap_SequenceOfSegmentOfTheSearch(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class Contap_SurfFunction(*args)

Bases: OCC.Core.math.math_FunctionSetWithDerivatives

Return type

None

Angle()
Return type

float

Direction()
Return type

gp_Dir

Direction2d()
Return type

gp_Dir2d

Direction3d()
Return type

gp_Vec

Eye()
Return type

gp_Pnt

FunctionType()
Return type

Contap_TFunction

IsTangent()
Return type

bool

PSurface()
  • Method is entered for compatibility with IntPatch_TheSurfFunction.
    rtype

    opencascade::handle<Adaptor3d_HSurface>

Point()
  • Returns the value of the solution point on the surface.
    rtype

    gp_Pnt

Root()
  • Root is the value of the function at the solution. It is a vector of dimension 1, i-e a real.
    rtype

    float

Set()
Parameters

S

type S

Adaptor3d_HSurface

rtype

None:param Eye:

type Eye

gp_Pnt

rtype

None:param Dir:

type Dir

gp_Dir

rtype

None:param Dir:

type Dir

gp_Dir

param Angle

type Angle

float

rtype

None:param Eye:

type Eye

gp_Pnt

param Angle

type Angle

float

rtype

None:param Tolerance:

type Tolerance

float

rtype

None

Surface()
Return type

opencascade::handle<Adaptor3d_HSurface>

Tolerance()
  • Returns the value Tol so that if Abs(Func.Root())<Tol the function is considered null.
    rtype

    float

property thisown

The membership flag

class Contap_SurfProps

Bases: object

static DerivAndNorm()
  • Computes the point <P>, and normal vector <N> on <S> at parameters U,V.
    param S

    type S

    Adaptor3d_HSurface

    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    param d1u

    type d1u

    gp_Vec

    param d1v

    type d1v

    gp_Vec

    param N

    type N

    gp_Vec

    rtype

    void

static NormAndDn()
  • Computes the point <P>, normal vector <N>, and its derivatives <Dnu> and <Dnv> on <S> at parameters U,V.
    param S

    type S

    Adaptor3d_HSurface

    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    param N

    type N

    gp_Vec

    param Dnu

    type Dnu

    gp_Vec

    param Dnv

    type Dnv

    gp_Vec

    rtype

    void

static Normale()
  • Computes the point <P>, and normal vector <N> on <S> at parameters U,V.
    param S

    type S

    Adaptor3d_HSurface

    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    param N

    type N

    gp_Vec

    rtype

    void

property thisown

The membership flag

class Contap_TheHSequenceOfPoint(*args)

Bases: OCC.Core.Contap.Contap_TheSequenceOfPoint, OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Append()
ChangeSequence()
static DownCast(t)
Sequence()
property thisown

The membership flag

class Contap_TheIWLineOfTheIWalking(*args)

Bases: OCC.Core.Standard.Standard_Transient

Parameters

theAllocator – default value is 0 :type theAllocator: IntSurf_Allocator :rtype: None

AddIndexPassing()
  • associer a l ‘indice du point sur la ligne l’indice du point passant dans l’iterateur de depart
    param Index

    type Index

    int

    rtype

    None

AddPoint()
  • Add a point in the line.
    param P

    type P

    IntSurf_PntOn2S

    rtype

    None

AddStatusFirst()
Parameters

Closed

type Closed

bool

param HasFirst

type HasFirst

bool

rtype

None:param Closed:

type Closed

bool

param HasLast

type HasLast

bool

param Index

type Index

int

param P

type P

IntSurf_PathPoint

rtype

None

AddStatusFirstLast()
Parameters

Closed

type Closed

bool

param HasFirst

type HasFirst

bool

param HasLast

type HasLast

bool

rtype

None

AddStatusLast()
Parameters

HasLast

type HasLast

bool

rtype

None:param HasLast:

type HasLast

bool

param Index

type Index

int

param P

type P

IntSurf_PathPoint

rtype

None

Cut()
  • Cut the line at the point of rank Index.
    param Index

    type Index

    int

    rtype

    None

static DownCast(t)
FirstPoint()
  • Returns the first point of the line when it is a marching point. An exception is raised if HasFirstPoint returns False.
    rtype

    IntSurf_PathPoint

FirstPointIndex()
  • Returns the Index of first point of the line when it is a marching point.This index is the index in the PointStartIterator. An exception is raised if HasFirstPoint returns False.
    rtype

    int

HasFirstPoint()
  • Returns True if the first point of the line is a marching point . when is HasFirstPoint==False ,the line begins on the natural bound of the surface.the line can be too long
    rtype

    bool

HasLastPoint()
  • Returns True if the end point of the line is a marching point (Point from IntWS). when is HasFirstPoint==False ,the line ends on the natural bound of the surface.the line can be too long.
    rtype

    bool

IsClosed()
  • Returns True if the line is closed.
    rtype

    bool

IsTangentAtBegining()
Return type

bool

IsTangentAtEnd()
Return type

bool

LastPoint()
  • Returns the last point of the line when it is a marching point. An exception is raised if HasLastPoint returns False.
    rtype

    IntSurf_PathPoint

LastPointIndex()
  • Returns the index of last point of the line when it is a marching point.This index is the index in the PointStartIterator. An exception is raised if HasLastPoint returns False.
    rtype

    int

Line()
  • Returns the LineOn2S contained in the walking line.
    rtype

    opencascade::handle<IntSurf_LineOn2S>

NbPassingPoint()
  • returns the number of points belonging to Pnts1 which are passing point.
    rtype

    int

NbPoints()
  • Returns the number of points of the line (including first point and end pointsee HasLastPoint and HasFirstPoint).
    rtype

    int

PassingPoint()
  • returns the index of the point belonging to the line which is associated to the passing point belonging to Pnts1 an exception is raised if Index > NbPassingPoint()
    param Index

    type Index

    int

    param IndexLine

    type IndexLine

    int

    param IndexPnts

    type IndexPnts

    int

    rtype

    None

Reverse()
  • reverse the points in the line. Hasfirst, HasLast are kept.
    rtype

    None

SetTangencyAtBegining()
Parameters

IsTangent

type IsTangent

bool

rtype

None

SetTangencyAtEnd()
Parameters

IsTangent

type IsTangent

bool

rtype

None

SetTangentVector()
Parameters

V

type V

gp_Vec

param Index

type Index

int

rtype

None

TangentVector()
Parameters

Index

type Index

int

rtype

gp_Vec

Value()
  • Returns the point of range Index. If index <= 0 or Index > NbPoints, an exception is raised.
    param Index

    type Index

    int

    rtype

    IntSurf_PntOn2S

property thisown

The membership flag

class Contap_TheIWalking(*args)

Bases: object

  • Deflection is the maximum deflection admitted between two consecutive points on a resulting polyline. Step is the maximum increment admitted between two consecutive points (in 2d space). Epsilon is the tolerance beyond which 2 points are confused. theToFillHoles is the flag defining whether possible holes between resulting curves are filled or not in case of Contap walking theToFillHoles is True
    param Epsilon

    type Epsilon

    float

    param Deflection

    type Deflection

    float

    param Step

    type Step

    float

    param theToFillHoles

    default value is Standard_False

    type theToFillHoles

    bool

    rtype

    None

IsDone()
  • Returns true if the calculus was successful.
    rtype

    bool

NbLines()
  • Returns the number of resulting polylines. An exception is raised if IsDone returns False.
    rtype

    int

NbSinglePnts()
  • Returns the number of points belonging to Pnts on which no line starts or ends. An exception is raised if IsDone returns False.
    rtype

    int

Perform()
  • Searches a set of polylines starting on a point of Pnts1 or Pnts2. Each point on a resulting polyline verifies F(u,v)=0
    param Pnts1

    type Pnts1

    IntSurf_SequenceOfPathPoint

    param Pnts2

    type Pnts2

    IntSurf_SequenceOfInteriorPoint

    param Func

    type Func

    Contap_SurfFunction

    param S

    type S

    Adaptor3d_HSurface

    param Reversed

    default value is Standard_False

    type Reversed

    bool

    rtype

    None* Searches a set of polylines starting on a point of Pnts1. Each point on a resulting polyline verifies F(u,v)=0

    param Pnts1

    type Pnts1

    IntSurf_SequenceOfPathPoint

    param Func

    type Func

    Contap_SurfFunction

    param S

    type S

    Adaptor3d_HSurface

    param Reversed

    default value is Standard_False

    type Reversed

    bool

    rtype

    None

SetTolerance()
  • Deflection is the maximum deflection admitted between two consecutive points on a resulting polyline. Step is the maximum increment admitted between two consecutive points (in 2d space). Epsilon is the tolerance beyond which 2 points are confused
    param Epsilon

    type Epsilon

    float

    param Deflection

    type Deflection

    float

    param Step

    type Step

    float

    rtype

    None

SinglePnt()
  • Returns the point of range Index . An exception is raised if IsDone returns False. An exception is raised if Index<=0 or Index > NbSinglePnts.
    param Index

    type Index

    int

    rtype

    IntSurf_PathPoint

Value()
  • Returns the polyline of range Index. An exception is raised if IsDone is False. An exception is raised if Index<=0 or Index>NbLines.
    param Index

    type Index

    int

    rtype

    opencascade::handle<Contap_TheIWLineOfTheIWalking>

property thisown

The membership flag

class Contap_ThePathPointOfTheSearch(*args)

Bases: object

Return type

None:param P: :type P: gp_Pnt :param Tol: :type Tol: float :param V: :type V: Adaptor3d_HVertex :param A: :type A: Adaptor2d_HCurve2d :param Parameter: :type Parameter: float :rtype: None:param P: :type P: gp_Pnt :param Tol: :type Tol: float :param A: :type A: Adaptor2d_HCurve2d :param Parameter: :type Parameter: float :rtype: None

Arc()
Return type

opencascade::handle<Adaptor2d_HCurve2d>

IsNew()
Return type

bool

Parameter()
Return type

float

SetValue()
Parameters

P

type P

gp_Pnt

param Tol

type Tol

float

param V

type V

Adaptor3d_HVertex

param A

type A

Adaptor2d_HCurve2d

param Parameter

type Parameter

float

rtype

None:param P:

type P

gp_Pnt

param Tol

type Tol

float

param A

type A

Adaptor2d_HCurve2d

param Parameter

type Parameter

float

rtype

None

Tolerance()
Return type

float

Value()
Return type

gp_Pnt

Vertex()
Return type

opencascade::handle<Adaptor3d_HVertex>

property thisown

The membership flag

class Contap_TheSearch(*args)

Bases: object

  • Empty constructor.
    rtype

    None

AllArcSolution()
  • Returns true if all arc of the Arcs are solution (inside the surface). An exception is raised if IsDone returns False.
    rtype

    bool

IsDone()
  • Returns True if the calculus was successful.
    rtype

    bool

NbPoints()
  • Returns the number of resulting points. An exception is raised if IsDone returns False (NotDone).
    rtype

    int

NbSegments()
  • Returns the number of the resulting segments. An exception is raised if IsDone returns False (NotDone).
    rtype

    int

Perform()
  • Algorithm to find the points and parts of curves of Domain (domain of of restriction of a surface) which verify F = 0. TolBoundary defines if a curve is on Q. TolTangency defines if a point is on Q.
    param F

    type F

    Contap_ArcFunction

    param Domain

    type Domain

    Adaptor3d_TopolTool

    param TolBoundary

    type TolBoundary

    float

    param TolTangency

    type TolTangency

    float

    param RecheckOnRegularity

    default value is Standard_False

    type RecheckOnRegularity

    bool

    rtype

    None

Point()
  • Returns the resulting point of range Index. The exception NotDone is raised if IsDone() returns False. The exception OutOfRange is raised if Index <= 0 or Index > NbPoints.
    param Index

    type Index

    int

    rtype

    Contap_ThePathPointOfTheSearch

Segment()
  • Returns the resulting segment of range Index. The exception NotDone is raised if IsDone() returns False. The exception OutOfRange is raised if Index <= 0 or Index > NbPoints.
    param Index

    type Index

    int

    rtype

    Contap_TheSegmentOfTheSearch

property thisown

The membership flag

class Contap_TheSearchInside(*args)

Bases: object

Return type

None:param F: :type F: Contap_SurfFunction :param Surf: :type Surf: Adaptor3d_HSurface :param T: :type T: Adaptor3d_TopolTool :param Epsilon: :type Epsilon: float :rtype: None

IsDone()
Return type

bool

NbPoints()
  • Returns the number of points. The exception NotDone if raised if IsDone returns False.
    rtype

    int

Perform()
Parameters

F

type F

Contap_SurfFunction

param Surf

type Surf

Adaptor3d_HSurface

param T

type T

Adaptor3d_TopolTool

param Epsilon

type Epsilon

float

rtype

None:param F:

type F

Contap_SurfFunction

param Surf

type Surf

Adaptor3d_HSurface

param UStart

type UStart

float

param VStart

type VStart

float

rtype

None

Value()
  • Returns the point of range Index. The exception NotDone if raised if IsDone returns False. The exception OutOfRange if raised if Index <= 0 or Index > NbPoints.
    param Index

    type Index

    int

    rtype

    IntSurf_InteriorPoint

property thisown

The membership flag

class Contap_TheSegmentOfTheSearch(*args)

Bases: object

  • Empty constructor.
    rtype

    None

Curve()
  • Returns the geometric curve on the surface ‘s domain which is solution.
    rtype

    opencascade::handle<Adaptor2d_HCurve2d>

FirstPoint()
  • Returns the first point.
    rtype

    Contap_ThePathPointOfTheSearch

HasFirstPoint()
  • Returns True if there is a vertex (ThePathPoint) defining the lowest valid parameter on the arc.
    rtype

    bool

HasLastPoint()
  • Returns True if there is a vertex (ThePathPoint) defining the greatest valid parameter on the arc.
    rtype

    bool

LastPoint()
  • Returns the last point.
    rtype

    Contap_ThePathPointOfTheSearch

SetLimitPoint()
  • Defines the first point or the last point, depending on the value of the boolean First.
    param V

    type V

    Contap_ThePathPointOfTheSearch

    param First

    type First

    bool

    rtype

    None

SetValue()
  • Defines the concerned arc.
    param A

    type A

    Adaptor2d_HCurve2d

    rtype

    None

property thisown

The membership flag

class Contap_TheSequenceOfLine(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class Contap_TheSequenceOfPoint(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
property thisown

The membership flag

value()