OCC.Core.AppParCurves module¶
AppParCurves module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_appparcurves.html
-
class
AppParCurves_Array1OfConstraintCouple(*args)¶ Bases:
object-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
First()¶
-
Init()¶
-
IsAllocated()¶
-
IsDeletable()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Move()¶
-
Resize()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
end()¶
-
next()¶
-
property
thisown¶ The membership flag
-
-
class
AppParCurves_Array1OfMultiBSpCurve(*args)¶ Bases:
object-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
First()¶
-
Init()¶
-
IsAllocated()¶
-
IsDeletable()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Move()¶
-
Resize()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
end()¶
-
next()¶
-
property
thisown¶ The membership flag
-
-
class
AppParCurves_Array1OfMultiCurve(*args)¶ Bases:
object-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
First()¶
-
Init()¶
-
IsAllocated()¶
-
IsDeletable()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Move()¶
-
Resize()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
end()¶
-
next()¶
-
property
thisown¶ The membership flag
-
-
class
AppParCurves_Array1OfMultiPoint(*args)¶ Bases:
object-
Assign()¶
-
ChangeFirst()¶
-
ChangeLast()¶
-
ChangeValue()¶
-
First()¶
-
Init()¶
-
IsAllocated()¶
-
IsDeletable()¶
-
IsEmpty()¶
-
Last()¶
-
Length()¶
-
Lower()¶
-
Move()¶
-
Resize()¶
-
Set()¶
-
SetValue()¶
-
Size()¶
-
Upper()¶
-
Value()¶
-
begin()¶
-
cbegin()¶
-
cend()¶
-
end()¶
-
next()¶
-
property
thisown¶ The membership flag
-
-
class
AppParCurves_ConstraintCouple(*args)¶ Bases:
object- returns an indefinite ConstraintCouple.
- rtype
None* Create a couple the object <Index> will have the constraint <Cons>.
- param TheIndex
- type TheIndex
int
- param Cons
- type Cons
AppParCurves_Constraint
- rtype
None
-
Constraint()¶ - returns the constraint of the object.
- rtype
AppParCurves_Constraint
-
Index()¶ - returns the index of the constraint object.
- rtype
int
-
SetConstraint()¶ - Changes the constraint of the object.
- param Cons
- type Cons
AppParCurves_Constraint
- rtype
None
-
SetIndex()¶ - Changes the index of the constraint object.
- param TheIndex
- type TheIndex
int
- rtype
None
-
property
thisown¶ The membership flag
-
class
AppParCurves_HArray1OfConstraintCouple(*args)¶ Bases:
OCC.Core.AppParCurves.AppParCurves_Array1OfConstraintCouple,OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1()¶
-
ChangeArray1()¶
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
AppParCurves_HArray1OfMultiBSpCurve(*args)¶ Bases:
OCC.Core.AppParCurves.AppParCurves_Array1OfMultiBSpCurve,OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1()¶
-
ChangeArray1()¶
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
AppParCurves_HArray1OfMultiCurve(*args)¶ Bases:
OCC.Core.AppParCurves.AppParCurves_Array1OfMultiCurve,OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1()¶
-
ChangeArray1()¶
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
AppParCurves_HArray1OfMultiPoint(*args)¶ Bases:
OCC.Core.AppParCurves.AppParCurves_Array1OfMultiPoint,OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1()¶
-
ChangeArray1()¶
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
AppParCurves_MultiBSpCurve(*args)¶ Bases:
OCC.Core.AppParCurves.AppParCurves_MultiCurve- returns an indefinite MultiBSpCurve.
- rtype
None* creates a MultiBSpCurve, describing BSpline curves all containing the same number of MultiPoint. An exception is raised if Degree < 0.
- param NbPol
- type NbPol
int
- rtype
None* creates a MultiBSpCurve, describing BSpline curves all containing the same number of MultiPoint. Each MultiPoint must have NbCurves Poles.
- param tabMU
- type tabMU
AppParCurves_Array1OfMultiPoint &
- param Knots
- type Knots
TColStd_Array1OfReal &
- param Mults
- type Mults
TColStd_Array1OfInteger &
- rtype
None* creates a MultiBSpCurve, describing BSpline curves, taking control points from <SC>.
- param SC
- type SC
AppParCurves_MultiCurve &
- param Knots
- type Knots
TColStd_Array1OfReal &
- param Mults
- type Mults
TColStd_Array1OfInteger &
- rtype
None
-
D1()¶ - returns the value of the point with a parameter U on the BSpline curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 3d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt
- param V1
- type V1
gp_Vec
- rtype
void* returns the value of the point with a parameter U on the BSpline curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 2d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- rtype
void
-
D2()¶ - returns the value of the point with a parameter U on the BSpline curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 3d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt
- param V1
- type V1
gp_Vec
- param V2
- type V2
gp_Vec
- rtype
void* returns the value of the point with a parameter U on the BSpline curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 2d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- rtype
void
-
DumpToString(AppParCurves_MultiBSpCurve self) → std::string¶
-
Knots()¶ - Returns an array of Reals containing the multiplicities of curves resulting from the approximation.
- rtype
TColStd_Array1OfReal
-
Multiplicities()¶ - Returns an array of Reals containing the multiplicities of curves resulting from the approximation.
- rtype
TColStd_Array1OfInteger
-
SetKnots()¶ - Knots of the multiBSpCurve are assigned to <theknots>.
- param theKnots
- type theKnots
TColStd_Array1OfReal &
- rtype
None
-
SetMultiplicities()¶ - Multiplicities of the multiBSpCurve are assigned to <theMults>.
- param theMults
- type theMults
TColStd_Array1OfInteger &
- rtype
None
-
Value()¶ - returns the value of the point with a parameter U on the BSpline curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 2d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt
- rtype
void* returns the value of the point with a parameter U on the BSpline curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 3d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt2d
- rtype
void
-
property
thisown¶ The membership flag
-
class
AppParCurves_MultiCurve(*args)¶ Bases:
object- returns an indefinite MultiCurve.
- rtype
None* creates a MultiCurve, describing Bezier curves all containing the same number of MultiPoint. An exception is raised if Degree < 0.
- param NbPol
- type NbPol
int
- rtype
None* creates a MultiCurve, describing Bezier curves all containing the same number of MultiPoint. Each MultiPoint must have NbCurves Poles.
- param tabMU
- type tabMU
AppParCurves_Array1OfMultiPoint &
- rtype
None
-
Curve()¶ - returns the Pole array of the curve of range CuIndex. An exception is raised if the dimension of the curve is 2d.
- param CuIndex
- type CuIndex
int
- param TabPnt
- type TabPnt
TColgp_Array1OfPnt
- rtype
None* returns the Pole array of the curve of range CuIndex. An exception is raised if the dimension of the curve is 3d.
- param CuIndex
- type CuIndex
int
- param TabPnt
- type TabPnt
TColgp_Array1OfPnt2d
- rtype
None
-
D1()¶ - returns the value of the point with a parameter U on the Bezier curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 3d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt
- param V1
- type V1
gp_Vec
- rtype
void* returns the value of the point with a parameter U on the Bezier curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 2d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- rtype
void
-
D2()¶ - returns the value of the point with a parameter U on the Bezier curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 3d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt
- param V1
- type V1
gp_Vec
- param V2
- type V2
gp_Vec
- rtype
void* returns the value of the point with a parameter U on the Bezier curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 2d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- rtype
void
-
Degree()¶ - returns the degree of the curves.
- rtype
int
-
Dimension()¶ - returns the dimension of the CuIndex curve. An exception is raised if CuIndex<0 or CuIndex>NbCurves.
- param CuIndex
- type CuIndex
int
- rtype
int
-
DumpToString(AppParCurves_MultiCurve self) → std::string¶
-
NbCurves()¶ - Returns the number of curves resulting from the approximation of a MultiLine.
- rtype
int
-
NbPoles()¶ - Returns the number of poles on curves resulting from the approximation of a MultiLine.
- rtype
int
-
Pole()¶ - returns the Nieme pole of the CuIndex curve. the curve must be a 3D curve.
- param CuIndex
- type CuIndex
int
- param Nieme
- type Nieme
int
- rtype
gp_Pnt
-
Pole2d()¶ - returns the Nieme pole of the CuIndex curve. the curve must be a 2D curve.
- param CuIndex
- type CuIndex
int
- param Nieme
- type Nieme
int
- rtype
gp_Pnt2d
-
SetNbPoles()¶ - The number of poles of the MultiCurve will be set to <nbPoles>.
- param nbPoles
- type nbPoles
int
- rtype
None
-
SetValue()¶ - sets the MultiPoint of range Index to the value <MPoint>. An exception is raised if Index <0 or Index >NbMPoint.
- param Index
- type Index
int
- param MPoint
- type MPoint
AppParCurves_MultiPoint &
- rtype
None
-
Transform()¶ - Applies a transformation to the curve of range <CuIndex>. newx = x + dx*oldx newy = y + dy*oldy for all points of the curve. newz = z + dz*oldz
- param CuIndex
- type CuIndex
int
- param x
- type x
float
- param dx
- type dx
float
- param y
- type y
float
- param dy
- type dy
float
- param z
- type z
float
- param dz
- type dz
float
- rtype
None
-
Transform2d()¶ - Applies a transformation to the Curve of range <CuIndex>. newx = x + dx*oldx newy = y + dy*oldy for all points of the curve.
- param CuIndex
- type CuIndex
int
- param x
- type x
float
- param dx
- type dx
float
- param y
- type y
float
- param dy
- type dy
float
- rtype
None
-
Value()¶ - returns the Index MultiPoint. An exception is raised if Index <0 or Index >Degree+1.
- param Index
- type Index
int
- rtype
AppParCurves_MultiPoint* returns the value of the point with a parameter U on the Bezier curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 2d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt
- rtype
void* returns the value of the point with a parameter U on the Bezier curve number CuIndex. An exception is raised if CuIndex <0 or > NbCurves. An exception is raised if the curve dimension is 3d.
- param CuIndex
- type CuIndex
int
- param U
- type U
float
- param Pt
- type Pt
gp_Pnt2d
- rtype
void
-
property
thisown¶ The membership flag
-
class
AppParCurves_MultiPoint(*args)¶ Bases:
object- creates an indefinite MultiPoint.
- rtype
None* constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. NbPoints is the number of 3D Points. NbPoints2d is the number of 2D Points.
- param NbPoints
- type NbPoints
int
- param NbPoints2d
- type NbPoints2d
int
- rtype
None* creates a MultiPoint only composed of 3D points.
- param tabP
- type tabP
TColgp_Array1OfPnt
- rtype
None* creates a MultiPoint only composed of 2D points.
- param tabP2d
- type tabP2d
TColgp_Array1OfPnt2d
- rtype
None* constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. NbPoints is the total number of Points.
- param tabP
- type tabP
TColgp_Array1OfPnt
- param tabP2d
- type tabP2d
TColgp_Array1OfPnt2d
- rtype
None
-
Dimension()¶ - returns the dimension of the point of range Index. An exception is raised if Index <0 or Index > NbCurves.
- param Index
- type Index
int
- rtype
int
-
DumpToString(AppParCurves_MultiPoint self) → std::string¶
-
NbPoints()¶ - returns the number of points of dimension 3D.
- rtype
int
-
NbPoints2d()¶ - returns the number of points of dimension 2D.
- rtype
int
-
Point()¶ - returns the 3d Point of range Index. An exception is raised if Index < 0 or Index < number of 3d Points.
- param Index
- type Index
int
- rtype
gp_Pnt
-
Point2d()¶ - returns the 2d Point of range Index. An exception is raised if index <= number of 3d Points or Index > total number of Points.
- param Index
- type Index
int
- rtype
gp_Pnt2d
-
SetPoint()¶ - the 3d Point of range Index of this MultiPoint is set to <Point>. An exception is raised if Index < 0 or Index > number of 3d Points.
- param Index
- type Index
int
- param Point
- type Point
gp_Pnt
- rtype
None
-
SetPoint2d()¶ - The 2d Point of range Index is set to <Point>. An exception is raised if Index > 3d Points or Index > total number of Points.
- param Index
- type Index
int
- param Point
- type Point
gp_Pnt2d
- rtype
None
-
Transform()¶ - Applies a transformation to the curve of range <CuIndex>. newx = x + dx*oldx newy = y + dy*oldy for all points of the curve. newz = z + dz*oldz
- param CuIndex
- type CuIndex
int
- param x
- type x
float
- param dx
- type dx
float
- param y
- type y
float
- param dy
- type dy
float
- param z
- type z
float
- param dz
- type dz
float
- rtype
None
-
Transform2d()¶ - Applies a transformation to the Curve of range <CuIndex>. newx = x + dx*oldx newy = y + dy*oldy for all points of the curve.
- param CuIndex
- type CuIndex
int
- param x
- type x
float
- param dx
- type dx
float
- param y
- type y
float
- param dy
- type dy
float
- rtype
None
-
property
thisown¶ The membership flag
-
class
AppParCurves_SequenceOfMultiBSpCurve(*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
AppParCurves_SequenceOfMultiCurve(*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()¶
-
-
class
appparcurves¶ Bases:
object-
static
Bernstein()¶ - Parameters
NbPoles –
- type NbPoles
int
- param U
- type U
math_Vector &
- param A
- type A
math_Matrix &
- param DA
- type DA
math_Matrix &
- rtype
void
-
static
BernsteinMatrix()¶ - Parameters
NbPoles –
- type NbPoles
int
- param U
- type U
math_Vector &
- param A
- type A
math_Matrix &
- rtype
void
-
static
SecondDerivativeBernstein()¶ - Parameters
U –
- type U
float
- param DDA
- type DDA
math_Vector &
- rtype
void
-
static
SplineFunction()¶ - Parameters
NbPoles –
- type NbPoles
int
- param Degree
- type Degree
int
- param Parameters
- type Parameters
math_Vector &
- param FlatKnots
- type FlatKnots
math_Vector &
- param A
- type A
math_Matrix &
- param DA
- type DA
math_Matrix &
- param Index
- type Index
math_IntegerVector &
- rtype
void
-
property
thisown¶ The membership flag
-
static