OCC.Core.BRep module

BRep module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brep.html

class BRep_Builder

Bases: OCC.Core.TopoDS.TopoDS_Builder

Continuity()
  • Sets the geometric continuity on the edge.
    param E

    type E

    TopoDS_Edge

    param F1

    type F1

    TopoDS_Face

    param F2

    type F2

    TopoDS_Face

    param C

    type C

    GeomAbs_Shape

    rtype

    None* Sets the geometric continuity on the edge.

    param E

    type E

    TopoDS_Edge

    param S1

    type S1

    Geom_Surface

    param S2

    type S2

    Geom_Surface

    param L1

    type L1

    TopLoc_Location

    param L2

    type L2

    TopLoc_Location

    param C

    type C

    GeomAbs_Shape

    rtype

    None

Degenerated()
  • Sets the degenerated flag for the edge <E>.
    param E

    type E

    TopoDS_Edge

    param D

    type D

    bool

    rtype

    None

MakeEdge()
  • Makes an undefined Edge (no geometry).
    param E

    type E

    TopoDS_Edge

    rtype

    None* Makes an Edge with a curve.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom_Curve

    param Tol

    type Tol

    float

    rtype

    None* Makes an Edge with a curve and a location.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom_Curve

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Makes an Edge with a polygon 3d.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_Polygon3D

    rtype

    None* makes an Edge polygon on Triangulation.

    param E

    type E

    TopoDS_Edge

    param N

    type N

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    rtype

    None* makes an Edge polygon on Triangulation.

    param E

    type E

    TopoDS_Edge

    param N

    type N

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    None

MakeFace()
  • Makes an undefined Face.
    param F

    type F

    TopoDS_Face

    rtype

    None* Makes a Face with a surface.

    param F

    type F

    TopoDS_Face

    param S

    type S

    Geom_Surface

    param Tol

    type Tol

    float

    rtype

    None* Makes a Face with a surface and a location.

    param F

    type F

    TopoDS_Face

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Makes a Face with a triangulation. The triangulation is in the same reference system than the TFace.

    param F

    type F

    TopoDS_Face

    param T

    type T

    Poly_Triangulation

    rtype

    None

MakeVertex()
  • Makes an udefined vertex without geometry.
    param V

    type V

    TopoDS_Vertex

    rtype

    None* Makes a vertex from a 3D point.

    param V

    type V

    TopoDS_Vertex

    param P

    type P

    gp_Pnt

    param Tol

    type Tol

    float

    rtype

    None

NaturalRestriction()
  • Sets the NaturalRestriction flag of the face.
    param F

    type F

    TopoDS_Face

    param N

    type N

    bool

    rtype

    None

Range()
  • Sets the range of the 3d curve if Only3d=True, otherwise sets the range to all the representations
    param E

    type E

    TopoDS_Edge

    param First

    type First

    float

    param Last

    type Last

    float

    param Only3d

    default value is Standard_False

    type Only3d

    bool

    rtype

    None* Sets the range of the edge on the pcurve on the surface.

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    None* Sets the range of the edge on the pcurve on the face.

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    None

SameParameter()
  • Sets the same parameter flag for the edge <E>.
    param E

    type E

    TopoDS_Edge

    param S

    type S

    bool

    rtype

    None

SameRange()
  • Sets the same range flag for the edge <E>.
    param E

    type E

    TopoDS_Edge

    param S

    type S

    bool

    rtype

    None

Transfert()
  • Add to <Eout> the geometric representations of <Ein>.
    param Ein

    type Ein

    TopoDS_Edge

    param Eout

    type Eout

    TopoDS_Edge

    rtype

    None* Transfert the parameters of Vin on Ein as the parameter of Vout on Eout.

    param Ein

    type Ein

    TopoDS_Edge

    param Eout

    type Eout

    TopoDS_Edge

    param Vin

    type Vin

    TopoDS_Vertex

    param Vout

    type Vout

    TopoDS_Vertex

    rtype

    None

UpdateEdge()
  • Sets a 3D curve for the edge. If <C> is a null handle, remove any existing 3d curve.
    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom_Curve

    param Tol

    type Tol

    float

    rtype

    None* Sets a 3D curve for the edge. If <C> is a null handle, remove any existing 3d curve.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom_Curve

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Sets a pcurve for the edge on the face. If <C> is a null handle, remove any existing pcurve.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom2d_Curve

    param F

    type F

    TopoDS_Face

    param Tol

    type Tol

    float

    rtype

    None* Sets pcurves for the edge on the closed face. If <C1> or <C2> is a null handle, remove any existing pcurve.

    param E

    type E

    TopoDS_Edge

    param C1

    type C1

    Geom2d_Curve

    param C2

    type C2

    Geom2d_Curve

    param F

    type F

    TopoDS_Face

    param Tol

    type Tol

    float

    rtype

    None* Sets a pcurve for the edge on the face. If <C> is a null handle, remove any existing pcurve.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Sets a pcurve for the edge on the face. If <C> is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    param Pf

    type Pf

    gp_Pnt2d

    param Pl

    type Pl

    gp_Pnt2d

    rtype

    None* Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve.

    param E

    type E

    TopoDS_Edge

    param C1

    type C1

    Geom2d_Curve

    param C2

    type C2

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Sets pcurves for the edge on the closed surface. <C1> or <C2> is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation

    param E

    type E

    TopoDS_Edge

    param C1

    type C1

    Geom2d_Curve

    param C2

    type C2

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    param Pf

    type Pf

    gp_Pnt2d

    param Pl

    type Pl

    gp_Pnt2d

    rtype

    None* Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_Polygon3D

    rtype

    None* Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_Polygon3D

    param L

    type L

    TopLoc_Location

    rtype

    None* Changes an Edge polygon on Triangulation.

    param E

    type E

    TopoDS_Edge

    param N

    type N

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    rtype

    None* Changes an Edge polygon on Triangulation.

    param E

    type E

    TopoDS_Edge

    param N

    type N

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    None* Changes an Edge polygon on Triangulation.

    param E

    type E

    TopoDS_Edge

    param N1

    type N1

    Poly_PolygonOnTriangulation

    param N2

    type N2

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    rtype

    None* Changes an Edge polygon on Triangulation.

    param E

    type E

    TopoDS_Edge

    param N1

    type N1

    Poly_PolygonOnTriangulation

    param N2

    type N2

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    None* Changes Edge polygon on a face.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_Polygon2D

    param S

    type S

    TopoDS_Face

    rtype

    None* Changes Edge polygon on a face.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_Polygon2D

    param S

    type S

    Geom_Surface

    param T

    type T

    TopLoc_Location

    rtype

    None* Changes Edge polygons on a face. //! A null Polygon removes the 2d Polygon.

    param E

    type E

    TopoDS_Edge

    param P1

    type P1

    Poly_Polygon2D

    param P2

    type P2

    Poly_Polygon2D

    param S

    type S

    TopoDS_Face

    rtype

    None* Changes Edge polygons on a face. //! A null Polygon removes the 2d Polygon.

    param E

    type E

    TopoDS_Edge

    param P1

    type P1

    Poly_Polygon2D

    param P2

    type P2

    Poly_Polygon2D

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    None* Updates the edge tolerance.

    param E

    type E

    TopoDS_Edge

    param Tol

    type Tol

    float

    rtype

    None

UpdateFace()
  • Updates the face F using the tolerance value Tol, surface S and location Location.
    param F

    type F

    TopoDS_Face

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Changes a face triangulation. //! A null Triangulation removes the triangulation.

    param F

    type F

    TopoDS_Face

    param T

    type T

    Poly_Triangulation

    rtype

    None* Updates the face Tolerance.

    param F

    type F

    TopoDS_Face

    param Tol

    type Tol

    float

    rtype

    None

UpdateVertex()
  • Sets a 3D point on the vertex.
    param V

    type V

    TopoDS_Vertex

    param P

    type P

    gp_Pnt

    param Tol

    type Tol

    float

    rtype

    None* Sets the parameter for the vertex on the edge curves.

    param V

    type V

    TopoDS_Vertex

    param P

    type P

    float

    param E

    type E

    TopoDS_Edge

    param Tol

    type Tol

    float

    rtype

    None* Sets the parameter for the vertex on the edge pcurve on the face.

    param V

    type V

    TopoDS_Vertex

    param P

    type P

    float

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    param Tol

    type Tol

    float

    rtype

    None* Sets the parameter for the vertex on the edge pcurve on the surface.

    param V

    type V

    TopoDS_Vertex

    param P

    type P

    float

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Tol

    type Tol

    float

    rtype

    None* Sets the parameters for the vertex on the face.

    param Ve

    type Ve

    TopoDS_Vertex

    param U

    type U

    float

    param V

    type V

    float

    param F

    type F

    TopoDS_Face

    param Tol

    type Tol

    float

    rtype

    None* Updates the vertex tolerance.

    param V

    type V

    TopoDS_Vertex

    param Tol

    type Tol

    float

    rtype

    None

property thisown

The membership flag

class BRep_Curve3D(*args)

Bases: OCC.Core.BRep.BRep_GCurve

Parameters

C

type C

Geom_Curve

param L

type L

TopLoc_Location

rtype

None

Curve3D()
Return type

opencascade::handle<Geom_Curve>:param C: :type C: Geom_Curve :rtype: void

static DownCast(t)
property thisown

The membership flag

class BRep_CurveOn2Surfaces(*args)

Bases: OCC.Core.BRep.BRep_CurveRepresentation

Parameters

S1

type S1

Geom_Surface

param S2

type S2

Geom_Surface

param L1

type L1

TopLoc_Location

param L2

type L2

TopLoc_Location

param C

type C

GeomAbs_Shape

rtype

None

Continuity()
Return type

GeomAbs_Shape:param C: :type C: GeomAbs_Shape :rtype: void

D0()
  • Raises an error.
    param U

    type U

    float

    param P

    type P

    gp_Pnt

    rtype

    None

static DownCast(t)
IsRegularity()
  • Returns True.
    rtype

    bool* A curve on two surfaces (continuity).

    param S1

    type S1

    Geom_Surface

    param S2

    type S2

    Geom_Surface

    param L1

    type L1

    TopLoc_Location

    param L2

    type L2

    TopLoc_Location

    rtype

    bool

property thisown

The membership flag

class BRep_CurveOnClosedSurface(*args)

Bases: OCC.Core.BRep.BRep_CurveOnSurface

Parameters

PC1

type PC1

Geom2d_Curve

param PC2

type PC2

Geom2d_Curve

param S

type S

Geom_Surface

param L

type L

TopLoc_Location

param C

type C

GeomAbs_Shape

rtype

None

Continuity()
Return type

GeomAbs_Shape:param C: :type C: GeomAbs_Shape :rtype: void

static DownCast(t)
IsRegularity()
  • Returns True
    rtype

    bool* A curve on two surfaces (continuity).

    param S1

    type S1

    Geom_Surface

    param S2

    type S2

    Geom_Surface

    param L1

    type L1

    TopLoc_Location

    param L2

    type L2

    TopLoc_Location

    rtype

    bool

PCurve2()
Return type

opencascade::handle<Geom2d_Curve>:param C: :type C: Geom2d_Curve :rtype: void

SetUVPoints2()
Parameters

P1

type P1

gp_Pnt2d

param P2

type P2

gp_Pnt2d

rtype

None

UVPoints2()
Parameters

P1

type P1

gp_Pnt2d

param P2

type P2

gp_Pnt2d

rtype

None

property thisown

The membership flag

class BRep_CurveOnSurface(*args)

Bases: OCC.Core.BRep.BRep_GCurve

Parameters

PC

type PC

Geom2d_Curve

param S

type S

Geom_Surface

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
IsCurveOnSurface()
  • Returns True.
    rtype

    bool* A curve in the parametric space of a surface.

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

PCurve()
Return type

opencascade::handle<Geom2d_Curve>:param C: :type C: Geom2d_Curve :rtype: void

SetUVPoints()
Parameters

P1

type P1

gp_Pnt2d

param P2

type P2

gp_Pnt2d

rtype

None

UVPoints()
Parameters

P1

type P1

gp_Pnt2d

param P2

type P2

gp_Pnt2d

rtype

None

property thisown

The membership flag

class BRep_CurveRepresentation(*args, **kwargs)

Bases: OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Continuity()
Return type

GeomAbs_Shape:param C: :type C: GeomAbs_Shape :rtype: void

Copy()
  • Return a copy of this representation.
    rtype

    opencascade::handle<BRep_CurveRepresentation>

Curve3D()
Return type

opencascade::handle<Geom_Curve>:param C: :type C: Geom_Curve :rtype: void

static DownCast(t)
IsCurve3D()
  • A 3D curve representation.
    rtype

    bool

IsCurveOnClosedSurface()
  • A curve with two parametric curves on the same surface.
    rtype

    bool

IsCurveOnSurface()
  • A curve in the parametric space of a surface.
    rtype

    bool* Is it a curve in the parametric space of <S> with location <L>.

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

IsPolygon3D()
  • A 3D polygon representation.
    rtype

    bool

IsPolygonOnClosedSurface()
  • Two 2D polygon representations in the parametric space of a surface.
    rtype

    bool

IsPolygonOnClosedTriangulation()
  • A representation by two arrays of nodes on a triangulation.
    rtype

    bool

IsPolygonOnSurface()
  • A polygon in the parametric space of a surface.
    rtype

    bool* Is it a polygon in the parametric space of <S> with location <L>.

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

IsPolygonOnTriangulation()
  • A representation by an array of nodes on a triangulation.
    rtype

    bool* Is it a polygon in the definition of <T> with location <L>.

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    bool

IsRegularity()
  • A continuity between two surfaces.
    rtype

    bool* Is it a regularity between <S1> and <S2> with location <L1> and <L2>.

    param S1

    type S1

    Geom_Surface

    param S2

    type S2

    Geom_Surface

    param L1

    type L1

    TopLoc_Location

    param L2

    type L2

    TopLoc_Location

    rtype

    bool

Location()
Return type

TopLoc_Location:param L: :type L: TopLoc_Location :rtype: None

Location2()
Return type

TopLoc_Location

PCurve()
Return type

opencascade::handle<Geom2d_Curve>:param C: :type C: Geom2d_Curve :rtype: void

PCurve2()
Return type

opencascade::handle<Geom2d_Curve>:param C: :type C: Geom2d_Curve :rtype: void

Polygon()
Return type

opencascade::handle<Poly_Polygon2D>:param P: :type P: Poly_Polygon2D :rtype: void

Polygon2()
Return type

opencascade::handle<Poly_Polygon2D>:param P: :type P: Poly_Polygon2D :rtype: void

Polygon3D()
Return type

opencascade::handle<Poly_Polygon3D>:param P: :type P: Poly_Polygon3D :rtype: void

PolygonOnTriangulation()
Return type

opencascade::handle<Poly_PolygonOnTriangulation>:param P: :type P: Poly_PolygonOnTriangulation :rtype: void

PolygonOnTriangulation2()
Return type

opencascade::handle<Poly_PolygonOnTriangulation>:param P2: :type P2: Poly_PolygonOnTriangulation :rtype: void

Surface()
Return type

opencascade::handle<Geom_Surface>

Surface2()
Return type

opencascade::handle<Geom_Surface>

Triangulation()
Return type

opencascade::handle<Poly_Triangulation>

property thisown

The membership flag

class BRep_GCurve(*args, **kwargs)

Bases: OCC.Core.BRep.BRep_CurveRepresentation

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

D0()
  • Computes the point at parameter U.
    param U

    type U

    float

    param P

    type P

    gp_Pnt

    rtype

    void

static DownCast(t)
First()
Return type

float:param F: :type F: float :rtype: None

Last()
Return type

float:param L: :type L: float :rtype: None

Range()
Parameters

First

type First

float

param Last

type Last

float

rtype

None

SetRange()
Parameters

First

type First

float

param Last

type Last

float

rtype

None

Update()
  • Recomputes any derived data after a modification. This is called when the range is modified.
    rtype

    void

property thisown

The membership flag

class BRep_ListIteratorOfListOfCurveRepresentation(*args)

Bases: object

ChangeValue()
More()
Next()
Value()
property thisown

The membership flag

class BRep_ListIteratorOfListOfPointRepresentation(*args)

Bases: object

ChangeValue()
More()
Next()
Value()
property thisown

The membership flag

class BRep_ListOfCurveRepresentation(*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 BRep_ListOfPointRepresentation(*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 BRep_PointOnCurve(*args)

Bases: OCC.Core.BRep.BRep_PointRepresentation

Parameters

P

type P

float

param C

type C

Geom_Curve

param L

type L

TopLoc_Location

rtype

None

Curve()
Return type

opencascade::handle<Geom_Curve>:param C: :type C: Geom_Curve :rtype: void

static DownCast(t)
IsPointOnCurve()
  • Returns True
    rtype

    bool:param C:

    type C

    Geom_Curve

    param L

    type L

    TopLoc_Location

    rtype

    bool

property thisown

The membership flag

class BRep_PointOnCurveOnSurface(*args)

Bases: OCC.Core.BRep.BRep_PointsOnSurface

Parameters

P

type P

float

param C

type C

Geom2d_Curve

param S

type S

Geom_Surface

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
IsPointOnCurveOnSurface()
  • Returns True
    rtype

    bool:param PC:

    type PC

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

PCurve()
Return type

opencascade::handle<Geom2d_Curve>:param C: :type C: Geom2d_Curve :rtype: void

property thisown

The membership flag

class BRep_PointOnSurface(*args)

Bases: OCC.Core.BRep.BRep_PointsOnSurface

Parameters

P1

type P1

float

param P2

type P2

float

param S

type S

Geom_Surface

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
IsPointOnSurface()
Return type

bool:param S: :type S: Geom_Surface :param L: :type L: TopLoc_Location :rtype: bool

Parameter2()
Return type

float:param P: :type P: float :rtype: void

property thisown

The membership flag

class BRep_PointRepresentation(*args, **kwargs)

Bases: OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Curve()
Return type

opencascade::handle<Geom_Curve>:param C: :type C: Geom_Curve :rtype: void

static DownCast(t)
IsPointOnCurve()
  • A point on a 3d curve.
    rtype

    bool* A point on the curve <C>.

    param C

    type C

    Geom_Curve

    param L

    type L

    TopLoc_Location

    rtype

    bool

IsPointOnCurveOnSurface()
  • A point on a 2d curve on a surface.
    rtype

    bool* A point on the 2d curve <PC> on the surface <S>.

    param PC

    type PC

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

IsPointOnSurface()
  • A point on a surface.
    rtype

    bool* A point on the surface <S>.

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

Location()
Return type

TopLoc_Location:param L: :type L: TopLoc_Location :rtype: None

PCurve()
Return type

opencascade::handle<Geom2d_Curve>:param C: :type C: Geom2d_Curve :rtype: void

Parameter()
Return type

float:param P: :type P: float :rtype: None

Parameter2()
Return type

float:param P: :type P: float :rtype: void

Surface()
Return type

opencascade::handle<Geom_Surface>:param S: :type S: Geom_Surface :rtype: void

property thisown

The membership flag

class BRep_PointsOnSurface(*args, **kwargs)

Bases: OCC.Core.BRep.BRep_PointRepresentation

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

static DownCast(t)
Surface()
Return type

opencascade::handle<Geom_Surface>:param S: :type S: Geom_Surface :rtype: void

property thisown

The membership flag

class BRep_Polygon3D(*args)

Bases: OCC.Core.BRep.BRep_CurveRepresentation

Parameters

P

type P

Poly_Polygon3D

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
Polygon3D()
Return type

opencascade::handle<Poly_Polygon3D>:param P: :type P: Poly_Polygon3D :rtype: void

property thisown

The membership flag

class BRep_PolygonOnClosedSurface(*args)

Bases: OCC.Core.BRep.BRep_PolygonOnSurface

Parameters

P1

type P1

Poly_Polygon2D

param P2

type P2

Poly_Polygon2D

param S

type S

Geom_Surface

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
Polygon2()
Return type

opencascade::handle<Poly_Polygon2D>:param P: :type P: Poly_Polygon2D :rtype: void

property thisown

The membership flag

class BRep_PolygonOnClosedTriangulation(*args)

Bases: OCC.Core.BRep.BRep_PolygonOnTriangulation

Parameters

P1

type P1

Poly_PolygonOnTriangulation

param P2

type P2

Poly_PolygonOnTriangulation

param Tr

type Tr

Poly_Triangulation

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
PolygonOnTriangulation2()
Parameters

P2

type P2

Poly_PolygonOnTriangulation

rtype

void:rtype: opencascade::handle<Poly_PolygonOnTriangulation>

property thisown

The membership flag

class BRep_PolygonOnSurface(*args)

Bases: OCC.Core.BRep.BRep_CurveRepresentation

Parameters

P

type P

Poly_Polygon2D

param S

type S

Geom_Surface

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
IsPolygonOnSurface()
  • A 2D polygon representation in the parametric space of a surface.
    rtype

    bool* A 2D polygon representation in the parametric space of a surface.

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool

Polygon()
Return type

opencascade::handle<Poly_Polygon2D>:param P: :type P: Poly_Polygon2D :rtype: void

property thisown

The membership flag

class BRep_PolygonOnTriangulation(*args)

Bases: OCC.Core.BRep.BRep_CurveRepresentation

Parameters

P

type P

Poly_PolygonOnTriangulation

param T

type T

Poly_Triangulation

param L

type L

TopLoc_Location

rtype

None

static DownCast(t)
IsPolygonOnTriangulation()
  • returns True.
    rtype

    bool* Is it a polygon in the definition of <T> with location <L>.

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    bool

PolygonOnTriangulation()
  • returns True.
    param P

    type P

    Poly_PolygonOnTriangulation

    rtype

    void:rtype: opencascade::handle<Poly_PolygonOnTriangulation>

property thisown

The membership flag

class BRep_TEdge(*args)

Bases: OCC.Core.TopoDS.TopoDS_TEdge

  • Creates an empty TEdge.
    rtype

    None

ChangeCurves()
Return type

BRep_ListOfCurveRepresentation

Curves()
Return type

BRep_ListOfCurveRepresentation

Degenerated()
Return type

bool:param S: :type S: bool :rtype: None

static DownCast(t)
SameParameter()
Return type

bool:param S: :type S: bool :rtype: None

SameRange()
Return type

bool:param S: :type S: bool :rtype: None

Tolerance()
Return type

float:param T: :type T: float :rtype: None

UpdateTolerance()
  • Sets the tolerance to the max of <T> and the current tolerance.
    param T

    type T

    float

    rtype

    None

property thisown

The membership flag

class BRep_TFace(*args)

Bases: OCC.Core.TopoDS.TopoDS_TFace

  • Creates an empty TFace.
    rtype

    None

static DownCast(t)
Location()
Return type

TopLoc_Location:param L: :type L: TopLoc_Location :rtype: None

NaturalRestriction()
Return type

bool:param N: :type N: bool :rtype: None

Surface()
Return type

opencascade::handle<Geom_Surface>:param S: :type S: Geom_Surface :rtype: None

Tolerance()
Return type

float:param T: :type T: float :rtype: None

Triangulation()
Return type

opencascade::handle<Poly_Triangulation>:param T: :type T: Poly_Triangulation :rtype: None

property thisown

The membership flag

class BRep_TVertex(*args)

Bases: OCC.Core.TopoDS.TopoDS_TVertex

Return type

None

ChangePoints()
Return type

BRep_ListOfPointRepresentation

static DownCast(t)
Pnt()
Return type

gp_Pnt:param P: :type P: gp_Pnt :rtype: None

Points()
Return type

BRep_ListOfPointRepresentation

Tolerance()
Return type

float:param T: :type T: float :rtype: None

UpdateTolerance()
  • Sets the tolerance to the max of <T> and the current tolerance.
    param T

    type T

    float

    rtype

    None

property thisown

The membership flag

class BRep_Tool

Bases: object

static Continuity()
  • Returns the continuity.
    param E

    type E

    TopoDS_Edge

    param F1

    type F1

    TopoDS_Face

    param F2

    type F2

    TopoDS_Face

    rtype

    GeomAbs_Shape* Returns the continuity.

    param E

    type E

    TopoDS_Edge

    param S1

    type S1

    Geom_Surface

    param S2

    type S2

    Geom_Surface

    param L1

    type L1

    TopLoc_Location

    param L2

    type L2

    TopLoc_Location

    rtype

    GeomAbs_Shape

static Curve()
  • Returns the 3D curve of the edge. May be a Null handle. Returns in <L> the location for the curve. In <First> and <Last> the parameter range.
    param E

    type E

    TopoDS_Edge

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    opencascade::handle<Geom_Curve>* Returns the 3D curve of the edge. May be a Null handle. In <First> and <Last> the parameter range. It can be a copy if there is a Location.

    param E

    type E

    TopoDS_Edge

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    opencascade::handle<Geom_Curve>

static CurveOnPlane()
  • For the planar surface builds the 2d curve for the edge by projection of the edge on plane. Returns a NULL handle if the surface is not planar or the projection failed.
    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    opencascade::handle<Geom2d_Curve>

static CurveOnSurface()
  • Returns the curve associated to the edge in the parametric space of the face. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.
    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    param First

    type First

    float

    param Last

    type Last

    float

    param theIsStored

    default value is NULL

    type theIsStored

    bool *

    rtype

    opencascade::handle<Geom2d_Curve>* Returns the curve associated to the edge in the parametric space of the surface. Returns a NULL handle if this curve does not exist. Returns in <First> and <Last> the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by <theIsStored> serves to indicate storage status. It is valued if the pointer is non-null.

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    param theIsStored

    default value is NULL

    type theIsStored

    bool *

    rtype

    opencascade::handle<Geom2d_Curve>* Returns in <C>, <S>, <L> a 2d curve, a surface and a location for the edge <E>. <C> and <S> are null if the edge has no curve on surface. Returns in <First> and <Last> the parameter range.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    void* Returns in <C>, <S>, <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. <C> and <S> are null if the index is out of range. Returns in <First> and <Last> the parameter range.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Geom2d_Curve

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    param Index

    type Index

    int

    rtype

    void

static Degenerated()
  • Returns True if the edge is degenerated.
    param E

    type E

    TopoDS_Edge

    rtype

    bool

static HasContinuity()
  • Returns True if the edge is on the surfaces of the two faces.
    param E

    type E

    TopoDS_Edge

    param F1

    type F1

    TopoDS_Face

    param F2

    type F2

    TopoDS_Face

    rtype

    bool* Returns True if the edge is on the surfaces.

    param E

    type E

    TopoDS_Edge

    param S1

    type S1

    Geom_Surface

    param S2

    type S2

    Geom_Surface

    param L1

    type L1

    TopLoc_Location

    param L2

    type L2

    TopLoc_Location

    rtype

    bool* Returns True if the edge has regularity on some two surfaces

    param E

    type E

    TopoDS_Edge

    rtype

    bool

static IsClosed()
  • If S is Shell, returns True if it has no free boundaries (edges). If S is Wire, returns True if it has no free ends (vertices). (Internal and External sub-shepes are ignored in these checks) If S is Edge, returns True if its vertices are the same. For other shape types returns S.Closed().
    param S

    type S

    TopoDS_Shape

    rtype

    bool* Returns True if <E> has two PCurves in the parametric space of <F>. i.e. <F> is on a closed surface and <E> is on the closing curve.

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    rtype

    bool* Returns True if <E> has two PCurves in the parametric space of <S>. i.e. <S> is a closed surface and <E> is on the closing curve.

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    bool* Returns True if <E> has two arrays of indices in the triangulation <T>.

    param E

    type E

    TopoDS_Edge

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    bool

static IsGeometric()
  • Returns True if <E> is a 3d curve or a curve on surface.
    param E

    type E

    TopoDS_Edge

    rtype

    bool

static MaxContinuity()
  • Returns the max continuity of edge between some surfaces or GeomAbs_C0 if there no such surfaces.
    param theEdge

    type theEdge

    TopoDS_Edge

    rtype

    GeomAbs_Shape

static MaxTolerance()
  • Returns the maximum tolerance of input shape subshapes.
    param theShape

    type theShape

    TopoDS_Shape

    param theSubShape

    type theSubShape

    TopAbs_ShapeEnum

    rtype

    float

static NaturalRestriction()
  • Returns the NaturalRestriction flag of the face.
    param F

    type F

    TopoDS_Face

    rtype

    bool

static Parameter()
  • Returns the parameter of <V> on <E>.
    param V

    type V

    TopoDS_Vertex

    param E

    type E

    TopoDS_Edge

    rtype

    float* Returns the parameters of the vertex on the pcurve of the edge on the face.

    param V

    type V

    TopoDS_Vertex

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    rtype

    float* Returns the parameters of the vertex on the pcurve of the edge on the surface.

    param V

    type V

    TopoDS_Vertex

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    float

static Parameters()
  • Returns the parameters of the vertex on the face.
    param V

    type V

    TopoDS_Vertex

    param F

    type F

    TopoDS_Face

    rtype

    gp_Pnt2d

static Pnt()
  • Returns the 3d point.
    param V

    type V

    TopoDS_Vertex

    rtype

    gp_Pnt

static Polygon3D()
  • Returns the 3D polygon of the edge. May be a Null handle. Returns in <L> the location for the polygon.
    param E

    type E

    TopoDS_Edge

    param L

    type L

    TopLoc_Location

    rtype

    opencascade::handle<Poly_Polygon3D>

static PolygonOnSurface()
  • Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.
    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    rtype

    opencascade::handle<Poly_Polygon2D>* Returns the polygon associated to the edge in the parametric space of the surface. Returns a NULL handle if this polygon does not exist.

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    opencascade::handle<Poly_Polygon2D>* Returns in <C>, <S>, <L> a 2d curve, a surface and a location for the edge <E>. <C> and <S> are null if the edge has no polygon on surface.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Poly_Polygon2D

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    rtype

    void* Returns in <C>, <S>, <L> the 2d curve, the surface and the location for the edge <E> of rank <Index>. <C> and <S> are null if the index is out of range.

    param E

    type E

    TopoDS_Edge

    param C

    type C

    Poly_Polygon2D

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param Index

    type Index

    int

    rtype

    void

static PolygonOnTriangulation()
  • Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist.
    param E

    type E

    TopoDS_Edge

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    opencascade::handle<Poly_PolygonOnTriangulation>* Returns in <P>, <T>, <L> a polygon on triangulation, a triangulation and a location for the edge <E>. <P> and <T> are null if the edge has no polygon on triangulation.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    rtype

    void* Returns in <P>, <T>, <L> a polygon on triangulation, a triangulation and a location for the edge <E> for the range index. <C> and <S> are null if the edge has no polygon on triangulation.

    param E

    type E

    TopoDS_Edge

    param P

    type P

    Poly_PolygonOnTriangulation

    param T

    type T

    Poly_Triangulation

    param L

    type L

    TopLoc_Location

    param Index

    type Index

    int

    rtype

    void

static Range()
  • Gets the range of the 3d curve.
    param E

    type E

    TopoDS_Edge

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    void* Gets the range of the edge on the pcurve on the surface.

    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    void* Gets the range of the edge on the pcurve on the face.

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    void

static SameParameter()
  • Returns the SameParameter flag for the edge.
    param E

    type E

    TopoDS_Edge

    rtype

    bool

static SameRange()
  • Returns the SameRange flag for the edge.
    param E

    type E

    TopoDS_Edge

    rtype

    bool

static SetUVPoints()
  • Sets the UV locations of the extremities of the edge.
    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param PFirst

    type PFirst

    gp_Pnt2d

    param PLast

    type PLast

    gp_Pnt2d

    rtype

    void* Sets the UV locations of the extremities of the edge.

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    param PFirst

    type PFirst

    gp_Pnt2d

    param PLast

    type PLast

    gp_Pnt2d

    rtype

    void

static Surface()
  • Returns the geometric surface of the face. Returns in <L> the location for the surface.
    param F

    type F

    TopoDS_Face

    param L

    type L

    TopLoc_Location

    rtype

    opencascade::handle<Geom_Surface>* Returns the geometric surface of the face. It can be a copy if there is a Location.

    param F

    type F

    TopoDS_Face

    rtype

    opencascade::handle<Geom_Surface>

static Tolerance()
  • Returns the tolerance of the face.
    param F

    type F

    TopoDS_Face

    rtype

    float* Returns the tolerance for <E>.

    param E

    type E

    TopoDS_Edge

    rtype

    float* Returns the tolerance.

    param V

    type V

    TopoDS_Vertex

    rtype

    float

static Triangulation()
  • Returns the Triangulation of the face. It is a null handle if there is no triangulation.
    param F

    type F

    TopoDS_Face

    param L

    type L

    TopLoc_Location

    rtype

    opencascade::handle<Poly_Triangulation>

static UVPoints()
  • Gets the UV locations of the extremities of the edge.
    param E

    type E

    TopoDS_Edge

    param S

    type S

    Geom_Surface

    param L

    type L

    TopLoc_Location

    param PFirst

    type PFirst

    gp_Pnt2d

    param PLast

    type PLast

    gp_Pnt2d

    rtype

    void* Gets the UV locations of the extremities of the edge.

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    param PFirst

    type PFirst

    gp_Pnt2d

    param PLast

    type PLast

    gp_Pnt2d

    rtype

    void

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()