OCC.Core.IntSurf module

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

class IntSurf_Allocator

Bases: object

property thisown

The membership flag

class IntSurf_Couple(*args)

Bases: object

Return type

None:param Index1: :type Index1: int :param Index2: :type Index2: int :rtype: None

First()
  • returns the first element
    rtype

    int

Second()
  • returns the Second element
    rtype

    int

property thisown

The membership flag

class IntSurf_InteriorPoint(*args)

Bases: object

Return type

None:param P: :type P: gp_Pnt :param U: :type U: float :param V: :type V: float :param Direc: :type Direc: gp_Vec :param Direc2d: :type Direc2d: gp_Vec2d :rtype: None

Direction()
  • Returns the tangent at the intersection in 3d space associated to the interior point.
    rtype

    gp_Vec

Direction2d()
  • Returns the tangent at the intersection in the parametric space of the parametric surface.
    rtype

    gp_Vec2d

Parameters()
  • Returns the parameters of the interior point on the parametric surface.
    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

SetValue()
Parameters

P

type P

gp_Pnt

param U

type U

float

param V

type V

float

param Direc

type Direc

gp_Vec

param Direc2d

type Direc2d

gp_Vec2d

rtype

None

UParameter()
  • Returns the first parameter of the interior point on the parametric surface.
    rtype

    float

VParameter()
  • Returns the second parameter of the interior point on the parametric surface.
    rtype

    float

Value()
  • Returns the 3d coordinates of the interior point.
    rtype

    gp_Pnt

property thisown

The membership flag

class IntSurf_InteriorPointTool

Bases: object

static Direction2d()
  • returns the tangent at the intersectin in the parametric space of the parametrized surface.This tangent is associated to the value2d
    param PStart

    type PStart

    IntSurf_InteriorPoint

    rtype

    gp_Dir2d

static Direction3d()
  • returns the tangent at the intersectin in 3d space associated to <P>
    param PStart

    type PStart

    IntSurf_InteriorPoint

    rtype

    gp_Vec

static Value2d()
  • Returns the <U,V> parameters which are associated with <P> it’s the parameters which start the marching algorithm
    param PStart

    type PStart

    IntSurf_InteriorPoint

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

static Value3d()
  • Returns the 3d coordinates of the starting point.
    param PStart

    type PStart

    IntSurf_InteriorPoint

    rtype

    gp_Pnt

property thisown

The membership flag

class IntSurf_LineOn2S(*args)

Bases: OCC.Core.Standard.Standard_Transient

Parameters

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

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

    type P

    IntSurf_PntOn2S

    rtype

    None

Clear()
Return type

None

static DownCast(t)
InsertBefore()
Parameters

I

type I

int

param P

type P

IntSurf_PntOn2S

rtype

None

IsOutBox()
  • Returns True if theP is out of the box built from 3D-points.
    param theP

    type theP

    gp_Pnt

    rtype

    bool

IsOutSurf1Box()
  • Returns True if theP is out of the box built from the points on 1st surface
    param theP

    type theP

    gp_Pnt2d

    rtype

    bool

IsOutSurf2Box()
  • Returns True if theP is out of the box built from the points on 2nd surface
    param theP

    type theP

    gp_Pnt2d

    rtype

    bool

NbPoints()
  • Returns the number of points in the line.
    rtype

    int

RemovePoint()
Parameters

I

type I

int

rtype

None

Reverse()
  • Reverses the order of points of the line.
    rtype

    None

SetUV()
  • Sets the parametric coordinates on one of the surfaces of the point of range Index in the line.
    param Index

    type Index

    int

    param OnFirst

    type OnFirst

    bool

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

Split()
  • Keeps in <self> the points 1 to Index-1, and returns the items Index to the end.
    param Index

    type Index

    int

    rtype

    opencascade::handle<IntSurf_LineOn2S>

Value()
  • Returns the point of range Index in the line.
    param Index

    type Index

    int

    rtype

    IntSurf_PntOn2S* Replaces the point of range Index in the line.

    param Index

    type Index

    int

    param P

    type P

    IntSurf_PntOn2S

    rtype

    None

property thisown

The membership flag

class IntSurf_ListIteratorOfListOfPntOn2S(*args)

Bases: object

ChangeValue()
More()
Next()
Value()
property thisown

The membership flag

class IntSurf_ListOfPntOn2S(*args)

Bases: object

Append()
Assign()
Clear()
First()
InsertAfter()
InsertBefore()
Last()
Prepend()
Remove()
RemoveFirst()
Reverse()
Set()
Size()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class IntSurf_PathPoint(*args)

Bases: object

Return type

None:param P: :type P: gp_Pnt :param U: :type U: float :param V: :type V: float :rtype: None

AddUV()
Parameters

U

type U

float

param V

type V

float

rtype

None

Direction2d()
Return type

gp_Dir2d

Direction3d()
Return type

gp_Vec

IsPassingPnt()
Return type

bool

IsTangent()
Return type

bool

Multiplicity()
Return type

int

Parameters()
Parameters

Index

type Index

int

param U

type U

float

param V

type V

float

rtype

None

SetDirections()
Parameters

V

type V

gp_Vec

param D

type D

gp_Dir2d

rtype

None

SetPassing()
Parameters

Pass

type Pass

bool

rtype

None

SetTangency()
Parameters

Tang

type Tang

bool

rtype

None

SetValue()
Parameters

P

type P

gp_Pnt

param U

type U

float

param V

type V

float

rtype

None

Value()
Return type

gp_Pnt

Value2d()
Parameters

U

type U

float

param V

type V

float

rtype

None

property thisown

The membership flag

class IntSurf_PathPointTool

Bases: object

static Direction2d()
  • returns the tangent at the intersection in the parametric space of the parametrized surface.This tangent is associated to the value2d la tangente a un sens signifiant (indique le sens de chemin ement) an exception is raised if IsTangent is true.
    param PStart

    type PStart

    IntSurf_PathPoint

    rtype

    gp_Dir2d

static Direction3d()
  • returns the tangent at the intersection in 3d space associated to <P> an exception is raised if IsTangent is true.
    param PStart

    type PStart

    IntSurf_PathPoint

    rtype

    gp_Vec

static IsPassingPnt()
  • Returns True if the point is a point on a non-oriented arc, which means that the intersection line does not stop at such a point but just go through such a point. IsPassingPnt is True when IsOnArc is True
    param PStart

    type PStart

    IntSurf_PathPoint

    rtype

    bool

static IsTangent()
  • Returns True if the surfaces are tangent at this point. IsTangent can be True when IsOnArc is True if IsPassingPnt is True and IsTangent is True,this point is a stopped point.
    param PStart

    type PStart

    IntSurf_PathPoint

    rtype

    bool

static Multiplicity()
  • Returns the multiplicity of the point i-e the number of auxillar parameters associated to the point which the principal parameters are given by Value2d
    param PStart

    type PStart

    IntSurf_PathPoint

    rtype

    int

static Parameters()
  • Parametric coordinates associated to the multiplicity. An exception is raised if Mult<=0 or Mult>multiplicity.
    param PStart

    type PStart

    IntSurf_PathPoint

    param Mult

    type Mult

    int

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

static Value2d()
  • Returns the <U, V> parameters which are associated with <P> it’s the parameters which start the marching algorithm
    param PStart

    type PStart

    IntSurf_PathPoint

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

static Value3d()
  • Returns the 3d coordinates of the starting point.
    param PStart

    type PStart

    IntSurf_PathPoint

    rtype

    gp_Pnt

property thisown

The membership flag

class IntSurf_PntOn2S(*args)

Bases: object

  • Empty constructor.
    rtype

    None

IsSame()
  • Returns True if 2D- and 3D-coordinates of theOterPoint are equal to corresponding coordinates of me (with given tolerance). If theTol2D < 0.0 we will compare 3D-points only.
    param theOtherPoint

    type theOtherPoint

    IntSurf_PntOn2S

    param theTol3D

    default value is 0.0

    type theTol3D

    float

    param theTol2D

    default value is -1.0

    type theTol2D

    float

    rtype

    bool

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

    type U1

    float

    param V1

    type V1

    float

    param U2

    type U2

    float

    param V2

    type V2

    float

    rtype

    None

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

    type U1

    float

    param V1

    type V1

    float

    rtype

    None

ParametersOnS2()
  • Returns the parameters of the point on the second surface.
    param U2

    type U2

    float

    param V2

    type V2

    float

    rtype

    None

ParametersOnSurface()
  • Returns the parameters of the point in the parametric space of one of the surface.
    param OnFirst

    type OnFirst

    bool

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

SetValue()
  • Sets the value of the point in 3d space.
    param Pt

    type Pt

    gp_Pnt

    rtype

    None* Sets the values of the point in 3d space, and in the parametric space of one of the surface.

    param Pt

    type Pt

    gp_Pnt

    param OnFirst

    type OnFirst

    bool

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None* Sets the values of the point in 3d space, and in the parametric space of each surface.

    param Pt

    type Pt

    gp_Pnt

    param U1

    type U1

    float

    param V1

    type V1

    float

    param U2

    type U2

    float

    param V2

    type V2

    float

    rtype

    None* Set the values of the point in the parametric space of one of the surface.

    param OnFirst

    type OnFirst

    bool

    param U

    type U

    float

    param V

    type V

    float

    rtype

    None* Set the values of the point in the parametric space of one of the surface.

    param U1

    type U1

    float

    param V1

    type V1

    float

    param U2

    type U2

    float

    param V2

    type V2

    float

    rtype

    None

Value()
  • Returns the point in 3d space.
    rtype

    gp_Pnt

ValueOnSurface()
  • Returns the point in 2d space of one of the surfaces.
    param OnFirst

    type OnFirst

    bool

    rtype

    gp_Pnt2d

property thisown

The membership flag

class IntSurf_Quadric(*args)

Bases: object

Return type

None:param P: :type P: gp_Pln :rtype: None:param C: :type C: gp_Cylinder :rtype: None:param S: :type S: gp_Sphere :rtype: None:param C: :type C: gp_Cone :rtype: None:param T: :type T: gp_Torus :rtype: None

Cone()
Return type

gp_Cone

Cylinder()
Return type

gp_Cylinder

D1()
Parameters

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

rtype

None

DN()
Parameters

U

type U

float

param V

type V

float

param Nu

type Nu

int

param Nv

type Nv

int

rtype

gp_Vec

Distance()
Parameters

P

type P

gp_Pnt

rtype

float

Gradient()
Parameters

P

type P

gp_Pnt

rtype

gp_Vec

Normale()
Parameters

U

type U

float

param V

type V

float

rtype

gp_Vec:param P:

type P

gp_Pnt

rtype

gp_Vec

Parameters()
Parameters

P

type P

gp_Pnt

param U

type U

float

param V

type V

float

rtype

None

Plane()
Return type

gp_Pln

SetValue()
Parameters

P

type P

gp_Pln

rtype

None:param C:

type C

gp_Cylinder

rtype

None:param S:

type S

gp_Sphere

rtype

None:param C:

type C

gp_Cone

rtype

None:param T:

type T

gp_Torus

rtype

None

Sphere()
Return type

gp_Sphere

Torus()
Return type

gp_Torus

TypeQuadric()
Return type

GeomAbs_SurfaceType

ValAndGrad()
Parameters

P

type P

gp_Pnt

param Dist

type Dist

float

param Grad

type Grad

gp_Vec

rtype

None

Value()
Parameters

U

type U

float

param V

type V

float

rtype

gp_Pnt

property thisown

The membership flag

class IntSurf_QuadricTool

Bases: object

static Gradient()
  • Returns the gradient of the function.
    param Quad

    type Quad

    IntSurf_Quadric

    param X

    type X

    float

    param Y

    type Y

    float

    param Z

    type Z

    float

    param V

    type V

    gp_Vec

    rtype

    None

static Tolerance()
  • returns the tolerance of the zero of the implicit function
    param Quad

    type Quad

    IntSurf_Quadric

    rtype

    float

static Value()
  • Returns the value of the function.
    param Quad

    type Quad

    IntSurf_Quadric

    param X

    type X

    float

    param Y

    type Y

    float

    param Z

    type Z

    float

    rtype

    float

static ValueAndGradient()
  • Returns the value and the gradient.
    param Quad

    type Quad

    IntSurf_Quadric

    param X

    type X

    float

    param Y

    type Y

    float

    param Z

    type Z

    float

    param Val

    type Val

    float

    param Grad

    type Grad

    gp_Vec

    rtype

    None

property thisown

The membership flag

class IntSurf_SequenceOfCouple(*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 IntSurf_SequenceOfInteriorPoint(*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 IntSurf_SequenceOfPathPoint(*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 IntSurf_SequenceOfPntOn2S(*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 IntSurf_Transition(*args)

Bases: object

  • Empty constructor. Creates an UNDECIDED transition.
    rtype

    None* Create a IN or OUT transition

    param Tangent

    type Tangent

    bool

    param Type

    type Type

    IntSurf_TypeTrans

    rtype

    None* Create a TOUCH transition.

    param Tangent

    type Tangent

    bool

    param Situ

    type Situ

    IntSurf_Situation

    param Oppos

    type Oppos

    bool

    rtype

    None

IsOpposite()
  • returns a significant value if TransitionType returns TOUCH. In this case, the function returns true when the 2 curves locally define two different parts of the space. If TransitionType returns IN or OUT or UNDECIDED, an exception is raised.
    rtype

    bool

IsTangent()
  • Returns True if the point is tangent to the arc given by Value. An exception is raised if TransitionType returns UNDECIDED.
    rtype

    bool

SetValue()
  • Set the values of an IN or OUT transition.
    param Tangent

    type Tangent

    bool

    param Type

    type Type

    IntSurf_TypeTrans

    rtype

    None* Set the values of a TOUCH transition.

    param Tangent

    type Tangent

    bool

    param Situ

    type Situ

    IntSurf_Situation

    param Oppos

    type Oppos

    bool

    rtype

    None* Set the values of an UNDECIDED transition.

    rtype

    None

Situation()
  • Returns a significant value if TransitionType returns TOUCH. In this case, the function returnsINSIDE when the intersection line remains inside the Arc, OUTSIDE when it remains outside the Arc, UNKNOWN when the calsulus cannot give results. If TransitionType returns IN, or OUT, or UNDECIDED, a exception is raised.
    rtype

    IntSurf_Situation

TransitionType()
  • Returns the type of Transition (in/out/touch/undecided) for the arc given by value. This the transition of the intersection line compared to the Arc of restriction, i-e when the function returns INSIDE for example, it means that the intersection line goes inside the part of plane limited by the arc of restriction.
    rtype

    IntSurf_TypeTrans

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()
class intsurf

Bases: object

static MakeTransition()
  • Computes the transition of the intersection point between the two lines. TgFirst is the tangent vector of the first line. TgSecond is the tangent vector of the second line. Normal is the direction used to orientate the cross product TgFirst^TgSecond. TFirst is the transition of the point on the first line. TSecond is the transition of the point on the second line.
    param TgFirst

    type TgFirst

    gp_Vec

    param TgSecond

    type TgSecond

    gp_Vec

    param Normal

    type Normal

    gp_Dir

    param TFirst

    type TFirst

    IntSurf_Transition

    param TSecond

    type TSecond

    IntSurf_Transition

    rtype

    void

static SetPeriod()
  • Fills theArrOfPeriod array by the period values of theFirstSurf and theSecondSurf. [0] = U-period of theFirstSurf, [1] = V-period of theFirstSurf, [2] = U-period of theSecondSurf, [3] = V-period of theSecondSurf. //! If surface is not periodic in correspond direction then its period is considered to be equal to 0.
    param theFirstSurf

    type theFirstSurf

    Adaptor3d_HSurface

    param theSecondSurf

    type theSecondSurf

    Adaptor3d_HSurface

    param theArrOfPeriod

    type theArrOfPeriod

    float

    rtype

    void

property thisown

The membership flag