OCC.Core.Expr module¶
Expr module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_expr.html
-
class
Expr_Absolute(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the Abs of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_ArcCosine(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the Arccos of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_ArcSine(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the Arcsin of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_ArcTangent(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the Arctan of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_ArgCosh(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the ArgCosh of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_ArgSinh(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the ArgSinh of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_ArgTanh(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the Argtanh of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Array1OfGeneralExpression(*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
Expr_Array1OfNamedUnknown(*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
Expr_Array1OfSingleRelation(*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
Expr_BinaryExpression(*args, **kwargs)¶ Bases:
OCC.Core.Expr.Expr_GeneralExpressionEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
FirstOperand()¶ - Return type
opencascade::handle<Expr_GeneralExpression>
-
SecondOperand()¶ - Return type
opencascade::handle<Expr_GeneralExpression>
-
SetFirstOperand()¶ - Sets first operand of <self> Raises InvalidOperand if exp = me
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
SetSecondOperand()¶ - Sets second operand of <self> Raises InvalidOperand if <exp> contains <self>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_BinaryFunction(*args)¶ Bases:
OCC.Core.Expr.Expr_BinaryExpression- Creates <self> as <func> (<exp1>,<exp2>). Raises exception if <func> is not binary.
- param func
- type func
opencascade::handle<Expr_GeneralFunction> &
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
Function()¶ - Returns the function defining <self>.
- rtype
opencascade::handle<Expr_GeneralFunction>
-
property
thisown¶ The membership flag
-
class
Expr_Cosh(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the Cosh of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Cosine(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the cosine of Exp
- param Exp
- type Exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Difference(*args)¶ Bases:
OCC.Core.Expr.Expr_BinaryExpression- Creates the difference <exp1> - <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Different(*args)¶ Bases:
OCC.Core.Expr.Expr_SingleRelation- Creates the relation <exp1> # <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Division(*args)¶ Bases:
OCC.Core.Expr.Expr_BinaryExpression- Creates the division <exp1>/<exp2>
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Equal(*args)¶ Bases:
OCC.Core.Expr.Expr_SingleRelation- Creates the relation <exp1> = <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Exponential(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the exponential of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Exponentiate(*args)¶ Bases:
OCC.Core.Expr.Expr_BinaryExpression- Creates the exponential <exp1> ^ <exp2>
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_FunctionDerivative(*args)¶ Bases:
OCC.Core.Expr.Expr_GeneralFunction- Creates a FunctionDerivative of degree <deg> relative to the <withX> variable. Raises OutOfRange if <deg> lower or equal to zero.
- param func
- type func
opencascade::handle<Expr_GeneralFunction> &
- param withX
- type withX
opencascade::handle<Expr_NamedUnknown> &
- param deg
- type deg
int
- rtype
None
-
Degree()¶ - Returns the degree of derivation of <self>.
- rtype
int
-
DerivVariable()¶ - Returns the derivation variable of <self>.
- rtype
opencascade::handle<Expr_NamedUnknown>
-
Derivative()¶ - Returns Derivative of <self> for variable <var>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- rtype
opencascade::handle<Expr_GeneralFunction>* Returns Derivative of <self> for variable <var> with degree <deg>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- param deg
- type deg
int
- rtype
opencascade::handle<Expr_GeneralFunction>
-
static
DownCast(t)¶
-
Expression()¶ - Return type
opencascade::handle<Expr_GeneralExpression>
-
Function()¶ - Returns the function of which <self> is the derivative.
- rtype
opencascade::handle<Expr_GeneralFunction>
-
property
thisown¶ The membership flag
-
class
Expr_GeneralExpression(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Contains()¶ - Tests if <exp> is contained in <self>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
bool
-
ContainsUnknowns()¶ - Tests if <self> contains NamedUnknowns.
- rtype
bool
-
Copy()¶ - Returns a copy of <self> having the same unknowns and functions.
- rtype
opencascade::handle<Expr_GeneralExpression>
-
Derivative()¶ - Returns the derivative on <X> unknown of <self>
- param X
- type X
opencascade::handle<Expr_NamedUnknown> &
- rtype
opencascade::handle<Expr_GeneralExpression>
-
static
DownCast(t)¶
-
Evaluate()¶ - Returns the value of <self> (as a Real) by replacement of <vars> by <vals>. Raises NotEvaluable if <self> contains NamedUnknown not in <vars> or NumericError if result cannot be computed.
- param vars
- type vars
Expr_Array1OfNamedUnknown &
- param vals
- type vals
TColStd_Array1OfReal &
- rtype
float
-
EvaluateNumeric()¶ - Returns the value of <self> (as a Real) by replacement of <vars> by <vals>. Raises NotEvaluable if <self> contains NamedUnknown not in <vars> or NumericError if result cannot be computed.
- rtype
float
-
IsIdentical()¶ - Tests if <self> and <Other> define the same expression. Warning: This method does not include any simplification before testing. It could also be very slow; to be used carefully.
- param Other
- type Other
opencascade::handle<Expr_GeneralExpression> &
- rtype
bool
-
IsLinear()¶ - Tests if <self> is linear on every NamedUnknown it contains.
- rtype
bool
- Tests if <self> can be shared by one or more expressions or must be copied. This method returns False as a default value. To be redefined ( especially for NamedUnknown).
- rtype
bool
-
NDerivative()¶ - Returns the <N>-th derivative on <X> unknown of <self>. Raise OutOfRange if N <= 0
- param X
- type X
opencascade::handle<Expr_NamedUnknown> &
- param N
- type N
int
- rtype
opencascade::handle<Expr_GeneralExpression>
-
NbSubExpressions()¶ - Returns the number of sub-expressions contained in <self> ( >= 0)
- rtype
int
-
Replace()¶ - Replaces all occurences of <var> with copies of <with> in <self>. Copies of <with> are made with the Copy() method. Raises InvalidOperand if <with> contains <self>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- param with
- type with
opencascade::handle<Expr_GeneralExpression> &
- rtype
void
-
ShallowSimplified()¶ - Returns a GeneralExpression after a simplification of the arguments of <self>.
- rtype
opencascade::handle<Expr_GeneralExpression>
-
Simplified()¶ - Returns a GeneralExpression after replacement of NamedUnknowns by an associated expression and after values computation.
- rtype
opencascade::handle<Expr_GeneralExpression>
-
String()¶ - returns a string representing <self> in a readable way.
- rtype
TCollection_AsciiString
-
SubExpression()¶ - Returns the <I>-th sub-expression of <self> raises OutOfRange if <I> > NbSubExpressions(me)
- param I
- type I
int
- rtype
opencascade::handle<Expr_GeneralExpression>
-
property
thisown¶ The membership flag
-
class
Expr_GeneralFunction(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Copy()¶ - Returns a copy of <self> with the same form.
- rtype
opencascade::handle<Expr_GeneralFunction>
-
Derivative()¶ - Returns Derivative of <self> for variable <var>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- rtype
opencascade::handle<Expr_GeneralFunction>* Returns Derivative of <self> for variable <var> with degree <deg>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- param deg
- type deg
int
- rtype
opencascade::handle<Expr_GeneralFunction>
-
static
DownCast(t)¶
-
Evaluate()¶ - Computes the value of <self> with the given variables. Raises NotEvaluable if <vars> does not match all variables of <self>.
- param vars
- type vars
Expr_Array1OfNamedUnknown &
- param vals
- type vals
TColStd_Array1OfReal &
- rtype
float
-
GetStringName()¶ - Return type
-
IsIdentical()¶ - Tests if <self> and <func> are similar functions (same name and same used expression).
- param func
- type func
opencascade::handle<Expr_GeneralFunction> &
- rtype
bool
-
IsLinearOnVariable()¶ - Tests if <self> is linear on variable on range <index>
- param index
- type index
int
- rtype
bool
-
NbOfVariables()¶ - Returns the number of variables of <self>.
- rtype
int
-
Variable()¶ - Returns the variable denoted by <index> in <self>. Raises OutOfRange if index > NbOfVariables.
- param index
- type index
int
- rtype
opencascade::handle<Expr_NamedUnknown>
-
property
thisown¶ The membership flag
-
class
Expr_GeneralRelation(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_TransientEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Contains()¶ - Tests if <exp> contains <var>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
bool
-
Copy()¶ - Returns a copy of <self> having the same unknowns and functions.
- rtype
opencascade::handle<Expr_GeneralRelation>
-
static
DownCast(t)¶
-
IsLinear()¶ - Tests if <self> is linear between its NamedUnknowns.
- rtype
bool
-
IsSatisfied()¶ - Returns the current status of the relation
- rtype
bool
-
NbOfSingleRelations()¶ - Returns the number of SingleRelations contained in <self>.
- rtype
int
-
NbOfSubRelations()¶ - Returns the number of relations contained in <self>.
- rtype
int
-
Replace()¶ - Replaces all occurences of <var> with <with> in <self>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- param with
- type with
opencascade::handle<Expr_GeneralExpression> &
- rtype
void
-
Simplified()¶ - Returns a GeneralRelation after replacement of NamedUnknowns by an associated expression, and after values computation.
- rtype
opencascade::handle<Expr_GeneralRelation>
-
Simplify()¶ - Replaces NamedUnknowns by associated expressions, and computes values in <self>.
- rtype
void
-
String()¶ - returns a string representing <self> in a readable way.
- rtype
TCollection_AsciiString
-
SubRelation()¶ - Returns the relation denoted by <index> in <self>. An exception is raised if <index> is out of range.
- param index
- type index
int
- rtype
opencascade::handle<Expr_GeneralRelation>
-
property
thisown¶ The membership flag
-
class
Expr_GreaterThan(*args)¶ Bases:
OCC.Core.Expr.Expr_SingleRelation- Creates the relation <exp1> > <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_GreaterThanOrEqual(*args)¶ Bases:
OCC.Core.Expr.Expr_SingleRelation- Creates the relation <exp1> >= <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_LessThan(*args)¶ Bases:
OCC.Core.Expr.Expr_SingleRelation- Creates the relation <exp1> < <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_LessThanOrEqual(*args)¶ Bases:
OCC.Core.Expr.Expr_SingleRelation- Creates the relation <exp1> <= <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_LogOf10(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the base 10 logarithm of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_LogOfe(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the natural logarithm of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_MapOfNamedUnknown(*args)¶ Bases:
object-
Add()¶
-
Assign()¶
-
Clear()¶
-
Contains()¶
-
Exchange()¶
-
FindIndex()¶
-
FindKey()¶
-
ReSize()¶
-
RemoveFromIndex()¶
-
RemoveKey()¶
-
RemoveLast()¶
-
Set()¶
-
Size()¶
-
Substitute()¶
-
Swap()¶
-
cbegin()¶
-
cend()¶
-
property
thisown¶ The membership flag
-
-
class
Expr_NamedConstant(*args)¶ Bases:
OCC.Core.Expr.Expr_NamedExpression- Creates a constant value of name <name> and value <value>.
- param name
- type name
TCollection_AsciiString &
- param value
- type value
float
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_NamedExpression(*args, **kwargs)¶ Bases:
OCC.Core.Expr.Expr_GeneralExpressionEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
GetName()¶ - Return type
-
SetName()¶ - Parameters
name –
- type name
TCollection_AsciiString &
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_NamedFunction(*args)¶ Bases:
OCC.Core.Expr.Expr_GeneralFunction- Creates a function of given variables <vars> with name <name> defined by the expression <exp>.
- param name
- type name
TCollection_AsciiString &
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- param vars
- type vars
Expr_Array1OfNamedUnknown &
- rtype
None
-
Derivative()¶ - Returns Derivative of <self> for variable <var>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- rtype
opencascade::handle<Expr_GeneralFunction>* Returns Derivative of <self> for variable <var> with degree <deg>.
- param var
- type var
opencascade::handle<Expr_NamedUnknown> &
- param deg
- type deg
int
- rtype
opencascade::handle<Expr_GeneralFunction>
-
static
DownCast(t)¶
-
Expression()¶ - Returns equivalent expression of <self>.
- rtype
opencascade::handle<Expr_GeneralExpression>
-
GetName()¶ - Returns the name assigned to <self>
- rtype
TCollection_AsciiString
-
SetExpression()¶ - Modifies expression of <self>. Warning: Beware of derivatives. See FunctionDerivative
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
SetName()¶ - Sets the name <newname> to <self>.
- param newname
- type newname
TCollection_AsciiString &
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_NamedUnknown(*args)¶ Bases:
OCC.Core.Expr.Expr_NamedExpression- Parameters
name –
- type name
TCollection_AsciiString &
- rtype
None
-
Assign()¶ - Assigns <self> to <exp> expression. Raises exception if <exp> refers to <self>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
AssignedExpression()¶ - If exists, returns the assigned expression. An exception is raised if the expression does not exist.
- rtype
opencascade::handle<Expr_GeneralExpression>
-
Deassign()¶ - Supresses the assigned expression
- rtype
None
-
static
DownCast(t)¶
-
IsAssigned()¶ - Tests if an expression is assigned to <self>.
- rtype
bool
-
property
thisown¶ The membership flag
-
class
Expr_NumericValue(*args)¶ Bases:
OCC.Core.Expr.Expr_GeneralExpression- Parameters
val –
- type val
float
- rtype
None
-
static
DownCast(t)¶
-
SetValue()¶ - Parameters
val –
- type val
float
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_PolyExpression(*args, **kwargs)¶ Bases:
OCC.Core.Expr.Expr_GeneralExpressionEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
NbOperands()¶ - returns the number of operands contained in <self>
- rtype
int
-
Operand()¶ - Returns the <index>-th operand used in <self>. An exception is raised if index is out of range
- param index
- type index
int
- rtype
opencascade::handle<Expr_GeneralExpression>
-
SetOperand()¶ - Sets the <index>-th operand used in <self>. An exception is raised if <index> is out of range Raises InvalidOperand if <exp> contains <self>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- param index
- type index
int
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_PolyFunction(*args)¶ Bases:
OCC.Core.Expr.Expr_PolyExpression- Creates <self> as <func>(<exps_1>,<exps_2>,…,<exps_n>)
- param func
- type func
opencascade::handle<Expr_GeneralFunction> &
- param exps
- type exps
Expr_Array1OfGeneralExpression &
- rtype
None
-
static
DownCast(t)¶
-
Function()¶ - Returns the function defining <self>.
- rtype
opencascade::handle<Expr_GeneralFunction>
-
property
thisown¶ The membership flag
-
class
Expr_Product(*args)¶ Bases:
OCC.Core.Expr.Expr_PolyExpression- Creates the product of all members of sequence <exps>
- param exps
- type exps
Expr_SequenceOfGeneralExpression &
- rtype
None* Creates the product of <exp1> and <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_RUIterator(*args)¶ Bases:
object- Creates an iterator on every NamedUnknown contained in <rel>.
- param rel
- type rel
opencascade::handle<Expr_GeneralRelation> &
- rtype
None
-
More()¶ - Returns False if on other unknown remains.
- rtype
bool
-
Value()¶ - Returns current NamedUnknown. Raises exception if no more unknowns remain.
- rtype
opencascade::handle<Expr_NamedUnknown>
-
property
thisown¶ The membership flag
-
class
Expr_RelationIterator(*args)¶ Bases:
object- Parameters
rel –
- type rel
opencascade::handle<Expr_GeneralRelation> &
- rtype
None
-
More()¶ - Returns False if no other relation remains.
- rtype
bool
-
Value()¶ - Returns current basic relation. Exception is raised if no more relation remains.
- rtype
opencascade::handle<Expr_SingleRelation>
-
property
thisown¶ The membership flag
-
class
Expr_SequenceOfGeneralExpression(*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
Expr_SequenceOfGeneralRelation(*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
Expr_Sine(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the sine of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_SingleRelation(*args, **kwargs)¶ Bases:
OCC.Core.Expr.Expr_GeneralRelationEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
FirstMember()¶ - Returns the first member of the relation
- rtype
opencascade::handle<Expr_GeneralExpression>
-
SecondMember()¶ - Returns the second member of the relation
- rtype
opencascade::handle<Expr_GeneralExpression>
-
SetFirstMember()¶ - Defines the first member of the relation
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
SetSecondMember()¶ - Defines the second member of the relation
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_Sinh(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the sinh of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Square(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the square of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_SquareRoot(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the square root of <exp>
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Sum(*args)¶ Bases:
OCC.Core.Expr.Expr_PolyExpression- Creates the sum of all the members of sequence <exps>.
- param exps
- type exps
Expr_SequenceOfGeneralExpression &
- rtype
None* Creates the sum of <exp1> and <exp2>.
- param exp1
- type exp1
opencascade::handle<Expr_GeneralExpression> &
- param exp2
- type exp2
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_SystemRelation(*args)¶ Bases:
OCC.Core.Expr.Expr_GeneralRelation- Creates a system with one relation
- param relation
- type relation
opencascade::handle<Expr_GeneralRelation> &
- rtype
None
-
Add()¶ - Appends <relation> in the list of components of <self>.
- param relation
- type relation
opencascade::handle<Expr_GeneralRelation> &
- rtype
None
-
static
DownCast(t)¶
-
Remove()¶ - Parameters
relation –
- type relation
opencascade::handle<Expr_GeneralRelation> &
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_Tangent(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the tangent of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_Tanh(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates the hyperbolic tangent of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_UnaryExpression(*args, **kwargs)¶ Bases:
OCC.Core.Expr.Expr_GeneralExpressionEmpty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
static
DownCast(t)¶
-
Operand()¶ - Returns the operand used
- rtype
opencascade::handle<Expr_GeneralExpression>
-
SetOperand()¶ - Sets the operand used Raises InvalidOperand if <exp> contains <self>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
property
thisown¶ The membership flag
-
class
Expr_UnaryFunction(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Creates me as <func>(<exp>). Raises exception if <func> is not unary.
- param func
- type func
opencascade::handle<Expr_GeneralFunction> &
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
Function()¶ - Returns the function defining <self>.
- rtype
opencascade::handle<Expr_GeneralFunction>
-
property
thisown¶ The membership flag
-
class
Expr_UnaryMinus(*args)¶ Bases:
OCC.Core.Expr.Expr_UnaryExpression- Create the unary minus of <exp>.
- param exp
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
static
DownCast(t)¶
-
property
thisown¶ The membership flag
-
class
Expr_UnknownIterator(*args)¶ Bases:
object- Parameters
exp –
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
None
-
Value()¶ - Return type
opencascade::handle<Expr_NamedUnknown>
-
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
expr¶ Bases:
object- Parameters
exp –
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
opencascade::handle<Expr_GeneralExpression>
-
static
NbOfFreeVariables()¶ - Parameters
exp –
- type exp
opencascade::handle<Expr_GeneralExpression> &
- rtype
int:param exp:
- type exp
opencascade::handle<Expr_GeneralRelation> &
- rtype
int
-
static
Sign()¶ - Parameters
val –
- type val
float
- rtype
float
-
property
thisown¶ The membership flag