OCC.Core.BRepLib module¶
BRepLib module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_breplib.html
-
class
BRepLib_CheckCurveOnSurface
(*args)¶ Bases:
object
- Default contructor
- rtype
None* Contructor
- param theEdge
- type theEdge
TopoDS_Edge
- param theFace
- type theFace
TopoDS_Face
- rtype
None
-
Curve
()¶ - Returns source 3D-Curve
- rtype
opencascade::handle<Geom_Curve>
-
ErrorStatus
()¶ - Returns error status The possible values are: 0 - OK; 1 - null curve or surface or 2d curve; 2 - invalid parametric range; 3 - error in calculations.
- rtype
int
-
Init
()¶ - Sets the data for the algorithm
- param theEdge
- type theEdge
TopoDS_Edge
- param theFace
- type theFace
TopoDS_Face
- rtype
None
-
IsDone
()¶ - Returns true if the max distance has been found
- rtype
bool
-
MaxDistance
()¶ - Returns max distance
- rtype
float
-
MaxParameter
()¶ - Returns parameter in which the distance is maximal
- rtype
float
-
PCurve
()¶ - Returns mine 2D-Curve
- rtype
opencascade::handle<Geom2d_Curve>
-
PCurve2
()¶ - Returns 2nd 2D-Curve (if it exists, e.g. for seam-edge)
- rtype
opencascade::handle<Geom2d_Curve>
-
Perform
()¶ - Performs the calculation If isTheMultyTheadDisabled == True then computation will be made without any parallelization.
- param isTheMultyTheradDisabled
default value is Standard_False
- type isTheMultyTheradDisabled
bool
- rtype
None
-
Range
()¶ - Returns first and last parameter of the curves (2D- and 3D-curves are considered to have same range)
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- rtype
None
-
Surface
()¶ - Returns source surface
- rtype
opencascade::handle<Geom_Surface>
-
property
thisown
¶ The membership flag
-
class
BRepLib_Command
(*args, **kwargs)¶ Bases:
object
-
Check
()¶ - Raises NotDone if done is false.
- rtype
None
-
property
thisown
¶ The membership flag
-
-
class
BRepLib_FindSurface
(*args)¶ Bases:
object
- Return type
None* Computes the Surface from the edges of <S> with the given tolerance. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If <OnlyClosed> is true, then S sould be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored. :param S: :type S: TopoDS_Shape :param Tol: default value is -1 :type Tol: float :param OnlyPlane: default value is Standard_False :type OnlyPlane: bool :param OnlyClosed: default value is Standard_False :type OnlyClosed: bool :rtype: None
-
Init
()¶ - Computes the Surface from the edges of <S> with the given tolerance. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If <OnlyClosed> is true, then S sould be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored.
- param S
- type S
TopoDS_Shape
- param Tol
default value is -1
- type Tol
float
- param OnlyPlane
default value is Standard_False
- type OnlyPlane
bool
- param OnlyClosed
default value is Standard_False
- type OnlyClosed
bool
- rtype
None
-
Location
()¶ - Return type
-
Surface
()¶ - Return type
opencascade::handle<Geom_Surface>
-
property
thisown
¶ The membership flag
-
class
BRepLib_FuseEdges
(*args)¶ Bases:
object
- Initialise members and build construction of map of ancestors.
- param theShape
- type theShape
TopoDS_Shape
- param PerformNow
default value is Standard_False
- type PerformNow
bool
- rtype
None
-
AvoidEdges
()¶ - set edges to avoid being fused
- param theMapEdg
- type theMapEdg
TopTools_IndexedMapOfShape
- rtype
None
-
Edges
()¶ - returns all the list of edges to be fused each list of the map represent a set of connex edges that can be fused.
- param theMapLstEdg
- type theMapLstEdg
TopTools_DataMapOfIntegerListOfShape
- rtype
None
-
Faces
()¶ - returns the map of modified faces.
- param theMapFac
- type theMapFac
TopTools_DataMapOfShapeShape
- rtype
None
-
NbVertices
()¶ - returns the number of vertices candidate to be removed
- rtype
int
-
Perform
()¶ - Using map of list of connex edges, fuse each list to one edge and then update myShape
- rtype
None
-
ResultEdges
()¶ - returns all the fused edges. each integer entry in the map corresponds to the integer in the DataMapOfIntegerListOfShape we get in method Edges. That is to say, to the list of edges in theMapLstEdg(i) corresponds the resulting edge theMapEdge(i)
- param theMapEdg
- type theMapEdg
TopTools_DataMapOfIntegerShape
- rtype
None
-
SetConcatBSpl
()¶ - set mode to enable concatenation G1 BSpline edges in one End Modified by IFV 19.04.07
- param theConcatBSpl
default value is Standard_True
- type theConcatBSpl
bool
- rtype
None
-
Shape
()¶ - returns myShape modified with the list of internal edges removed from it.
- rtype
TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeEdge
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Return type
None:param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: gp_Lin :rtype: None:param L: :type L: gp_Lin :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: gp_Lin :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: gp_Lin :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: gp_Circ :rtype: None:param L: :type L: gp_Circ :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: gp_Circ :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: gp_Circ :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: gp_Elips :rtype: None:param L: :type L: gp_Elips :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: gp_Elips :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: gp_Elips :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: gp_Hypr :rtype: None:param L: :type L: gp_Hypr :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: gp_Hypr :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: gp_Hypr :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: gp_Parab :rtype: None:param L: :type L: gp_Parab :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: gp_Parab :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: gp_Parab :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: Geom_Curve :rtype: None:param L: :type L: Geom_Curve :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: Geom_Curve :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: Geom_Curve :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: Geom_Curve :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: Geom_Curve :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: Geom2d_Curve :param S: :type S: Geom_Surface :rtype: None:param L: :type L: Geom2d_Curve :param S: :type S: Geom_Surface :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: Geom2d_Curve :param S: :type S: Geom_Surface :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :rtype: None:param L: :type L: Geom2d_Curve :param S: :type S: Geom_Surface :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :rtype: None:param L: :type L: Geom2d_Curve :param S: :type S: Geom_Surface :param P1: :type P1: gp_Pnt :param P2: :type P2: gp_Pnt :param p1: :type p1: float :param p2: :type p2: float :rtype: None:param L: :type L: Geom2d_Curve :param S: :type S: Geom_Surface :param V1: :type V1: TopoDS_Vertex :param V2: :type V2: TopoDS_Vertex :param p1: :type p1: float :param p2: :type p2: float :rtype: None
-
Edge
()¶ - Return type
-
Error
()¶ - Returns the error description when NotDone.
- rtype
BRepLib_EdgeError
-
Init
()¶ - Parameters
C –
- type C
Geom_Curve
- rtype
None:param C:
- type C
Geom_Curve
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom_Curve
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- rtype
None:param C:
- type C
Geom_Curve
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param C:
- type C
Geom_Curve
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom_Curve
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom2d_Curve
- param S
- type S
Geom_Surface
- rtype
None:param C:
- type C
Geom2d_Curve
- param S
- type S
Geom_Surface
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom2d_Curve
- param S
- type S
Geom_Surface
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- rtype
None:param C:
- type C
Geom2d_Curve
- param S
- type S
Geom_Surface
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param C:
- type C
Geom2d_Curve
- param S
- type S
Geom_Surface
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom2d_Curve
- param S
- type S
Geom_Surface
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None
-
Vertex1
()¶ - Returns the first vertex of the edge. May be Null.
- rtype
TopoDS_Vertex
-
Vertex2
()¶ - Returns the second vertex of the edge. May be Null.
- rtype
TopoDS_Vertex
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeEdge2d
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Parameters
V1 –
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param P1:
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
gp_Lin2d
- rtype
None:param L:
- type L
gp_Lin2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
gp_Lin2d
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
gp_Lin2d
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param L:
- type L
gp_Circ2d
- rtype
None:param L:
- type L
gp_Circ2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
gp_Circ2d
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
gp_Circ2d
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param L:
- type L
gp_Elips2d
- rtype
None:param L:
- type L
gp_Elips2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
gp_Elips2d
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
gp_Elips2d
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param L:
- type L
gp_Hypr2d
- rtype
None:param L:
- type L
gp_Hypr2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
gp_Hypr2d
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
gp_Hypr2d
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param L:
- type L
gp_Parab2d
- rtype
None:param L:
- type L
gp_Parab2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
gp_Parab2d
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
gp_Parab2d
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param L:
- type L
Geom2d_Curve
- rtype
None:param L:
- type L
Geom2d_Curve
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
Geom2d_Curve
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param L:
- type L
Geom2d_Curve
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param L:
- type L
Geom2d_Curve
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param L:
- type L
Geom2d_Curve
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None
-
Edge
()¶ - Return type
-
Error
()¶ - Returns the error description when NotDone.
- rtype
BRepLib_EdgeError
-
Init
()¶ - Parameters
C –
- type C
Geom2d_Curve
- rtype
None:param C:
- type C
Geom2d_Curve
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom2d_Curve
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None:param C:
- type C
Geom2d_Curve
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param C:
- type C
Geom2d_Curve
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None:param C:
- type C
Geom2d_Curve
- param V1
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- param p1
- type p1
float
- param p2
- type p2
float
- rtype
None
-
Vertex1
()¶ - Returns the first vertex of the edge. May be Null.
- rtype
TopoDS_Vertex
-
Vertex2
()¶ - Returns the second vertex of the edge. May be Null.
- rtype
TopoDS_Vertex
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeFace
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Not done.
- rtype
None* Load a face. Usefull to add wires.
- param F
- type F
TopoDS_Face
- rtype
None* Make a face from a plane.
- param P
- type P
gp_Pln
- rtype
None* Make a face from a cylinder.
- param C
- type C
gp_Cylinder
- rtype
None* Make a face from a cone.
- param C
- type C
gp_Cone
- rtype
None* Make a face from a sphere.
- param S
- type S
gp_Sphere
- rtype
None* Make a face from a torus.
- param C
- type C
gp_Torus
- rtype
None* Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges.
- param S
- type S
Geom_Surface
- param TolDegen
- type TolDegen
float
- rtype
None* Make a face from a plane.
- param P
- type P
gp_Pln
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- rtype
None* Make a face from a cylinder.
- param C
- type C
gp_Cylinder
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- rtype
None* Make a face from a cone.
- param C
- type C
gp_Cone
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- rtype
None* Make a face from a sphere.
- param S
- type S
gp_Sphere
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- rtype
None* Make a face from a torus.
- param C
- type C
gp_Torus
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- rtype
None* Make a face from a Surface. Accepts min & max parameters to construct the face’s bounds. Also accepts tolerance value (TolDegen) for resolution of degenerated edges.
- param S
- type S
Geom_Surface
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- param TolDegen
- type TolDegen
float
- rtype
None* Find a surface from the wire and make a face. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set.
- param W
- type W
TopoDS_Wire
- param OnlyPlane
default value is Standard_False
- type OnlyPlane
bool
- rtype
None* Make a face from a plane and a wire.
- param P
- type P
gp_Pln
- param W
- type W
TopoDS_Wire
- param Inside
default value is Standard_True
- type Inside
bool
- rtype
None* Make a face from a cylinder and a wire.
- param C
- type C
gp_Cylinder
- param W
- type W
TopoDS_Wire
- param Inside
default value is Standard_True
- type Inside
bool
- rtype
None* Make a face from a cone and a wire.
- param C
- type C
gp_Cone
- param W
- type W
TopoDS_Wire
- param Inside
default value is Standard_True
- type Inside
bool
- rtype
None* Make a face from a sphere and a wire.
- param S
- type S
gp_Sphere
- param W
- type W
TopoDS_Wire
- param Inside
default value is Standard_True
- type Inside
bool
- rtype
None* Make a face from a torus and a wire.
- param C
- type C
gp_Torus
- param W
- type W
TopoDS_Wire
- param Inside
default value is Standard_True
- type Inside
bool
- rtype
None* Make a face from a Surface and a wire.
- param S
- type S
Geom_Surface
- param W
- type W
TopoDS_Wire
- param Inside
default value is Standard_True
- type Inside
bool
- rtype
None* Adds the wire <W> in the face <F>
- param F
- type F
TopoDS_Face
- param W
- type W
TopoDS_Wire
- rtype
None
-
Add
()¶ - Adds the wire <W> in the current face.
- param W
- type W
TopoDS_Wire
- rtype
None
-
Error
()¶ - Return type
BRepLib_FaceError
-
Face
()¶ - Returns the new face.
- rtype
TopoDS_Face
-
Init
()¶ - Load the face.
- param F
- type F
TopoDS_Face
- rtype
None* Creates the face from the surface. If Bound is True a wire is made from the natural bounds. Accepts tolerance value (TolDegen) for resolution of degenerated edges.
- param S
- type S
Geom_Surface
- param Bound
- type Bound
bool
- param TolDegen
- type TolDegen
float
- rtype
None* Creates the face from the surface and the min-max values. Accepts tolerance value (TolDegen) for resolution of degenerated edges.
- param S
- type S
Geom_Surface
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- param TolDegen
- type TolDegen
float
- rtype
None
-
static
IsDegenerated
()¶ - Checks the specified curve is degenerated according to specified tolerance. Returns <theActTol> less than <theMaxTol>, which shows actual tolerance to decide the curve is degenerated. Warning: For internal use of BRepLib_MakeFace and BRepLib_MakeShell.
- param theCurve
- type theCurve
Geom_Curve
- param theMaxTol
- type theMaxTol
float
- param theActTol
- type theActTol
float
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakePolygon
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Creates an empty MakePolygon.
- rtype
None:param P1:
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- rtype
None:param P1:
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- param P3
- type P3
gp_Pnt
- param Close
default value is Standard_False
- type Close
bool
- rtype
None:param P1:
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- param P3
- type P3
gp_Pnt
- param P4
- type P4
gp_Pnt
- param Close
default value is Standard_False
- type Close
bool
- rtype
None:param V1:
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- rtype
None:param V1:
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- param V3
- type V3
TopoDS_Vertex
- param Close
default value is Standard_False
- type Close
bool
- rtype
None:param V1:
- type V1
TopoDS_Vertex
- param V2
- type V2
TopoDS_Vertex
- param V3
- type V3
TopoDS_Vertex
- param V4
- type V4
TopoDS_Vertex
- param Close
default value is Standard_False
- type Close
bool
- rtype
None
-
Add
()¶ - Parameters
P –
- type P
gp_Pnt
- rtype
None:param V:
- type V
TopoDS_Vertex
- rtype
None
-
Added
()¶ - Returns True if the last vertex or point was succesfully added.
- rtype
bool
-
Edge
()¶ - Returns the last edge added to the polygon.
- rtype
TopoDS_Edge
-
FirstVertex
()¶ - Return type
-
LastVertex
()¶ - Return type
-
Wire
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeShape
(*args, **kwargs)¶ Bases:
OCC.Core.BRepLib.BRepLib_Command
-
Build
()¶ - This is called by Shape(). It does nothing but may be redefined.
- rtype
None
-
DescendantFaces
()¶ - returns the list of generated Faces.
- param F
- type F
TopoDS_Face
- rtype
TopTools_ListOfShape
-
FaceStatus
()¶ - returns the status of the Face after the shape creation.
- param F
- type F
TopoDS_Face
- rtype
BRepLib_ShapeModification
-
FacesFromEdges
()¶ - returns a list of the created faces from the edge <E>.
- param E
- type E
TopoDS_Edge
- rtype
TopTools_ListOfShape
-
HasDescendants
()¶ - Returns True if the Face generates new topology.
- param F
- type F
TopoDS_Face
- rtype
bool
-
NbSurfaces
()¶ - returns the number of surfaces after the shape creation.
- rtype
int
-
NewFaces
()¶ - Return the faces created for surface I.
- param I
- type I
int
- rtype
TopTools_ListOfShape
-
Shape
()¶ - Return type
-
property
thisown
¶ The membership flag
-
-
class
BRepLib_MakeShell
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Not done.
- rtype
None:param S:
- type S
Geom_Surface
- param Segment
default value is Standard_False
- type Segment
bool
- rtype
None:param S:
- type S
Geom_Surface
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- param Segment
default value is Standard_False
- type Segment
bool
- rtype
None
-
Error
()¶ - Return type
BRepLib_ShellError
-
Init
()¶ - Creates the shell from the surface and the min-max values.
- param S
- type S
Geom_Surface
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param VMin
- type VMin
float
- param VMax
- type VMax
float
- param Segment
default value is Standard_False
- type Segment
bool
- rtype
None
-
Shell
()¶ - Returns the new Shell.
- rtype
TopoDS_Shell
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeSolid
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Solid covers whole space.
- rtype
None* Make a solid from a CompSolid.
- param S
- type S
TopoDS_CompSolid
- rtype
None* Make a solid from a shell.
- param S
- type S
TopoDS_Shell
- rtype
None* Make a solid from two shells.
- param S1
- type S1
TopoDS_Shell
- param S2
- type S2
TopoDS_Shell
- rtype
None* Make a solid from three shells.
- param S1
- type S1
TopoDS_Shell
- param S2
- type S2
TopoDS_Shell
- param S3
- type S3
TopoDS_Shell
- rtype
None* Make a solid from a solid. Usefull for adding later.
- param So
- type So
TopoDS_Solid
- rtype
None* Add a shell to a solid.
- param So
- type So
TopoDS_Solid
- param S
- type S
TopoDS_Shell
- rtype
None
-
Add
()¶ - Add the shell to the current solid.
- param S
- type S
TopoDS_Shell
- rtype
None
-
Solid
()¶ - Returns the new Solid.
- rtype
TopoDS_Solid
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeVertex
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- Parameters
P –
- type P
gp_Pnt
- rtype
None
-
Vertex
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
BRepLib_MakeWire
(*args)¶ Bases:
OCC.Core.BRepLib.BRepLib_MakeShape
- NotDone MakeWire.
- rtype
None* Make a Wire from an edge.
- param E
- type E
TopoDS_Edge
- rtype
None* Make a Wire from two edges.
- param E1
- type E1
TopoDS_Edge
- param E2
- type E2
TopoDS_Edge
- rtype
None* Make a Wire from three edges.
- param E1
- type E1
TopoDS_Edge
- param E2
- type E2
TopoDS_Edge
- param E3
- type E3
TopoDS_Edge
- rtype
None* Make a Wire from four edges.
- param E1
- type E1
TopoDS_Edge
- param E2
- type E2
TopoDS_Edge
- param E3
- type E3
TopoDS_Edge
- param E4
- type E4
TopoDS_Edge
- rtype
None* Make a Wire from a Wire. Usefull for adding later.
- param W
- type W
TopoDS_Wire
- rtype
None* Add an edge to a wire.
- param W
- type W
TopoDS_Wire
- param E
- type E
TopoDS_Edge
- rtype
None
-
Add
()¶ - Add the edge <E> to the current wire.
- param E
- type E
TopoDS_Edge
- rtype
None* Add the edges of <W> to the current wire.
- param W
- type W
TopoDS_Wire
- rtype
None* Add the edges of <L> to the current wire. The edges are not to be consecutive. But they are to be all connected geometrically or topologically.
- param L
- type L
TopTools_ListOfShape
- rtype
None
-
Edge
()¶ - Returns the last edge added to the wire.
- rtype
TopoDS_Edge
-
Error
()¶ - Return type
BRepLib_WireError
-
Vertex
()¶ - Returns the last connecting vertex.
- rtype
TopoDS_Vertex
-
Wire
()¶ - Returns the new wire.
- rtype
TopoDS_Wire
-
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
breplib
¶ Bases:
object
-
static
BoundingVertex
()¶ - Calculates the bounding sphere around the set of vertexes from the theLV list. Returns the center (theNewCenter) and the radius (theNewTol) of this sphere. This can be used to construct the new vertex which covers the given set of other vertices.
- param theLV
- type theLV
NCollection_List<TopoDS_Shape>
- param theNewCenter
- type theNewCenter
gp_Pnt
- param theNewTol
- type theNewTol
float
- rtype
void
-
static
BuildCurve3d
()¶ - Computes the 3d curve for the edge <E> if it does not exist. Returns True if the curve was computed or existed. Returns False if there is no planar pcurve or the computation failed. <MaxSegment> >= 30 in approximation
- param E
- type E
TopoDS_Edge
- param Tolerance
default value is 1.0e-5
- type Tolerance
float
- param Continuity
default value is GeomAbs_C1
- type Continuity
GeomAbs_Shape
- param MaxDegree
default value is 14
- type MaxDegree
int
- param MaxSegment
default value is 0
- type MaxSegment
int
- rtype
bool
-
static
BuildCurves3d
()¶ - Computes the 3d curves for all the edges of <S> return False if one of the computation failed. <MaxSegment> >= 30 in approximation
- param S
- type S
TopoDS_Shape
- param Tolerance
- type Tolerance
float
- param Continuity
default value is GeomAbs_C1
- type Continuity
GeomAbs_Shape
- param MaxDegree
default value is 14
- type MaxDegree
int
- param MaxSegment
default value is 0
- type MaxSegment
int
- rtype
bool* Computes the 3d curves for all the edges of <S> return False if one of the computation failed.
- param S
- type S
TopoDS_Shape
- rtype
bool
-
static
BuildPCurveForEdgeOnPlane
()¶ - Builds pcurve of edge on face if the surface is plane, and updates the edge.
- param theE
- type theE
TopoDS_Edge
- param theF
- type theF
TopoDS_Face
- rtype
void* Builds pcurve of edge on face if the surface is plane, but does not update the edge. The output are the pcurve and the flag telling that pcurve was built.
- param theE
- type theE
TopoDS_Edge
- param theF
- type theF
TopoDS_Face
- param aC2D
- type aC2D
Geom2d_Curve
- param bToUpdate
- type bToUpdate
bool
- rtype
void
-
static
CheckSameRange
()¶ - checks if the Edge is same range IGNORING the same range flag of the edge Confusion argument is to compare real numbers idenpendently of any model space tolerance
- param E
- type E
TopoDS_Edge
- param Confusion
default value is 1.0e-12
- type Confusion
float
- rtype
bool
-
static
EncodeRegularity
()¶ - Encodes the Regularity of edges on a Shape. Warning: <TolAng> is an angular tolerance, expressed in Rad. Warning: If the edges’s regularity are coded before, nothing is done.
- param S
- type S
TopoDS_Shape
- param TolAng
default value is 1.0e-10
- type TolAng
float
- rtype
void* Encodes the Regularity of edges in list <LE> on the shape <S> Warning: <TolAng> is an angular tolerance, expressed in Rad. Warning: If the edges’s regularity are coded before, nothing is done.
- param S
- type S
TopoDS_Shape
- param LE
- type LE
TopTools_ListOfShape
- param TolAng
default value is 1.0e-10
- type TolAng
float
- rtype
void* Encodes the Regularity beetween <F1> and <F2> by <E> Warning: <TolAng> is an angular tolerance, expressed in Rad. Warning: If the edge’s regularity is coded before, nothing is done.
- param E
- type E
TopoDS_Edge
- param F1
- type F1
TopoDS_Face
- param F2
- type F2
TopoDS_Face
- param TolAng
default value is 1.0e-10
- type TolAng
float
- rtype
void
-
static
EnsureNormalConsistency
()¶ - Corrects the normals in Poly_Triangulation of faces, in such way that normals at nodes lying along smooth edges have the same value on both adjacent triangulations. Returns True if any correction is done.
- param S
- type S
TopoDS_Shape
- param theAngTol
default value is 0.001
- type theAngTol
float
- param ForceComputeNormals
default value is Standard_False
- type ForceComputeNormals
bool
- rtype
bool
-
static
ExtendFace
()¶ - Enlarges the face on the given value. @param theF [in] The face to extend @param theExtVal [in] The extension value @param theExtUMin [in] Defines whether to extend the face in UMin direction @param theExtUMax [in] Defines whether to extend the face in UMax direction @param theExtVMin [in] Defines whether to extend the face in VMin direction @param theExtVMax [in] Defines whether to extend the face in VMax direction @param theFExtended [in] The extended face
- param theF
- type theF
TopoDS_Face
- param theExtVal
- type theExtVal
float
- param theExtUMin
- type theExtUMin
bool
- param theExtUMax
- type theExtUMax
bool
- param theExtVMin
- type theExtVMin
bool
- param theExtVMax
- type theExtVMax
bool
- param theFExtended
- type theFExtended
TopoDS_Face
- rtype
void
-
static
FindValidRange
()¶ - For an edge defined by 3d curve and tolerance and vertices defined by points, parameters on curve and tolerances, finds a range of curve between vertices not covered by vertices tolerances. Returns false if there is no such range. Otherwise, sets theFirst and theLast as its bounds.
- param theCurve
- type theCurve
Adaptor3d_Curve
- param theTolE
- type theTolE
float
- param theParV1
- type theParV1
float
- param thePntV1
- type thePntV1
gp_Pnt
- param theTolV1
- type theTolV1
float
- param theParV2
- type theParV2
float
- param thePntV2
- type thePntV2
gp_Pnt
- param theTolV2
- type theTolV2
float
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- rtype
bool* Finds a range of 3d curve of the edge not covered by vertices tolerances. Returns false if there is no such range. Otherwise, sets theFirst and theLast as its bounds.
- param theEdge
- type theEdge
TopoDS_Edge
- param theFirst
- type theFirst
float
- param theLast
- type theLast
float
- rtype
bool
-
static
OrientClosedSolid
()¶ - Orients the solid forward and the shell with the orientation to have matter in the solid. Returns False if the solid is unOrientable (open or incoherent)
- param solid
- type solid
TopoDS_Solid
- rtype
bool
-
static
Plane
()¶ - Sets the current plane to P.
- param P
- type P
Geom_Plane
- rtype
void* Returns the current plane.
- rtype
opencascade::handle<Geom_Plane>
-
static
Precision
()¶ - Computes the max distance between edge and its 2d representation on the face. Sets the default precision. The current Precision is returned.
- param P
- type P
float
- rtype
void* Returns the default precision.
- rtype
float
-
static
ReverseSortFaces
()¶ - Sorts in LF the Faces of S on the reverse complexity of their surfaces (other,Torus,Sphere,Cone,Cylinder,Plane)
- param S
- type S
TopoDS_Shape
- param LF
- type LF
TopTools_ListOfShape
- rtype
void
-
static
SameParameter
()¶ - Computes new 2d curve(s) for the edge <theEdge> to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on the Edge.
- param theEdge
- type theEdge
TopoDS_Edge
- param Tolerance
default value is 1.0e-5
- type Tolerance
float
- rtype
void* Computes new 2d curve(s) for the edge <theEdge> to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on the Edge. theNewTol is a new tolerance of vertices of the input edge (not applied inside the algorithm, but pre-computed). If IsUseOldEdge is true then the input edge will be modified, otherwise the new copy of input edge will be created. Returns the new edge as a result, can be ignored if IsUseOldEdge is true.
- param theEdge
- type theEdge
TopoDS_Edge
- param theTolerance
- type theTolerance
float
- param theNewTol
- type theNewTol
float
- param IsUseOldEdge
- type IsUseOldEdge
bool
- rtype
TopoDS_Edge* Computes new 2d curve(s) for all the edges of <S> to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on an Edge.
- param S
- type S
TopoDS_Shape
- param Tolerance
default value is 1.0e-5
- type Tolerance
float
- param forced
default value is Standard_False
- type forced
bool
- rtype
void* Computes new 2d curve(s) for all the edges of <S> to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on an Edge. theReshaper is used to record the modifications of input shape <S> to prevent any modifications on the shape itself. Thus the input shape (and its subshapes) will not be modified, instead the reshaper will contain a modified empty-copies of original subshapes as substitutions.
- param S
- type S
TopoDS_Shape
- param theReshaper
- type theReshaper
BRepTools_ReShape
- param Tolerance
default value is 1.0e-5
- type Tolerance
float
- param forced
default value is Standard_False
- type forced
bool
- rtype
void
-
static
SameRange
()¶ - will make all the curve representation have the same range domain for the parameters. This will IGNORE the same range flag value to proceed. If there is a 3D curve there it will the range of that curve. If not the first curve representation encountered in the list will give its range to the all the other curves.
- param E
- type E
TopoDS_Edge
- param Tolerance
default value is 1.0e-5
- type Tolerance
float
- rtype
void
-
static
SortFaces
()¶ - Sorts in LF the Faces of S on the complexity of their surfaces (Plane,Cylinder,Cone,Sphere,Torus,other)
- param S
- type S
TopoDS_Shape
- param LF
- type LF
TopTools_ListOfShape
- rtype
void
-
static
UpdateEdgeTol
()¶ - Checks if the edge has a Tolerance smaller than – – – – MaxToleranceToCheck if so it will compute the radius of – the cylindrical pipe surface that MinToleranceRequest is the minimum tolerance before it is usefull to start testing. Usually it should be arround 10e-5 contains all – the curve represenation of the edge returns True if the Edge tolerance had to be updated
- param E
- type E
TopoDS_Edge
- param MinToleranceRequest
- type MinToleranceRequest
float
- param MaxToleranceToCheck
- type MaxToleranceToCheck
float
- rtype
bool
-
static
UpdateEdgeTolerance
()¶ - – Checks all the edges of the shape whose – – – Tolerance is smaller than MaxToleranceToCheck – Returns True if at least one edge was updated – MinToleranceRequest is the minimum tolerance before – it – is usefull to start testing. Usually it should be arround – 10e-5– //! Warning :The method is very slow as it checks all. Use only in interfaces or processing assimilate batch
- param S
- type S
TopoDS_Shape
- param MinToleranceRequest
- type MinToleranceRequest
float
- param MaxToleranceToCheck
- type MaxToleranceToCheck
float
- rtype
bool
-
static
UpdateInnerTolerances
()¶ - Checks tolerances of edges (including inner points) and vertices of a shape and updates them to satisfy ‘SameParameter’ condition
- param S
- type S
TopoDS_Shape
- rtype
void
-
static
UpdateTolerances
()¶ - Replaces tolerance of FACE EDGE VERTEX by the tolerance Max of their connected handling shapes. It is not necessary to use this call after SameParameter. (called in)
- param S
- type S
TopoDS_Shape
- param verifyFaceTolerance
default value is Standard_False
- type verifyFaceTolerance
bool
- rtype
void* Replaces tolerance of FACE EDGE VERTEX by the tolerance Max of their connected handling shapes. It is not necessary to use this call after SameParameter. (called in) theReshaper is used to record the modifications of input shape <S> to prevent any modifications on the shape itself. Thus the input shape (and its subshapes) will not be modified, instead the reshaper will contain a modified empty-copies of original subshapes as substitutions.
- param S
- type S
TopoDS_Shape
- param theReshaper
- type theReshaper
BRepTools_ReShape
- param verifyFaceTolerance
default value is Standard_False
- type verifyFaceTolerance
bool
- rtype
void
-
property
thisown
¶ The membership flag
-
static