OCC.Core.IntPolyh module¶
IntPolyh module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intpolyh.html
-
class
IntPolyh_Couple(*args)¶ Bases:
object- Constructor
- rtype
None* Constructor
- param theTriangle1
- type theTriangle1
int
- param theTriangle2
- type theTriangle2
int
- param theAngle
default value is -2.0
- type theAngle
float
- rtype
None
-
Angle()¶ - Returns the angle
- rtype
float
-
Dump()¶ - Parameters
v –
- type v
int
- rtype
None
-
FirstValue()¶ - Returns the first index
- rtype
int
-
HashCode()¶ - Computes a hash code for this couple, in the range [1, theUpperBound] @param theUpperBound the upper bound of the range a computing hash code must be within returns a computed hash code, in the range [1, theUpperBound]
- param theUpperBound
- type theUpperBound
int
- rtype
int
-
IsAnalyzed()¶ - Returns True if the couple has been analyzed
- rtype
bool
-
IsEqual()¶ - Returns true if the Couple is equal to <theOther>
- param theOther
- type theOther
IntPolyh_Couple &
- rtype
bool
-
SecondValue()¶ - Returns the second index
- rtype
int
-
SetAnalyzed()¶ - Sets the analyzed flag
- param theAnalyzed
- type theAnalyzed
bool
- rtype
None
-
SetAngle()¶ - Sets the angle
- param theAngle
- type theAngle
float
- rtype
None
-
SetCoupleValue()¶ - Sets the triangles
- param theInd1
- type theInd1
int
- param theInd2
- type theInd2
int
- rtype
None
-
property
thisown¶ The membership flag
-
class
IntPolyh_CoupleMapHasher(*args, **kwargs)¶ Bases:
object-
static
HashCode()¶ - Computes a hash code for the given couple, in the range [1, theUpperBound] @param theCouple the couple which hash code is to be computed @param theUpperBound the upper bound of the range a computing hash code must be within returns a computed hash code, in the range [1, theUpperBound]
- param theCouple
- type theCouple
IntPolyh_Couple &
- param theUpperBound
- type theUpperBound
int
- rtype
int
-
static
IsEqual()¶ - Parameters
theCouple1 –
- type theCouple1
IntPolyh_Couple &
- param theCouple2
- type theCouple2
IntPolyh_Couple &
- rtype
bool
-
property
thisown¶ The membership flag
-
static
-
class
IntPolyh_Edge(*args)¶ Bases:
object- Constructor
- rtype
None* Constructor
- param thePoint1
- type thePoint1
int
- param thePoint2
- type thePoint2
int
- param theTriangle1
- type theTriangle1
int
- param theTriangle2
- type theTriangle2
int
- rtype
None
-
Dump()¶ - Parameters
v –
- type v
int
- rtype
None
-
FirstPoint()¶ - Returns the first point
- rtype
int
-
FirstTriangle()¶ - Returns the first triangle
- rtype
int
-
SecondPoint()¶ - Returns the second point
- rtype
int
-
SecondTriangle()¶ - Returns the second triangle
- rtype
int
-
SetFirstPoint()¶ - Sets the first point
- param thePoint
- type thePoint
int
- rtype
None
-
SetFirstTriangle()¶ - Sets the first triangle
- param theTriangle
- type theTriangle
int
- rtype
None
-
SetSecondPoint()¶ - Sets the second point
- param thePoint
- type thePoint
int
- rtype
None
-
SetSecondTriangle()¶ - Sets the second triangle
- param theTriangle
- type theTriangle
int
- rtype
None
-
property
thisown¶ The membership flag
-
class
IntPolyh_Intersection(*args)¶ Bases:
object- @name Constructors Constructor for intersection of two surfaces with default parameters. Performs intersection.
- param theS1
- type theS1
opencascade::handle<Adaptor3d_HSurface> &
- param theS2
- type theS2
opencascade::handle<Adaptor3d_HSurface> &
- rtype
None* Constructor for intersection of two surfaces with the given size of the sampling nets: - <theNbSU1> x <theNbSV1> - for the first surface <theS1>; - <theNbSU2> x <theNbSV2> - for the second surface <theS2>. Performs intersection.
- param theS1
- type theS1
opencascade::handle<Adaptor3d_HSurface> &
- param theNbSU1
- type theNbSU1
int
- param theNbSV1
- type theNbSV1
int
- param theS2
- type theS2
opencascade::handle<Adaptor3d_HSurface> &
- param theNbSU2
- type theNbSU2
int
- param theNbSV2
- type theNbSV2
int
- rtype
None* Constructor for intersection of two surfaces with the precomputed sampling. Performs intersection.
- param theS1
- type theS1
opencascade::handle<Adaptor3d_HSurface> &
- param theUPars1
- type theUPars1
TColStd_Array1OfReal &
- param theVPars1
- type theVPars1
TColStd_Array1OfReal &
- param theS2
- type theS2
opencascade::handle<Adaptor3d_HSurface> &
- param theUPars2
- type theUPars2
TColStd_Array1OfReal &
- param theVPars2
- type theVPars2
TColStd_Array1OfReal &
- rtype
None
-
GetLinePoint()¶ - Gets the parameters of the point in section line
- param IndexLine
- type IndexLine
int
- param IndexPoint
- type IndexPoint
int
- param x
- type x
float &
- param y
- type y
float &
- param z
- type z
float &
- param u1
- type u1
float &
- param v1
- type v1
float &
- param u2
- type u2
float &
- param v2
- type v2
float &
- param incidence
- type incidence
float &
- rtype
None
-
GetTangentZonePoint()¶ - Gets the parameters of the point in tangent zone
- param IndexLine
- type IndexLine
int
- param IndexPoint
- type IndexPoint
int
- param x
- type x
float &
- param y
- type y
float &
- param z
- type z
float &
- param u1
- type u1
float &
- param v1
- type v1
float &
- param u2
- type u2
float &
- param v2
- type v2
float &
- rtype
None
-
IsDone()¶ - @name Getting the results Returns state of the operation
- rtype
bool
-
NbPointsInLine()¶ - Returns the number of points in the given line
- param IndexLine
- type IndexLine
int
- rtype
int
-
NbPointsInTangentZone()¶ - Returns number of points in tangent zone
- param Standard_Integer
- type Standard_Integer
- rtype
int
-
NbSectionLines()¶ - Returns the number of section lines
- rtype
int
-
property
thisown¶ The membership flag
-
class
IntPolyh_ListOfCouples(*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
IntPolyh_Point(*args)¶ Bases:
object- Constructor
- rtype
None* Constructor
- param x
- type x
float
- param y
- type y
float
- param z
- type z
float
- param u
- type u
float
- param v
- type v
float
- rtype
None
-
Add()¶ - Addition
- param P1
- type P1
IntPolyh_Point &
- rtype
IntPolyh_Point
-
Cross()¶ - Cross
- param P1
- type P1
IntPolyh_Point &
- param P2
- type P2
IntPolyh_Point &
- rtype
None
-
Degenerated()¶ - Returns the degenerated flag
- rtype
bool
-
Divide()¶ - Division
- param rr
- type rr
float
- rtype
IntPolyh_Point
-
Dot()¶ - Dot
- param P2
- type P2
IntPolyh_Point &
- rtype
float
-
Dump()¶ - Dump
- rtype
None* Dump
- param i
- type i
int
- rtype
None
-
Equal()¶ - Assignment operator
- param Pt
- type Pt
IntPolyh_Point &
- rtype
None
-
Middle()¶ - Creates middle point from P1 and P2 and stores it to this
- param MySurface
- type MySurface
opencascade::handle<Adaptor3d_HSurface> &
- param P1
- type P1
IntPolyh_Point &
- param P2
- type P2
IntPolyh_Point &
- rtype
None
-
Multiplication()¶ - Multiplication
- param rr
- type rr
float
- rtype
IntPolyh_Point
-
PartOfCommon()¶ - Returns 0 if the point is not common with the other surface
- rtype
int
-
Set()¶ - Sets the point
- param x
- type x
float
- param y
- type y
float
- param z
- type z
float
- param u
- type u
float
- param v
- type v
float
- param II
default value is 1
- type II
int
- rtype
None:param Pt:
- type Pt
IntPolyh_Point &
- rtype
None
-
SetDegenerated()¶ - Sets the degenerated flag
- param theFlag
- type theFlag
bool
- rtype
None
-
SetPartOfCommon()¶ - Sets the part of common
- param ii
- type ii
int
- rtype
None
-
SetU()¶ - Sets the U coordinate for the 2D point
- param u
- type u
float
- rtype
None
-
SetV()¶ - Sets the V coordinate for the 2D point
- param v
- type v
float
- rtype
None
-
SetX()¶ - Sets the X coordinate for the 3D point
- param x
- type x
float
- rtype
None
-
SetY()¶ - Sets the Y coordinate for the 3D point
- param y
- type y
float
- rtype
None
-
SetZ()¶ - Sets the Z coordinate for the 3D point
- param z
- type z
float
- rtype
None
-
SquareDistance()¶ - Square distance to the other point
- param P2
- type P2
IntPolyh_Point &
- rtype
float
-
SquareModulus()¶ - Square modulus
- rtype
float
-
Sub()¶ - Subtraction
- param P1
- type P1
IntPolyh_Point &
- rtype
IntPolyh_Point
-
U()¶ - Returns the U coordinate of the 2D point
- rtype
float
-
V()¶ - Returns the V coordinate of the 2D point
- rtype
float
-
X()¶ - Returns X coordinate of the 3D point
- rtype
float
-
Y()¶ - Returns Y coordinate of the 3D point
- rtype
float
-
Z()¶ - Returns the Z coordinate of the 3D point
- rtype
float
-
property
thisown¶ The membership flag
-
class
IntPolyh_PointNormal(*args, **kwargs)¶ Bases:
object-
property
Normal¶
-
property
Point¶
-
property
thisown¶ The membership flag
-
property
-
class
IntPolyh_SectionLine(*args)¶ Bases:
object- Return type
None:param nn: :type nn: int :rtype: None
-
ChangeValue()¶ - Parameters
nn –
- type nn
int
- rtype
IntPolyh_StartPoint
-
Copy()¶ - Parameters
Other –
- type Other
IntPolyh_SectionLine &
- rtype
IntPolyh_SectionLine
-
Init()¶ - Parameters
nn –
- type nn
int
- rtype
None
-
Prepend()¶ - Parameters
SP –
- type SP
IntPolyh_StartPoint &
- rtype
None
-
Set()¶ - Parameters
Other –
- type Other
IntPolyh_SectionLine &
- rtype
IntPolyh_SectionLine
-
Value()¶ - Parameters
nn –
- type nn
int
- rtype
IntPolyh_StartPoint
-
property
thisown¶ The membership flag
-
class
IntPolyh_SeqOfStartPoints(*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
IntPolyh_StartPoint(*args)¶ Bases:
object- Return type
None:param xx: :type xx: float :param yy: :type yy: float :param zz: :type zz: float :param uu1: :type uu1: float :param vv1: :type vv1: float :param uu2: :type uu2: float :param vv2: :type vv2: float :param T1: :type T1: int :param E1: :type E1: int :param LAM1: :type LAM1: float :param T2: :type T2: int :param E2: :type E2: int :param LAM2: :type LAM2: float :param List: :type List: int :rtype: None
-
CheckSameSP()¶ - Parameters
SP –
- type SP
IntPolyh_StartPoint &
- rtype
int
-
Dump()¶ - Return type
None:param i: :type i: int :rtype: None
-
GetEdgePoints()¶ - Parameters
Triangle –
- type Triangle
IntPolyh_Triangle &
- param FirstEdgePoint
- type FirstEdgePoint
int &
- param SecondEdgePoint
- type SecondEdgePoint
int &
- param LastPoint
- type LastPoint
int &
- rtype
int
-
SetAngle()¶ - Parameters
ang –
- type ang
float
- rtype
None
-
SetChainList()¶ - Parameters
ChList –
- type ChList
int
- rtype
None
-
SetCoupleValue()¶ - Parameters
IT1 –
- type IT1
int
- param IT2
- type IT2
int
- rtype
None
-
SetEdge1()¶ - Parameters
IE1 –
- type IE1
int
- rtype
None
-
SetEdge2()¶ - Parameters
IE2 –
- type IE2
int
- rtype
None
-
SetLambda1()¶ - Parameters
LAM1 –
- type LAM1
float
- rtype
None
-
SetLambda2()¶ - Parameters
LAM2 –
- type LAM2
float
- rtype
None
-
SetUV1()¶ - Parameters
UU1 –
- type UU1
float
- param VV1
- type VV1
float
- rtype
None
-
SetUV2()¶ - Parameters
UU2 –
- type UU2
float
- param VV2
- type VV2
float
- rtype
None
-
SetXYZ()¶ - Parameters
XX –
- type XX
float
- param YY
- type YY
float
- param ZZ
- type ZZ
float
- rtype
None
-
property
thisown¶ The membership flag
-
class
IntPolyh_Tools(*args, **kwargs)¶ Bases:
object-
static
ComputeDeflection()¶ - Computes the deflection tolerance on the surface for the given sampling.
- param theSurf
- type theSurf
opencascade::handle<Adaptor3d_HSurface> &
- param theUPars
- type theUPars
TColStd_Array1OfReal &
- param theVPars
- type theVPars
TColStd_Array1OfReal &
- rtype
float
-
static
FillArrayOfPointNormal()¶ - Fills the array <thePoints> with the points (triangulation nodes) on the surface and normal directions of the surface in these points.
- param theSurf
- type theSurf
opencascade::handle<Adaptor3d_HSurface> &
- param theUPars
- type theUPars
TColStd_Array1OfReal &
- param theVPars
- type theVPars
TColStd_Array1OfReal &
- param thePoints
- type thePoints
IntPolyh_ArrayOfPointNormal &
- rtype
void
-
static
IsEnlargePossible()¶ - Checks if the surface can be enlarged in U or V direction.
- param theSurf
- type theSurf
opencascade::handle<Adaptor3d_HSurface> &
- param theUEnlarge
- type theUEnlarge
bool
- param theVEnlarge
- type theVEnlarge
bool
- rtype
void
-
static
MakeSampling()¶ - Makes the sampling of the given surface <theSurf> making the net of <theNbSU> x <theNbSV> sampling points. The flag <theEnlargeZone> controls the enlargement of the sampling zone on the surface. The parameters of the sampling points are stored into <theUPars> and <theVPars> arrays.
- param theSurf
- type theSurf
opencascade::handle<Adaptor3d_HSurface> &
- param theNbSU
- type theNbSU
int
- param theNbSV
- type theNbSV
int
- param theEnlargeZone
- type theEnlargeZone
bool
- param theUPars
- type theUPars
TColStd_Array1OfReal &
- param theVPars
- type theVPars
TColStd_Array1OfReal &
- rtype
void
-
property
thisown¶ The membership flag
-
static
-
class
IntPolyh_Triangle(*args)¶ Bases:
object- Constructor
- rtype
None* Constructor
- param thePoint1
- type thePoint1
int
- param thePoint2
- type thePoint2
int
- param thePoint3
- type thePoint3
int
- rtype
None
-
BoundingBox()¶ - Returns the bounding box of the triangle.
- param thePoints
- type thePoints
IntPolyh_ArrayOfPoints &
- rtype
Bnd_Box
-
ComputeDeflection()¶ - Computes the deflection for the triangle
- param theSurface
- type theSurface
opencascade::handle<Adaptor3d_HSurface> &
- param thePoints
- type thePoints
IntPolyh_ArrayOfPoints &
- rtype
float
-
Deflection()¶ - Returns the deflection of the triangle
- rtype
float
-
Dump()¶ - Dumps the contents of the triangle.
- param v
- type v
int
- rtype
None
-
FirstEdge()¶ - Returns the first edge
- rtype
int
-
FirstEdgeOrientation()¶ - Returns the orientation of the first edge
- rtype
int
-
FirstPoint()¶ - Returns the first point
- rtype
int
-
GetEdgeNumber()¶ - Gets the edge number by the index
- param theEdgeIndex
- type theEdgeIndex
int
- rtype
int
-
GetEdgeOrientation()¶ - Gets the edges orientation by the index
- param theEdgeIndex
- type theEdgeIndex
int
- rtype
int
-
GetNextTriangle()¶ - Gets the adjacent triangle
- param theTriangle
- type theTriangle
int
- param theEdgeNum
- type theEdgeNum
int
- param TEdges
- type TEdges
IntPolyh_ArrayOfEdges &
- rtype
int
-
HasIntersection()¶ - Returns true if the triangle has interfered the other triangle
- rtype
bool
-
IsDegenerated()¶ - Returns the Degenerated flag
- rtype
bool
-
IsIntersectionPossible()¶ - Returns possibility of the intersection
- rtype
bool
-
LinkEdges2Triangle()¶ - Links edges to triangle
- param TEdges
- type TEdges
IntPolyh_ArrayOfEdges &
- param theEdge1
- type theEdge1
int
- param theEdge2
- type theEdge2
int
- param theEdge3
- type theEdge3
int
- rtype
None
-
MiddleRefinement()¶ - Splits the triangle on two to decrease its deflection
- param theTriangleNumber
- type theTriangleNumber
int
- param theSurface
- type theSurface
opencascade::handle<Adaptor3d_HSurface> &
- param TPoints
- type TPoints
IntPolyh_ArrayOfPoints &
- param TTriangles
- type TTriangles
IntPolyh_ArrayOfTriangles &
- param TEdges
- type TEdges
IntPolyh_ArrayOfEdges &
- rtype
None
-
MultipleMiddleRefinement()¶ - Splits the current triangle and new triangles until the refinement criterion is not achieved
- param theRefineCriterion
- type theRefineCriterion
float
- param theBox
- type theBox
Bnd_Box &
- param theTriangleNumber
- type theTriangleNumber
int
- param theSurface
- type theSurface
opencascade::handle<Adaptor3d_HSurface> &
- param TPoints
- type TPoints
IntPolyh_ArrayOfPoints &
- param TTriangles
- type TTriangles
IntPolyh_ArrayOfTriangles &
- param TEdges
- type TEdges
IntPolyh_ArrayOfEdges &
- rtype
None
-
SecondEdge()¶ - Returns the second edge
- rtype
int
-
SecondEdgeOrientation()¶ - Returns the orientation of the second edge
- rtype
int
-
SecondPoint()¶ - Returns the second point
- rtype
int
-
SetDeflection()¶ - Sets the deflection
- param theDeflection
- type theDeflection
float
- rtype
None
-
SetDegenerated()¶ - Sets the degenerated flag
- param theDegFlag
- type theDegFlag
bool
- rtype
None
-
SetEdge()¶ - Sets the edge by the index
- param theEdgeIndex
- type theEdgeIndex
int
- param theEdgeNumber
- type theEdgeNumber
int
- rtype
None
-
SetEdgeAndOrientation()¶ - Sets the appropriate edge and orientation for the triangle.
- param theEdge
- type theEdge
IntPolyh_Edge &
- param theEdgeIndex
- type theEdgeIndex
int
- rtype
None
-
SetEdgeOrientation()¶ - Sets the edges orientation by the index
- param theEdgeIndex
- type theEdgeIndex
int
- param theEdgeOrientation
- type theEdgeOrientation
int
- rtype
None
-
SetFirstEdge()¶ - Sets the first edge
- param theEdge
- type theEdge
int
- param theEdgeOrientation
- type theEdgeOrientation
int
- rtype
None
-
SetFirstPoint()¶ - Sets the first point
- param thePoint
- type thePoint
int
- rtype
None
-
SetIntersection()¶ - Sets the flag of intersection
- param theInt
- type theInt
bool
- rtype
None
-
SetIntersectionPossible()¶ - Sets the flag of possibility of intersection
- param theIP
- type theIP
bool
- rtype
None
-
SetSecondEdge()¶ - Sets the second edge
- param theEdge
- type theEdge
int
- param theEdgeOrientation
- type theEdgeOrientation
int
- rtype
None
-
SetSecondPoint()¶ - Sets the second point
- param thePoint
- type thePoint
int
- rtype
None
-
SetThirdEdge()¶ - Sets the third edge
- param theEdge
- type theEdge
int
- param theEdgeOrientation
- type theEdgeOrientation
int
- rtype
None
-
SetThirdPoint()¶ - Sets the third point
- param thePoint
- type thePoint
int
- rtype
None
-
ThirdEdge()¶ - Returns the third edge
- rtype
int
-
ThirdEdgeOrientation()¶ - Returns the orientation of the third edge
- rtype
int
-
ThirdPoint()¶ - Returns the third point
- rtype
int
-
property
thisown¶ The membership flag