OCC.Core.BRepFill module¶
BRepFill module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brepfill.html
-
class
BRepFill_ACRLaw
(*args)¶ Bases:
OCC.Core.BRepFill.BRepFill_LocationLaw
- Parameters
Path –
- type Path
TopoDS_Wire
- param Law
- type Law
GeomFill_LocationGuide
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
BRepFill_AdvancedEvolved
(*args)¶ Bases:
object
- Constructor
- rtype
None
-
IsDone
()¶ - Parameters
theErrorCode – default value is 0 :type theErrorCode: unsigned int * :rtype: bool
-
Perform
()¶ - Parameters
theSpine –
- type theSpine
TopoDS_Wire
- param theProfile
- type theProfile
TopoDS_Wire
- param theTolerance
- type theTolerance
float
- param theSolidReq
default value is Standard_True
- type theSolidReq
bool
- rtype
None
-
SetParallelMode
()¶ - Sets/Unsets computation in parallel mode
- param theVal
- type theVal
bool
- rtype
None
-
SetTemporaryDirectory
()¶ - Sets directory where the debug shapes will be saved
- param thePath
- type thePath
char *
- rtype
None
-
Shape
()¶ - returns the resulting shape.
- rtype
TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
BRepFill_ApproxSeewing
(*args)¶ Bases:
object
- Return type
None:param ML: :type ML: BRepFill_MultiLine :rtype: None
-
Curve
()¶ - returns the approximation of the 3d Curve
- rtype
opencascade::handle<Geom_Curve>
-
CurveOnF1
()¶ - returns the approximation of the PCurve on the first face of the MultiLine
- rtype
opencascade::handle<Geom2d_Curve>
-
CurveOnF2
()¶ - returns the approximation of the PCurve on the first face of the MultiLine
- rtype
opencascade::handle<Geom2d_Curve>
-
Perform
()¶ - Parameters
ML –
- type ML
BRepFill_MultiLine
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepFill_CompatibleWires
(*args)¶ Bases:
object
- Return type
None:param Sections: :type Sections: TopTools_SequenceOfShape :rtype: None
-
Generated
()¶ - Return type
-
GeneratedShapes
()¶ - Returns the shapes created from a subshape <SubSection> of a section.
- param SubSection
- type SubSection
TopoDS_Edge
- rtype
TopTools_ListOfShape
-
Init
()¶ - Parameters
Sections –
- type Sections
TopTools_SequenceOfShape
- rtype
None
-
Perform
()¶ - Performs CompatibleWires According to the orientation and the origin of each other
- param WithRotation
default value is Standard_True
- type WithRotation
bool
- rtype
None
-
SetPercent
()¶ - Parameters
percent – default value is 0.01 :type percent: float :rtype: None
-
Shape
()¶ - returns the generated sequence.
- rtype
TopTools_SequenceOfShape
-
property
thisown
¶ The membership flag
-
class
BRepFill_ComputeCLine
(*args)¶ Bases:
object
- The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True.
- param Line
- type Line
BRepFill_MultiLine
- param degreemin
default value is 3
- type degreemin
int
- param degreemax
default value is 8
- type degreemax
int
- param Tolerance3d
default value is 1.0e-5
- type Tolerance3d
float
- param Tolerance2d
default value is 1.0e-5
- type Tolerance2d
float
- param cutting
default value is Standard_False
- type cutting
bool
- param FirstC
default value is AppParCurves_TangencyPoint
- type FirstC
AppParCurves_Constraint
- param LastC
default value is AppParCurves_TangencyPoint
- type LastC
AppParCurves_Constraint
- rtype
None* Initializes the fields of the algorithm.
- param degreemin
default value is 3
- type degreemin
int
- param degreemax
default value is 8
- type degreemax
int
- param Tolerance3d
default value is 1.0e-05
- type Tolerance3d
float
- param Tolerance2d
default value is 1.0e-05
- type Tolerance2d
float
- param cutting
default value is Standard_False
- type cutting
bool
- param FirstC
default value is AppParCurves_TangencyPoint
- type FirstC
AppParCurves_Constraint
- param LastC
default value is AppParCurves_TangencyPoint
- type LastC
AppParCurves_Constraint
- rtype
None
-
Error
()¶ - returns the tolerances 2d and 3d of the <Index> MultiCurve.
- param Index
- type Index
int
- param tol3d
- type tol3d
float
- param tol2d
- type tol2d
float
- rtype
None
-
IsAllApproximated
()¶ - returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.
- rtype
bool
-
IsToleranceReached
()¶ - returns False if the status NoPointsAdded has been sent.
- rtype
bool
-
NbMultiCurves
()¶ - Returns the number of MultiCurve doing the approximation of the MultiLine.
- rtype
int
-
Parameters
()¶ - Parameters
Index –
- type Index
int
- param firstp
- type firstp
float
- param lastp
- type lastp
float
- rtype
None
-
Perform
()¶ - runs the algorithm after having initialized the fields.
- param Line
- type Line
BRepFill_MultiLine
- rtype
None
-
SetConstraints
()¶ - Changes the constraints of the approximation.
- param FirstC
- type FirstC
AppParCurves_Constraint
- param LastC
- type LastC
AppParCurves_Constraint
- rtype
None
-
SetDegrees
()¶ - changes the degrees of the approximation.
- param degreemin
- type degreemin
int
- param degreemax
- type degreemax
int
- rtype
None
-
SetInvOrder
()¶ - Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used.
- param theInvOrder
- type theInvOrder
bool
- rtype
None
-
SetMaxSegments
()¶ - Changes the max number of segments, which is allowed for cutting.
- param theMaxSegments
- type theMaxSegments
int
- rtype
None
-
SetTolerances
()¶ - Changes the tolerances of the approximation.
- param Tolerance3d
- type Tolerance3d
float
- param Tolerance2d
- type Tolerance2d
float
- rtype
None
-
Value
()¶ - returns the approximation MultiCurve of range <Index>.
- param Index
default value is 1
- type Index
int
- rtype
AppParCurves_MultiCurve
-
property
thisown
¶ The membership flag
-
class
BRepFill_CurveConstraint
(*args)¶ Bases:
OCC.Core.GeomPlate.GeomPlate_CurveConstraint
- Create a constraint Order is the order of the constraint. The possible values for order are -1,0,1,2. Order i means constraints Gi Npt is the number of points associated with the constraint. TolDist is the maximum error to satisfy for G0 constraints TolAng is the maximum error to satisfy for G1 constraints TolCurv is the maximum error to satisfy for G2 constraints These errors can be replaced by laws of criterion.
- param Boundary
- type Boundary
Adaptor3d_HCurveOnSurface
- param Order
- type Order
int
- param NPt
default value is 10
- type NPt
int
- param TolDist
default value is 0.0001
- type TolDist
float
- param TolAng
default value is 0.01
- type TolAng
float
- param TolCurv
default value is 0.1
- type TolCurv
float
- rtype
None:param Boundary:
- type Boundary
Adaptor3d_HCurve
- param Tang
- type Tang
int
- param NPt
default value is 10
- type NPt
int
- param TolDist
default value is 0.0001
- type TolDist
float
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
BRepFill_DataMapOfNodeDataMapOfShapeShape
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_DataMapOfNodeShape
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_DataMapOfOrientedShapeListOfShape
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_DataMapOfShapeDataMapOfShapeListOfShape
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_DataMapOfShapeHArray2OfShape
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_DataMapOfShapeSequenceOfPnt
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_DataMapOfShapeSequenceOfReal
(*args)¶ Bases:
object
-
Assign
()¶
-
Bind
()¶
-
Bound
()¶
-
ChangeFind
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Exchange
()¶
-
Find
()¶
-
IsBound
()¶
-
ReSize
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
UnBind
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_Draft
(*args)¶ Bases:
object
- Parameters
Shape –
- type Shape
TopoDS_Shape
- param Dir
- type Dir
gp_Dir
- param Angle
- type Angle
float
- rtype
None
-
Generated
()¶ - Returns the list of shapes generated from the shape <S>.
- param S
- type S
TopoDS_Shape
- rtype
TopTools_ListOfShape
-
Perform
()¶ - Parameters
LengthMax –
- type LengthMax
float
- rtype
None:param Surface:
- type Surface
Geom_Surface
- param KeepInsideSurface
default value is Standard_True
- type KeepInsideSurface
bool
- rtype
None:param StopShape:
- type StopShape
TopoDS_Shape
- param KeepOutSide
default value is Standard_True
- type KeepOutSide
bool
- rtype
None
-
SetDraft
()¶ - Parameters
IsInternal – default value is Standard_False :type IsInternal: bool :rtype: None
-
SetOptions
()¶ - Parameters
Style – default value is BRepFill_Right :type Style: BRepFill_TransitionStyle :param AngleMin: default value is 0.01 :type AngleMin: float :param AngleMax: default value is 3.0 :type AngleMax: float :rtype: None
-
Shape
()¶ - Return type
-
Shell
()¶ - Returns the draft surface To have the complete shape you have to use the Shape() methode.
- rtype
TopoDS_Shell
-
property
thisown
¶ The membership flag
-
class
BRepFill_DraftLaw
(*args)¶ Bases:
OCC.Core.BRepFill.BRepFill_Edge3DLaw
- Parameters
Path –
- type Path
TopoDS_Wire
- param Law
- type Law
GeomFill_LocationDraft
- rtype
None
-
CleanLaw
()¶ - To clean the little discontinuities.
- param TolAngular
- type TolAngular
float
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
BRepFill_Edge3DLaw
(*args)¶ Bases:
OCC.Core.BRepFill.BRepFill_LocationLaw
- Parameters
Path –
- type Path
TopoDS_Wire
- param Law
- type Law
GeomFill_LocationLaw
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
BRepFill_EdgeFaceAndOrder
(*args)¶ Bases:
object
- Return type
None:param anEdge: :type anEdge: TopoDS_Edge :param aFace: :type aFace: TopoDS_Face :param anOrder: :type anOrder: GeomAbs_Shape :rtype: None
-
property
thisown
¶ The membership flag
-
class
BRepFill_EdgeOnSurfLaw
(*args)¶ Bases:
OCC.Core.BRepFill.BRepFill_LocationLaw
- Parameters
Path –
- type Path
TopoDS_Wire
- param Surf
- type Surf
TopoDS_Shape
- rtype
None
-
static
DownCast
(t)¶
-
HasResult
()¶ - returns <False> if one Edge of <Path> do not have representation on <Surf>. In this case it is impossible to use this object.
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepFill_Evolved
(*args)¶ Bases:
object
- Return type
None* Creates an evolved shape by sweeping the <Profile> along the <Spine>. <AxeProf> is used to set the position of <Profile> along <Spine> as follows: <AxeProf> slides on the profile with direction colinear to the normal to <Spine>, and its <XDirection> mixed with the tangent to <Spine>. :param Spine: :type Spine: TopoDS_Wire :param Profile: :type Profile: TopoDS_Wire :param AxeProf: :type AxeProf: gp_Ax3 :param Join: default value is GeomAbs_Arc :type Join: GeomAbs_JoinType :param Solid: default value is Standard_False :type Solid: bool :rtype: None* Creates an evolved shape by sweeping the <Profile> along the <Spine> :param Spine: :type Spine: TopoDS_Face :param Profile: :type Profile: TopoDS_Wire :param AxeProf: :type AxeProf: gp_Ax3 :param Join: default value is GeomAbs_Arc :type Join: GeomAbs_JoinType :param Solid: default value is Standard_False :type Solid: bool :rtype: None
-
Bottom
()¶ - Return the face Bottom if <Solid> is True in the constructor.
- rtype
TopoDS_Shape
-
GeneratedShapes
()¶ - Returns the shapes created from a subshape <SpineShape> of the spine and a subshape <ProfShape> on the profile.
- param SpineShape
- type SpineShape
TopoDS_Shape
- param ProfShape
- type ProfShape
TopoDS_Shape
- rtype
TopTools_ListOfShape
-
JoinType
()¶ - Return type
GeomAbs_JoinType
-
Perform
()¶ - Performs an evolved shape by sweeping the <Profile> along the <Spine>
- param Spine
- type Spine
TopoDS_Wire
- param Profile
- type Profile
TopoDS_Wire
- param AxeProf
- type AxeProf
gp_Ax3
- param Join
default value is GeomAbs_Arc
- type Join
GeomAbs_JoinType
- param Solid
default value is Standard_False
- type Solid
bool
- rtype
None* Performs an evolved shape by sweeping the <Profile> along the <Spine>
- param Spine
- type Spine
TopoDS_Face
- param Profile
- type Profile
TopoDS_Wire
- param AxeProf
- type AxeProf
gp_Ax3
- param Join
default value is GeomAbs_Arc
- type Join
GeomAbs_JoinType
- param Solid
default value is Standard_False
- type Solid
bool
- rtype
None
-
Shape
()¶ - returns the generated shape.
- rtype
TopoDS_Shape
-
Top
()¶ - Return the face Top if <Solid> is True in the constructor.
- rtype
TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
BRepFill_FaceAndOrder
(*args)¶ Bases:
object
- Return type
None:param aFace: :type aFace: TopoDS_Face :param anOrder: :type anOrder: GeomAbs_Shape :rtype: None
-
property
thisown
¶ The membership flag
-
class
BRepFill_Filling
(*args)¶ Bases:
object
- Constructor
- param Degree
default value is 3
- type Degree
int
- param NbPtsOnCur
default value is 15
- type NbPtsOnCur
int
- param NbIter
default value is 2
- type NbIter
int
- param Anisotropie
default value is Standard_False
- type Anisotropie
bool
- param Tol2d
default value is 0.00001
- type Tol2d
float
- param Tol3d
default value is 0.0001
- type Tol3d
float
- param TolAng
default value is 0.01
- type TolAng
float
- param TolCurv
default value is 0.1
- type TolCurv
float
- param MaxDeg
default value is 8
- type MaxDeg
int
- param MaxSegments
default value is 9
- type MaxSegments
int
- rtype
None
-
Add
()¶ - Adds a new constraint which also defines an edge of the wire of the face Order: Order of the constraint: GeomAbs_C0the surface has to pass by 3D representation of the edge GeomAbs_G1the surface has to pass by 3D representation of the edge and to respect tangency with the first face of the edge GeomAbs_G2the surface has to pass by 3D representation of the edge and to respect tangency and curvature with the first face of the edge.
- param anEdge
- type anEdge
TopoDS_Edge
- param Order
- type Order
GeomAbs_Shape
- param IsBound
default value is Standard_True
- type IsBound
bool
- rtype
int* Adds a new constraint which also defines an edge of the wire of the face Order: Order of the constraint: GeomAbs_C0 : the surface has to pass by 3D representation of the edge GeomAbs_G1 : the surface has to pass by 3D representation of the edge and to respect tangency with the given face GeomAbs_G2 : the surface has to pass by 3D representation of the edge and to respect tangency and curvature with the given face.
- param anEdge
- type anEdge
TopoDS_Edge
- param Support
- type Support
TopoDS_Face
- param Order
- type Order
GeomAbs_Shape
- param IsBound
default value is Standard_True
- type IsBound
bool
- rtype
int* Adds a free constraint on a face. The corresponding edge has to be automatically recomputed. It is always a bound.
- param Support
- type Support
TopoDS_Face
- param Order
- type Order
GeomAbs_Shape
- rtype
int* Adds a punctual constraint
- param Point
- type Point
gp_Pnt
- rtype
int* Adds a punctual constraint.
- param U
- type U
float
- param V
- type V
float
- param Support
- type Support
TopoDS_Face
- param Order
- type Order
GeomAbs_Shape
- rtype
int
-
Build
()¶ - Builds the resulting faces
- rtype
None
-
Face
()¶ - Return type
-
G0Error
()¶ - Return type
float:param Index: :type Index: int :rtype: float
-
G1Error
()¶ - Return type
float:param Index: :type Index: int :rtype: float
-
G2Error
()¶ - Return type
float:param Index: :type Index: int :rtype: float
-
Generated
()¶ - Returns the list of shapes generated from the shape <S>.
- param S
- type S
TopoDS_Shape
- rtype
TopTools_ListOfShape
-
LoadInitSurface
()¶ - Loads the initial Surface The initial surface must have orthogonal local coordinates, i.e. partial derivatives dS/du and dS/dv must be orthogonal at each point of surface. If this condition breaks, distortions of resulting surface are possible.
- param aFace
- type aFace
TopoDS_Face
- rtype
None
-
SetApproxParam
()¶ - Sets the parameters used for approximation of the surface
- param MaxDeg
default value is 8
- type MaxDeg
int
- param MaxSegments
default value is 9
- type MaxSegments
int
- rtype
None
-
SetConstrParam
()¶ - Sets the values of Tolerances used to control the constraint. Tol2d: Tol3d: it is the maximum distance allowed between the support surface and the constraints TolAng: it is the maximum angle allowed between the normal of the surface and the constraints TolCurv: it is the maximum difference of curvature allowed between the surface and the constraint
- param Tol2d
default value is 0.00001
- type Tol2d
float
- param Tol3d
default value is 0.0001
- type Tol3d
float
- param TolAng
default value is 0.01
- type TolAng
float
- param TolCurv
default value is 0.1
- type TolCurv
float
- rtype
None
-
SetResolParam
()¶ - Sets the parameters used for resolution. The default values of these parameters have been chosen for a good ratio quality/performance. Degree: it is the order of energy criterion to minimize for computing the deformation of the surface. The default value is 3 The recommanded value is i+2 where i is the maximum order of the constraints. NbPtsOnCur: it is the average number of points for discretisation of the edges. NbIter: it is the maximum number of iterations of the process. For each iteration the number of discretisation points is increased. Anisotropie:
- param Degree
default value is 3
- type Degree
int
- param NbPtsOnCur
default value is 15
- type NbPtsOnCur
int
- param NbIter
default value is 2
- type NbIter
int
- param Anisotropie
default value is Standard_False
- type Anisotropie
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepFill_Generator
(*args)¶ Bases:
object
- Return type
-
AddWire
()¶ - Parameters
Wire –
- type Wire
TopoDS_Wire
- rtype
None
-
Generated
()¶ - Returns all the shapes created
- rtype
TopTools_DataMapOfShapeListOfShape
-
GeneratedShapes
()¶ - Returns the shapes created from a subshape <SSection> of a section.
- param SSection
- type SSection
TopoDS_Shape
- rtype
TopTools_ListOfShape
-
Perform
()¶ - Compute the shell.
- rtype
None
-
Shell
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
BRepFill_IndexedDataMapOfOrientedShapeListOfShape
(*args)¶ Bases:
object
-
Add
()¶
-
Assign
()¶
-
ChangeFromIndex
()¶
-
ChangeFromKey
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Contains
()¶
-
Exchange
()¶
-
FindFromIndex
()¶
-
FindFromKey
()¶
-
FindIndex
()¶
-
FindKey
()¶
-
ReSize
()¶
-
RemoveFromIndex
()¶
-
RemoveKey
()¶
-
RemoveLast
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
Substitute
()¶
-
Swap
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_ListIteratorOfListOfOffsetWire
(*args)¶ Bases:
object
-
ChangeValue
()¶
-
More
()¶
-
Next
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
BRepFill_ListOfOffsetWire
(*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
BRepFill_LocationLaw
¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Abscissa
()¶ - Return the curvilinear abscissa corresponding to a point of the path, defined by <Index> of Edge and a parameter on the edge.
- param Index
- type Index
int
- param Param
- type Param
float
- rtype
float
-
CurvilinearBounds
()¶ - Return the Curvilinear Bounds of the <Index> Law
- param Index
- type Index
int
- param First
- type First
float
- param Last
- type Last
float
- rtype
None
-
D0
()¶ - Apply the Law to a shape, for a given Curnilinear abscissa
- param Abscissa
- type Abscissa
float
- param Section
- type Section
TopoDS_Shape
- rtype
None
-
static
DownCast
(t)¶
-
Edge
()¶ - Return the Edge of rank <Index> in the path <Index> have to be in [1, NbLaw()]
- param Index
- type Index
int
- rtype
TopoDS_Edge
-
GetStatus
()¶ - Return a error status, if the status is not PipeOk then it exist a parameter tlike the law is not valuable for t.
- rtype
GeomFill_PipeError
-
Holes
()¶ - Parameters
Interval –
- type Interval
TColStd_Array1OfInteger
- rtype
None
-
IsG1
()¶ - Compute the Law’s continuity beetween 2 edges of the path The result can be-1Case Not connex 0It is connex (G0) 1It is tangent (G1)
- param Index
- type Index
int
- param SpatialTolerance
default value is 1.0e-7
- type SpatialTolerance
float
- param AngularTolerance
default value is 1.0e-4
- type AngularTolerance
float
- rtype
int
-
NbHoles
()¶ - Parameters
Tol – default value is 1.0e-7 :type Tol: float :rtype: int
-
NbLaw
()¶ - Return the number of elementary Law
- rtype
int
-
Parameter
()¶ - Find the index Law and the parmaeter, for a given Curnilinear abscissa
- param Abscissa
- type Abscissa
float
- param Index
- type Index
int
- param Param
- type Param
float
- rtype
None
-
PerformVertex
()¶ - Compute <OutputVertex> like a transformation of <InputVertex> the transformation is given by evaluation of the location law in the vertex of rank <Index>. <Location> is used to manage discontinuities- -1The law before the vertex is used. - 1The law after the vertex is used. - 0Average of the both laws is used.
- param Index
- type Index
int
- param InputVertex
- type InputVertex
TopoDS_Vertex
- param TolMin
- type TolMin
float
- param OutputVertex
- type OutputVertex
TopoDS_Vertex
- param Location
default value is 0
- type Location
int
- rtype
None
-
TransformInCompatibleLaw
()¶ - Apply a linear transformation on each law, to reduce the dicontinuities of law at one rotation.
- param AngularTolerance
- type AngularTolerance
float
- rtype
void
-
TransformInG0Law
()¶ - Apply a linear transformation on each law, to have continuity of the global law beetween the edges.
- rtype
void
-
Vertex
()¶ - Return the vertex of rank <Index> in the path <Index> have to be in [0, NbLaw()]
- param Index
- type Index
int
- rtype
TopoDS_Vertex
-
Wire
()¶ - return the path
- rtype
TopoDS_Wire
-
law
()¶ - Return the elementary Law of rank <Index> <Index> have to be in [1, NbLaw()]
- param Index
- type Index
int
- rtype
opencascade::handle<GeomFill_LocationLaw>
-
property
thisown
¶ The membership flag
-
class
BRepFill_MultiLine
(*args)¶ Bases:
OCC.Core.AppCont.AppCont_Function
- Return type
None:param Face1: :type Face1: TopoDS_Face :param Face2: :type Face2: TopoDS_Face :param Edge1: :type Edge1: TopoDS_Edge :param Edge2: :type Edge2: TopoDS_Edge :param Inv1: :type Inv1: bool :param Inv2: :type Inv2: bool :param Bissec: :type Bissec: Geom2d_Curve :rtype: None
-
Continuity
()¶ - Returns the continuity betwwen the two faces seShape from GeomAbsparated by myBis.
- rtype
GeomAbs_Shape
-
Curves
()¶ - raises if IsParticularCase is <False>.
- param Curve
- type Curve
Geom_Curve
- param PCurve1
- type PCurve1
Geom2d_Curve
- param PCurve2
- type PCurve2
Geom2d_Curve
- rtype
None
-
D1
()¶ - Returns the derivative at parameter <theU>.
- param theU
- type theU
float
- param theVec2d
- type theVec2d
NCollection_Array1<gp_Vec2d>
- param theVec
- type theVec
NCollection_Array1<gp_Vec>
- rtype
bool
-
FirstParameter
()¶ - returns the first parameter of the Bissectrice.
- rtype
float
-
IsParticularCase
()¶ - Search if the Projection of the Bissectrice on the faces needs an approximation or not. Returns true if the approximation is not needed.
- rtype
bool
-
LastParameter
()¶ - returns the last parameter of the Bissectrice.
- rtype
float
-
Value
()¶ - Returns the current point on the 3d curve
- param U
- type U
float
- rtype
gp_Pnt* Returns the point at parameter <theU>.
- param theU
- type theU
float
- param thePnt2d
- type thePnt2d
NCollection_Array1<gp_Pnt2d>
- param thePnt
- type thePnt
NCollection_Array1<gp_Pnt>
- rtype
bool
-
Value3dOnF1OnF2
()¶ - Parameters
U –
- type U
float
- param P3d
- type P3d
gp_Pnt
- param PF1
- type PF1
gp_Pnt2d
- param PF2
- type PF2
gp_Pnt2d
- rtype
None
-
ValueOnF1
()¶ - returns the current point on the PCurve of the first face
- param U
- type U
float
- rtype
gp_Pnt2d
-
ValueOnF2
()¶ - returns the current point on the PCurve of the first face
- param U
- type U
float
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
class
BRepFill_NSections
(*args)¶ Bases:
OCC.Core.BRepFill.BRepFill_SectionLaw
- Construct
- param S
- type S
TopTools_SequenceOfShape
- param Build
default value is Standard_True
- type Build
bool
- rtype
None* Construct
- param S
- type S
TopTools_SequenceOfShape
- param Trsfs
- type Trsfs
GeomFill_SequenceOfTrsf
- param P
- type P
TColStd_SequenceOfReal
- param VF
- type VF
float
- param VL
- type VL
float
- param Build
default value is Standard_True
- type Build
bool
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
BRepFill_OffsetAncestors
(*args)¶ Bases:
object
- Return type
None:param Paral: :type Paral: BRepFill_OffsetWire :rtype: None
-
Ancestor
()¶ - may return a Null Shape if S1 is not a subShape of <Paral>; if Perform is not done.
- param S1
- type S1
TopoDS_Edge
- rtype
TopoDS_Shape
-
HasAncestor
()¶ - Parameters
S1 –
- type S1
TopoDS_Edge
- rtype
bool
-
Perform
()¶ - Parameters
Paral –
- type Paral
BRepFill_OffsetWire
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepFill_OffsetWire
(*args)¶ Bases:
object
- Return type
None:param Spine: :type Spine: TopoDS_Face :param Join: default value is GeomAbs_Arc :type Join: GeomAbs_JoinType :param IsOpenResult: default value is Standard_False :type IsOpenResult: bool :rtype: None
-
GeneratedShapes
()¶ - Returns the shapes created from a subshape <SpineShape> of the spine. Returns the last computed Offset.
- param SpineShape
- type SpineShape
TopoDS_Shape
- rtype
TopTools_ListOfShape
-
Init
()¶ - Initialize the evaluation of Offseting.
- param Spine
- type Spine
TopoDS_Face
- param Join
default value is GeomAbs_Arc
- type Join
GeomAbs_JoinType
- param IsOpenResult
default value is Standard_False
- type IsOpenResult
bool
- rtype
None
-
JoinType
()¶ - Return type
GeomAbs_JoinType
-
Perform
()¶ - Performs an OffsetWire at an altitude <Alt> from the face ( According to the orientation of the face)
- param Offset
- type Offset
float
- param Alt
default value is 0.0
- type Alt
float
- rtype
None
-
PerformWithBiLo
()¶ - Performs an OffsetWire
- param WSP
- type WSP
TopoDS_Face
- param Offset
- type Offset
float
- param Locus
- type Locus
BRepMAT2d_BisectingLocus
- param Link
- type Link
BRepMAT2d_LinkTopoBilo
- param Join
default value is GeomAbs_Arc
- type Join
GeomAbs_JoinType
- param Alt
default value is 0.0
- type Alt
float
- rtype
None
-
Shape
()¶ - returns the generated shape.
- rtype
TopoDS_Shape
-
Spine
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
BRepFill_Pipe
(*args)¶ Bases:
object
- Return type
None:param Spine: :type Spine: TopoDS_Wire :param Profile: :type Profile: TopoDS_Shape :param aMode: default value is GeomFill_IsCorrectedFrenet :type aMode: GeomFill_Trihedron :param ForceApproxC1: default value is Standard_False :type ForceApproxC1: bool :param GeneratePartCase: default value is Standard_False :type GeneratePartCase: bool :rtype: None
-
Edge
()¶ - Returns the edge created from an edge of the spine and a vertex of the profile. if the edge or the vertex are not in the spine or the profile.
- param ESpine
- type ESpine
TopoDS_Edge
- param VProfile
- type VProfile
TopoDS_Vertex
- rtype
TopoDS_Edge
-
Face
()¶ - Returns the face created from an edge of the spine and an edge of the profile. if the edges are not in the spine or the profile
- param ESpine
- type ESpine
TopoDS_Edge
- param EProfile
- type EProfile
TopoDS_Edge
- rtype
TopoDS_Face
-
FirstShape
()¶ - Return type
-
Generated
()¶ - Returns the list of shapes generated from the shape <S>.
- param S
- type S
TopoDS_Shape
- param L
- type L
TopTools_ListOfShape
- rtype
None
-
LastShape
()¶ - Return type
-
Perform
()¶ - Parameters
Spine –
- type Spine
TopoDS_Wire
- param Profile
- type Profile
TopoDS_Shape
- param GeneratePartCase
default value is Standard_False
- type GeneratePartCase
bool
- rtype
None
-
PipeLine
()¶ - Create a Wire by sweeping the Point along the <spine> if the <Spine> is undefined
- param Point
- type Point
gp_Pnt
- rtype
TopoDS_Wire
-
Profile
()¶ - Return type
-
Section
()¶ - Returns the shape created from the profile at the position of the vertex VSpine. if the vertex is not in the Spine
- param VSpine
- type VSpine
TopoDS_Vertex
- rtype
TopoDS_Shape
-
Shape
()¶ - Return type
-
Spine
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
BRepFill_PipeShell
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Set an sweep’s mode If no mode are setted, the mode use in MakePipe is used
- param Spine
- type Spine
TopoDS_Wire
- rtype
None
-
Add
()¶ - Set an section. The corespondance with the spine, will be automaticaly performed.
- param Profile
- type Profile
TopoDS_Shape
- param WithContact
default value is Standard_False
- type WithContact
bool
- param WithCorrection
default value is Standard_False
- type WithCorrection
bool
- rtype
None* Set an section. The corespondance with the spine, is given by <Location>
- param Profile
- type Profile
TopoDS_Shape
- param Location
- type Location
TopoDS_Vertex
- param WithContact
default value is Standard_False
- type WithContact
bool
- param WithCorrection
default value is Standard_False
- type WithCorrection
bool
- rtype
None
-
Build
()¶ - Builds the resulting shape (redefined from MakeShape).
- rtype
bool
-
DeleteProfile
()¶ - Delete an section.
- param Profile
- type Profile
TopoDS_Shape
- rtype
None
-
static
DownCast
(t)¶
-
FirstShape
()¶ - Returns the TopoDS Shape of the bottom of the sweep.
- rtype
TopoDS_Shape
-
Generated
()¶ - Returns the list of shapes generated from the shape <S>.
- param S
- type S
TopoDS_Shape
- param L
- type L
TopTools_ListOfShape
- rtype
None
-
GetStatus
()¶ - Get a status, when Simulate or Build failed.
- rtype
GeomFill_PipeError
-
IsReady
()¶ - Say if <self> is ready to build the shape return False if <self> do not have section definition
- rtype
bool
-
LastShape
()¶ - Returns the TopoDS Shape of the top of the sweep.
- rtype
TopoDS_Shape
-
MakeSolid
()¶ - Transform the sweeping Shell in Solid. If the section are not closed returns False
- rtype
bool
-
Profiles
()¶ - Returns the list of original profiles
- param theProfiles
- type theProfiles
TopTools_ListOfShape
- rtype
None
-
Set
()¶ - Set an Frenet or an CorrectedFrenet trihedron to perform the sweeping
- param Frenet
default value is Standard_False
- type Frenet
bool
- rtype
None* Set an fixed trihedron to perform the sweeping all sections will be parallel.
- param Axe
- type Axe
gp_Ax2
- rtype
None* Set an fixed BiNormal direction to perform the sweeping
- param BiNormal
- type BiNormal
gp_Dir
- rtype
None* Set support to the spine to define the BiNormal at the spine, like the normal the surfaces. Warning: To be effective, Each edge of the <spine> must have an representaion on one face of<SpineSupport>
- param SpineSupport
- type SpineSupport
TopoDS_Shape
- rtype
bool* Set an auxiliary spine to define the Normal For each Point of the Spine P, an Point Q is evalued on <AuxiliarySpine> If <CurvilinearEquivalence> Q split <AuxiliarySpine> with the same length ratio than P split <Spline>. Else the plan define by P and the tangent to the <Spine> intersect <AuxiliarySpine> in Q. If <KeepContact> equals BRepFill_NoContact: The Normal is defined by the vector PQ. If <KeepContact> equals BRepFill_Contact: The Normal is defined to achieve that the sweeped section is in contact to the auxiliarySpine. The width of section is constant all along the path. In other words, the auxiliary spine lies on the swept surface, but not necessarily is a boundary of this surface. However, the auxiliary spine has to be close enough to the main spine to provide intersection with any section all along the path. If <KeepContact> equals BRepFill_ContactOnBorder: The auxiliary spine becomes a boundary of the swept surface and the width of section varies along the path.
- param AuxiliarySpine
- type AuxiliarySpine
TopoDS_Wire
- param CurvilinearEquivalence
default value is Standard_True
- type CurvilinearEquivalence
bool
- param KeepContact
default value is BRepFill_NoContact
- type KeepContact
BRepFill_TypeOfContact
- rtype
None
-
SetDiscrete
()¶ - Set a Discrete trihedron to perform the sweeping
- rtype
None
-
SetForceApproxC1
()¶ - Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. Give section to sweep. Possibilities are- Give one or sevral profile - Give one profile and an homotetic law. - Automatic compute of correspondance beetween profile, and section on the sweeped shape - correspondance beetween profile, and section on the sweeped shape defined by a vertex of the spine
- param ForceApproxC1
- type ForceApproxC1
bool
- rtype
None
-
SetLaw
()¶ - Set an section and an homotetic law. The homotetie’s centers is given by point on the <Spine>.
- param Profile
- type Profile
TopoDS_Shape
- param L
- type L
Law_Function
- param WithContact
default value is Standard_False
- type WithContact
bool
- param WithCorrection
default value is Standard_False
- type WithCorrection
bool
- rtype
None* Set an section and an homotetic law. The homotetie center is given by point on the <Spine>
- param Profile
- type Profile
TopoDS_Shape
- param L
- type L
Law_Function
- param Location
- type Location
TopoDS_Vertex
- param WithContact
default value is Standard_False
- type WithContact
bool
- param WithCorrection
default value is Standard_False
- type WithCorrection
bool
- rtype
None
-
SetMaxDegree
()¶ - Define the maximum V degree of resulting surface
- param NewMaxDegree
- type NewMaxDegree
int
- rtype
None
-
SetMaxSegments
()¶ - Define the maximum number of spans in V-direction on resulting surface
- param NewMaxSegments
- type NewMaxSegments
int
- rtype
None
-
SetTolerance
()¶ - Parameters
Tol3d – default value is 1.0e-4 :type Tol3d: float :param BoundTol: default value is 1.0e-4 :type BoundTol: float :param TolAngular: default value is 1.0e-2 :type TolAngular: float :rtype: None
-
SetTransition
()¶ - Set the Transition Mode to manage discontinuities on the sweep.
- param Mode
default value is BRepFill_Modified
- type Mode
BRepFill_TransitionStyle
- param Angmin
default value is 1.0e-2
- type Angmin
float
- param Angmax
default value is 6.0
- type Angmax
float
- rtype
None
-
Shape
()¶ - Returns the result Shape.
- rtype
TopoDS_Shape
-
Simulate
()¶ - Perform simulation of the sweepSomes Section are returned.
- param NumberOfSection
- type NumberOfSection
int
- param Sections
- type Sections
TopTools_ListOfShape
- rtype
None
-
Spine
()¶ - Returns the spine
- rtype
TopoDS_Wire
-
property
thisown
¶ The membership flag
-
class
BRepFill_Section
(*args)¶ Bases:
object
- Return type
None:param Profile: :type Profile: TopoDS_Shape :param V: :type V: TopoDS_Vertex :param WithContact: :type WithContact: bool :param WithCorrection: :type WithCorrection: bool :rtype: None
-
ModifiedShape
()¶ - Parameters
theShape –
- type theShape
TopoDS_Shape
- rtype
TopoDS_Shape
-
OriginalShape
()¶ - Return type
-
Set
()¶ - Parameters
IsLaw –
- type IsLaw
bool
- rtype
None
-
Vertex
()¶ - Return type
-
Wire
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
BRepFill_SectionLaw
(*args, **kwargs)¶ Bases:
OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
ConcatenedLaw
()¶ - Return type
opencascade::handle<GeomFill_SectionLaw>
-
Continuity
()¶ - Parameters
Index –
- type Index
int
- param TolAngular
- type TolAngular
float
- rtype
GeomAbs_Shape
-
CurrentEdge
()¶ - Return type
-
D0
()¶ - Parameters
U –
- type U
float
- param S
- type S
TopoDS_Shape
- rtype
void
-
static
DownCast
(t)¶
-
IndexOfEdge
()¶ - Parameters
anEdge –
- type anEdge
TopoDS_Shape
- rtype
int
-
Init
()¶ - Parameters
W –
- type W
TopoDS_Wire
- rtype
None
-
IsVertex
()¶ - Say if the input shape is a vertex.
- rtype
bool
-
Vertex
()¶ - Parameters
Index –
- type Index
int
- param Param
- type Param
float
- rtype
TopoDS_Vertex
-
VertexTol
()¶ - Parameters
Index –
- type Index
int
- param Param
- type Param
float
- rtype
float
-
law
()¶ - Parameters
Index –
- type Index
int
- rtype
opencascade::handle<GeomFill_SectionLaw>
-
property
thisown
¶ The membership flag
-
class
BRepFill_SectionPlacement
(*args)¶ Bases:
object
- Automatic placement
- param Law
- type Law
BRepFill_LocationLaw
- param Section
- type Section
TopoDS_Shape
- param WithContact
default value is Standard_False
- type WithContact
bool
- param WithCorrection
default value is Standard_False
- type WithCorrection
bool
- rtype
None* Placement on vertex
- param Law
- type Law
BRepFill_LocationLaw
- param Section
- type Section
TopoDS_Shape
- param Vertex
- type Vertex
TopoDS_Shape
- param WithContact
default value is Standard_False
- type WithContact
bool
- param WithCorrection
default value is Standard_False
- type WithCorrection
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepFill_SequenceOfEdgeFaceAndOrder
(*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
BRepFill_SequenceOfFaceAndOrder
(*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
BRepFill_SequenceOfSection
(*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
BRepFill_ShapeLaw
(*args)¶ Bases:
OCC.Core.BRepFill.BRepFill_SectionLaw
- Construct an constant Law
- param V
- type V
TopoDS_Vertex
- param Build
default value is Standard_True
- type Build
bool
- rtype
None* Construct an constant Law
- param W
- type W
TopoDS_Wire
- param Build
default value is Standard_True
- type Build
bool
- rtype
None* Construct an evolutive Law
- param W
- type W
TopoDS_Wire
- param L
- type L
Law_Function
- param Build
default value is Standard_True
- type Build
bool
- rtype
None
-
static
DownCast
(t)¶
-
Edge
()¶ - Parameters
Index –
- type Index
int
- rtype
TopoDS_Edge
-
property
thisown
¶ The membership flag
-
class
BRepFill_Sweep
(*args)¶ Bases:
object
- Parameters
Section –
- type Section
BRepFill_SectionLaw
- param Location
- type Location
BRepFill_LocationLaw
- param WithKPart
- type WithKPart
bool
- rtype
None
-
Build
()¶ - Build the Sweep Surface Transition define Transition strategy Approx define Approximation Strategy - GeomFill_SectionThe composed Function Location X Section is directly approximed. - GeomFill_LocationThe location law is approximed, and the SweepSurface is bulid algebric composition of approximed location law and section law This option is Ok, if Section.Surface() methode is effective. ContinuityThe continuity in v waiting on the surface DegmaxThe maximum degree in v requiered on the surface SegmaxThe maximum number of span in v requiered on the surface.
- param ReversedEdges
- type ReversedEdges
TopTools_MapOfShape
- param Tapes
- type Tapes
BRepFill_DataMapOfShapeHArray2OfShape
- param Rails
- type Rails
BRepFill_DataMapOfShapeHArray2OfShape
- param Transition
default value is BRepFill_Modified
- type Transition
BRepFill_TransitionStyle
- param Continuity
default value is GeomAbs_C2
- type Continuity
GeomAbs_Shape
- param Approx
default value is GeomFill_Location
- type Approx
GeomFill_ApproxStyle
- param Degmax
default value is 11
- type Degmax
int
- param Segmax
default value is 30
- type Segmax
int
- rtype
None
-
ErrorOnSurface
()¶ - Get the Approximation error.
- rtype
float
-
InterFaces
()¶ - Return type
opencascade::handle<TopTools_HArray2OfShape>
-
IsDone
()¶ - Say if the Shape is Build.
- rtype
bool
-
Sections
()¶ - Return type
opencascade::handle<TopTools_HArray2OfShape>
-
SetAngularControl
()¶ - Tolerance To controle Corner management. //! If the discontinuity is lesser than <AngleMin> in radian The Transition Performed will be alway ‘Modified’
- param AngleMin
default value is 0.01
- type AngleMin
float
- param AngleMax
default value is 6.0
- type AngleMax
float
- rtype
None
-
SetBounds
()¶ - Parameters
FirstShape –
- type FirstShape
TopoDS_Wire
- param LastShape
- type LastShape
TopoDS_Wire
- rtype
None
-
SetForceApproxC1
()¶ - Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
- param ForceApproxC1
- type ForceApproxC1
bool
- rtype
None
-
SetTolerance
()¶ - Set Approximation Tolerance Tol3dTolerance to surface approximation Tol2dTolerance used to perform curve approximation Normaly the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngularTolerance (in radian) to control the angle beetween tangents on the section law and tangent of iso-v on approximed surface
- param Tol3d
- type Tol3d
float
- param BoundTol
default value is 1.0
- type BoundTol
float
- param Tol2d
default value is 1.0e-5
- type Tol2d
float
- param TolAngular
default value is 1.0e-2
- type TolAngular
float
- rtype
None
-
Shape
()¶ - returns the Sweeping Shape
- rtype
TopoDS_Shape
-
SubShape
()¶ - Return type
opencascade::handle<TopTools_HArray2OfShape>
-
Tape
()¶ - returns the Tape corresponding to Index-th edge of section
- param Index
- type Index
int
- rtype
TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
BRepFill_TrimEdgeTool
(*args)¶ Bases:
object
- Return type
None:param Bisec: :type Bisec: Bisector_Bisec :param S1: :type S1: Geom2d_Geometry :param S2: :type S2: Geom2d_Geometry :param Offset: :type Offset: float :rtype: None
-
AddOrConfuse
()¶ - Parameters
Start –
- type Start
bool
- param Edge1
- type Edge1
TopoDS_Edge
- param Edge2
- type Edge2
TopoDS_Edge
- param Params
- type Params
TColgp_SequenceOfPnt
- rtype
None
-
IntersectWith
()¶ - Parameters
Edge1 –
- type Edge1
TopoDS_Edge
- param Edge2
- type Edge2
TopoDS_Edge
- param InitShape1
- type InitShape1
TopoDS_Shape
- param InitShape2
- type InitShape2
TopoDS_Shape
- param End1
- type End1
TopoDS_Vertex
- param End2
- type End2
TopoDS_Vertex
- param theJoinType
- type theJoinType
GeomAbs_JoinType
- param IsOpenResult
- type IsOpenResult
bool
- param Params
- type Params
TColgp_SequenceOfPnt
- rtype
None
-
IsInside
()¶ - Parameters
P –
- type P
gp_Pnt2d
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepFill_TrimShellCorner
(*args)¶ Bases:
object
- Constructor: takes faces to intersect, type of transition (it can be RightCorner or RoundCorner) and axis of bisector plane
- param theFaces
- type theFaces
TopTools_HArray2OfShape
- param theTransition
- type theTransition
BRepFill_TransitionStyle
- param theAxeOfBisPlane
- type theAxeOfBisPlane
gp_Ax2
- rtype
None
-
AddBounds
()¶ - Parameters
Bounds –
- type Bounds
TopTools_HArray2OfShape
- rtype
None
-
AddUEdges
()¶ - Parameters
theUEdges –
- type theUEdges
TopTools_HArray2OfShape
- rtype
None
-
AddVEdges
()¶ - Parameters
theVEdges –
- type theVEdges
TopTools_HArray2OfShape
- param theIndex
- type theIndex
int
- rtype
None
-
Modified
()¶ - Parameters
S –
- type S
TopoDS_Shape
- param theModified
- type theModified
TopTools_ListOfShape
- rtype
None
-
property
thisown
¶ The membership flag
-
class
BRepFill_TrimSurfaceTool
(*args)¶ Bases:
object
- Parameters
Bis –
- type Bis
Geom2d_Curve
- param Face1
- type Face1
TopoDS_Face
- param Face2
- type Face2
TopoDS_Face
- param Edge1
- type Edge1
TopoDS_Edge
- param Edge2
- type Edge2
TopoDS_Edge
- param Inv1
- type Inv1
bool
- param Inv2
- type Inv2
bool
- rtype
None
-
IntersectWith
()¶ - Intersect <Bis> with the projection of the edges <EdgeOnFi> and returns the intersecting parameters on Bis and on the edges P.X()Parameter on Bis P.Y()Parameter on EdgeOnF1 P.Z()Parameter on EdgeOnF2 raises if <Edge> is not a edge of Face1 or Face2.
- param EdgeOnF1
- type EdgeOnF1
TopoDS_Edge
- param EdgeOnF2
- type EdgeOnF2
TopoDS_Edge
- param Points
- type Points
TColgp_SequenceOfPnt
- rtype
None
-
IsOnFace
()¶ - returns True if the Line (P, DZ) intersect the Faces
- param Point
- type Point
gp_Pnt2d
- rtype
bool
-
ProjOn
()¶ - returns the parameter of the point <Point> on the Edge <Edge>, assuming that the point is on the edge.
- param Point
- type Point
gp_Pnt2d
- param Edge
- type Edge
TopoDS_Edge
- rtype
float
-
Project
()¶ - Parameters
U1 –
- type U1
float
- param U2
- type U2
float
- param Curve
- type Curve
Geom_Curve
- param PCurve1
- type PCurve1
Geom2d_Curve
- param PCurve2
- type PCurve2
Geom2d_Curve
- param myCont
- type myCont
GeomAbs_Shape
- rtype
None
-
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
brepfill
¶ Bases:
object
-
static
Axe
()¶ - Computes <AxeProf> as Follow. <Location> is the Position of the nearest vertex V of <Profile> to <Spine>.<XDirection> is confused with the tangent to <Spine> at the projected point of V on the Spine. <Direction> is normal to <Spine>. <Spine> is a plane wire or a plane face.
- param Spine
- type Spine
TopoDS_Shape
- param Profile
- type Profile
TopoDS_Wire
- param AxeProf
- type AxeProf
gp_Ax3
- param ProfOnSpine
- type ProfOnSpine
bool
- param Tol
- type Tol
float
- rtype
void
-
static
ComputeACR
()¶ - Compute ACR on a wire
- param wire
- type wire
TopoDS_Wire
- param ACR
- type ACR
TColStd_Array1OfReal
- rtype
void
-
static
Face
()¶ - Computes a ruled surface between two edges.
- param Edge1
- type Edge1
TopoDS_Edge
- param Edge2
- type Edge2
TopoDS_Edge
- rtype
TopoDS_Face
-
static
InsertACR
()¶ - Insert ACR on a wire
- param wire
- type wire
TopoDS_Wire
- param ACRcuts
- type ACRcuts
TColStd_Array1OfReal
- param prec
- type prec
float
- rtype
TopoDS_Wire
-
static
Shell
()¶ - Computes a ruled surface between two wires. The wires must have the same number of edges.
- param Wire1
- type Wire1
TopoDS_Wire
- param Wire2
- type Wire2
TopoDS_Wire
- rtype
TopoDS_Shell
-
property
thisown
¶ The membership flag
-
static