OCC.GC module

class GC_MakeArcOfCircle(*args)

Bases: OCC.GC.GC_Root

  • Make an arc of circle (TrimmedCurve from Geom) from a circle between two angles Alpha1 and Alpha2 given in radiians.
Parameters:
Return type:

None

  • Make an arc of circle (TrimmedCurve from Geom) from a circle between point <P> and the angle Alpha given in radians.
Parameters:
Return type:

None

  • Make an arc of circle (TrimmedCurve from Geom) from a circle between two points P1 and P2.
Parameters:
Return type:

None

  • Make an arc of circle (TrimmedCurve from Geom) from three points P1,P2,P3 between two points P1 and P2.
Parameters:
Return type:

None

  • Make an arc of circle (TrimmedCurve from Geom) from two points P1,P2 and the tangente to the solution at the point P1. The orientation of the arc is: - the sense determined by the order of the points P1, P3 and P2; - the sense defined by the vector V; or - for other syntaxes: - the sense of Circ if Sense is true, or - the opposite sense if Sense is false. Note: Alpha1, Alpha2 and Alpha are angle values, given in radians. Warning If an error occurs (that is, when IsDone returns false), the Status function returns: - gce_ConfusedPoints if: - any 2 of the 3 points P1, P2 and P3 are coincident, or - P1 and P2 are coincident; or - gce_IntersectionError if: - P1, P2 and P3 are collinear and not coincident, or - the vector defined by the points P1 and P2 is collinear with the vector V.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_TrimmedCurve
Value()
  • Returns the constructed arc of circle. Exceptions StdFail_NotDone if no arc of circle is constructed.
Return type:Handle_Geom_TrimmedCurve
thisown

The membership flag

class GC_MakeArcOfEllipse(*args)

Bases: OCC.GC.GC_Root

  • Constructs an arc of Ellipse (TrimmedCurve from Geom) from a Ellipse between two parameters Alpha1 and Alpha2.
Parameters:
Return type:

None

  • Constructs an arc of Ellipse (TrimmedCurve from Geom) from a Ellipse between point <P> and the angle Alpha given in radians.
Parameters:
Return type:

None

  • Constructs an arc of Ellipse (TrimmedCurve from Geom) from a Ellipse between two points P1 and P2. The orientation of the arc of ellipse is: - the sense of Elips if Sense is true, or - the opposite sense if Sense is false. Notes: - Alpha1, Alpha2 and Alpha are angle values, given in radians. - IsDone always returns true.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_TrimmedCurve
Value()
  • Returns the constructed arc of ellipse.
Return type:Handle_Geom_TrimmedCurve
thisown

The membership flag

class GC_MakeArcOfHyperbola(*args)

Bases: OCC.GC.GC_Root

  • Creates an arc of Hyperbola (TrimmedCurve from Geom) from a Hyperbola between two parameters Alpha1 and Alpha2 (given in radians).
Parameters:
Return type:

None

  • Creates an arc of Hyperbola (TrimmedCurve from Geom) from a Hyperbola between point <P> and the parameter Alpha (given in radians).
Parameters:
Return type:

None

  • Creates an arc of Hyperbola (TrimmedCurve from Geom) from a Hyperbola between two points P1 and P2. The orientation of the arc of hyperbola is: - the sense of Hypr if Sense is true, or - the opposite sense if Sense is false.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_TrimmedCurve
Value()
  • Returns the constructed arc of hyperbola.
Return type:Handle_Geom_TrimmedCurve
thisown

The membership flag

class GC_MakeArcOfParabola(*args)

Bases: OCC.GC.GC_Root

  • Creates an arc of Parabola (TrimmedCurve from Geom) from a Parabola between two parameters Alpha1 and Alpha2 (given in radians).
Parameters:
Return type:

None

  • Creates an arc of Parabola (TrimmedCurve from Geom) from a Parabola between point <P> and the parameter Alpha (given in radians).
Parameters:
Return type:

None

  • Creates an arc of Parabola (TrimmedCurve from Geom) from a Parabola between two points P1 and P2.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_TrimmedCurve
Value()
  • Returns the constructed arc of parabola.
Return type:Handle_Geom_TrimmedCurve
thisown

The membership flag

class GC_MakeCircle(*args)

Bases: OCC.GC.GC_Root

  • creates a circle from a non persistent circle C by its conversion.
Parameters:C (gp_Circ) –
Return type:None
  • A2 is the local coordinates system of the circle. It is not forbidden to create a circle with Radius = 0.0 Status is ‘NegativeRadius’ if Radius < 0.
Parameters:
Return type:

None

  • Make a Circle from Geom <TheCirc> parallel to another Circ <Circ> with a distance <Dist>. If Dist is greater than zero the result is enclosing the circle <Circ>, else the result is enclosed by the circle <Circ>.
Parameters:
Return type:

None

  • Make a Circle from Geom <TheCirc> parallel to another Circ <Circ> and passing through a Pnt <Point>.
Parameters:
Return type:

None

  • Make a Circ from gp <TheCirc> passing through 3 Pnt2d <P1>,<P2>,<P3>.
Parameters:
Return type:

None

  • Make a Circle from Geom <TheCirc> with its center <Center> and the normal of its plane <Norm> and its radius <Radius>.
Parameters:
Return type:

None

  • Make a Circle from Geom <TheCirc> with its center <Center> and the normal of its plane defined by the two points <Center> and <PtAxis> and its radius <Radius>.
Parameters:
Return type:

None

  • Make a Circle from Geom <TheCirc> with its center <Center> and its radius <Radius>.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Circle
Value()
  • Returns the constructed circle. Exceptions StdFail_NotDone if no circle is constructed.
Return type:Handle_Geom_Circle
thisown

The membership flag

class GC_MakeConicalSurface(*args)

Bases: OCC.GC.GC_Root

  • A2 defines the local coordinate system of the conical surface. Ang is the conical surface semi-angle ]0, PI/2[. Radius is the radius of the circle Viso in the placement plane of the conical surface defined with ‘XAxis’ and ‘YAxis’. The ‘ZDirection’ of A2 defines the direction of the surface’s axis of symmetry. If the location point of A2 is the apex of the surface Radius = 0 . At the creation the parametrization of the surface is defined such that the normal Vector (N = D1U ^ D1V) is oriented towards the ‘outside region’ of the surface. Status is ‘NegativeRadius’ if Radius < 0.0 or ‘BadAngle’ if Ang < Resolution from gp or Ang >= PI/ - Resolution
Parameters:
Return type:

None

  • Creates a ConicalSurface from a non persistent Cone from package gp.
Parameters:C (gp_Cone) –
Return type:None
  • Make a ConicalSurface from Geom <TheCone> parallel to another ConicalSurface <Cone> and passing through a Pnt <Point>.
Parameters:
Return type:

None

  • Make a ConicalSurface from Geom <TheCone> parallel to another ConicalSurface <Cone> at the distance <Dist> which can be greater or lower than zero.
Parameters:
Return type:

None

  • Make a ConicalSurface from Geom <TheCone> passing through 3 Pnt <P1>,<P2>,<P3>. Its axis is <P1P2> and the radius of its base is the distance between <P3> and <P1P2>. The distance between <P4> and <P1P2> is the radius of the section passing through <P4>. An error iss raised if <P1>,<P2>,<P3>,<P4> are colinear or if <P3P4> is perpendicular to <P1P2> or <P3P4> is colinear to <P1P2>.
Parameters:
Return type:

None

  • Make a ConicalSurface by its axis <Axis> and and two points.
Parameters:
Return type:

None

  • Make a ConicalSurface by its axis <Axis> and and two points.
Parameters:
Return type:

None

  • Make a ConicalSurface with two points and two radius. The axis of the solution is the line passing through <P1> and <P2>. <R1> is the radius of the section passing through <P1> and <R2> the radius of the section passing through <P2>.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_ConicalSurface
Value()
  • Returns the constructed cone. Exceptions StdFail_NotDone if no cone is constructed.
Return type:Handle_Geom_ConicalSurface
thisown

The membership flag

class GC_MakeCylindricalSurface(*args)

Bases: OCC.GC.GC_Root

  • A2 defines the local coordinate system of the cylindrical surface. The ‘ZDirection’ of A2 defines the direction of the surface’s axis of symmetry. At the creation the parametrization of the surface is defined such that the normal Vector (N = D1U ^ D1V) is oriented towards the ‘outside region’ of the surface. Warnings : It is not forbidden to create a cylindrical surface with Radius = 0.0 Status is ‘NegativeRadius’ if Radius < 0.0
Parameters:
Return type:

None

  • Creates a CylindricalSurface from a non persistent Cylinder from package gp.
Parameters:C (gp_Cylinder) –
Return type:None
  • Make a CylindricalSurface from Geom <TheCylinder> parallel to another CylindricalSurface <Cylinder> and passing through a Pnt <Point>.
Parameters:
Return type:

None

  • Make a CylindricalSurface from Geom <TheCylinder> parallel to another CylindricalSurface <Cylinder> at the distance <Dist> which can be greater or lower than zero. The radius of the result is the absolute value of the radius of <Cyl> plus <Dist>
Parameters:
Return type:

None

  • Make a CylindricalSurface from Geom <TheCylinder> passing through 3 Pnt <P1>,<P2>,<P3>. Its axis is <P1P2> and its radius is the distance between <P3> and <P1P2>
Parameters:
Return type:

None

  • Make a CylindricalSurface by its axis <Axis> and radius <Radius>.
Parameters:
Return type:

None

  • Make a CylindricalSurface by its circular base.
Parameters:Circ (gp_Circ) –
Return type:None
Operator()
Return type:Handle_Geom_CylindricalSurface
Value()
  • Returns the constructed cylinder. Exceptions StdFail_NotDone if no cylinder is constructed.
Return type:Handle_Geom_CylindricalSurface
thisown

The membership flag

class GC_MakeEllipse(*args)

Bases: OCC.GC.GC_Root

  • Creates an ellipse from a non persistent ellipse E from package gp by its conversion.
Parameters:E (gp_Elips) –
Return type:None
  • Constructs an ellipse with major and minor radii MajorRadius and MinorRadius, and located in the plane defined by the ‘X Axis’ and ‘Y Axis’ of the coordinate system A2, where: - its center is the origin of A2, and - its major axis is the ‘X Axis’ of A2; Warnings : The MakeEllipse class does not prevent the construction of an ellipse where MajorRadius is equal to MinorRadius. If an error occurs (that is, when IsDone returns false), the Status function returns: - gce_InvertRadius if MajorRadius is less than MinorRadius; - gce_NegativeRadius if MinorRadius is less than 0.0; - gce_NullAxis if the points S1 and Center are coincident; or - gce_InvertAxis if: - the major radius computed with Center and S1 is less than the minor radius computed with Center, S1 and S2, or - Center, S1 and S2 are collinear.
Parameters:
Return type:

None

  • Constructs an ellipse centered on the point Center, where - the plane of the ellipse is defined by Center, S1 and S2, - its major axis is defined by Center and S1, - its major radius is the distance between Center and S1, and - its minor radius is the distance between S2 and the major axis.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Ellipse
Value()
  • Returns the constructed ellipse. Exceptions StdFail_NotDone if no ellipse is constructed.
Return type:Handle_Geom_Ellipse
thisown

The membership flag

class GC_MakeHyperbola(*args)

Bases: OCC.GC.GC_Root

  • Creates an Hyperbola from a non persistent hyperbola from package gp by conversion.
Parameters:H (gp_Hypr) –
Return type:None
  • Constructs a hyperbola centered on the origin of the coordinate system A2, with major and minor radii MajorRadius and MinorRadius, where: the plane of the hyperbola is defined by the ‘X Axis’ and ‘Y Axis’ of A2, - its major axis is the ‘X Axis’ of A2.
Parameters:
Return type:

None

  • Constructs a hyperbola centered on the point Center, where - the plane of the hyperbola is defined by Center, S1 and S2, - its major axis is defined by Center and S1, - its major radius is the distance between Center and S1, and - its minor radius is the distance between S2 and the major axis;
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Hyperbola
Value()
  • Returns the constructed hyperbola. Exceptions StdFail_NotDone if no hyperbola is constructed.
Return type:Handle_Geom_Hyperbola
thisown

The membership flag

class GC_MakeLine(*args)

Bases: OCC.GC.GC_Root

  • Creates a line located in 3D space with the axis placement A1. The Location of A1 is the origin of the line.
Parameters:A1 (gp_Ax1) –
Return type:None
  • Creates a line from a non persistent line from package gp.
Parameters:L (gp_Lin) –
Return type:None
  • P is the origin and V is the direction of the line.
Parameters:
Return type:

None

  • Make a Line from Geom <TheLin> parallel to another Lin <Lin> and passing through a Pnt <Point>.
Parameters:
Return type:

None

  • Make a Line from Geom <TheLin> passing through 2 Pnt <P1>,<P2>. It returns false if <p1> and <P2> are confused. Warning If the points P1 and P2 are coincident (that is, when IsDone returns false), the Status function returns gce_ConfusedPoints.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Line
Value()
  • Returns the constructed line. Exceptions StdFail_NotDone if no line is constructed.
Return type:Handle_Geom_Line
thisown

The membership flag

class GC_MakeMirror(*args)

Bases: object

Parameters:
Return type:

None

Return type:

None

Return type:

None

  • Make a symetry transformation af axis defined by <Point> and <Direc>.
Parameters:
Return type:

None

  • Make a symetry transformation of plane <Plane>.
Parameters:Plane (gp_Pln) –
Return type:None
  • Make a symetry transformation of plane <Plane>.
Parameters:Plane (gp_Ax2) –
Return type:None
Operator()
Return type:Handle_Geom_Transformation
Value()
  • Returns the constructed transformation.
Return type:Handle_Geom_Transformation
thisown

The membership flag

class GC_MakePlane(*args)

Bases: OCC.GC.GC_Root

  • Creates a plane located in 3D space with an axis placement two axis. The ‘ZDirection’ of ‘A2’ is the direction normal to the plane. The ‘Location’ point of ‘A2’ is the origin of the plane. The ‘XDirection’ and ‘YDirection’ of ‘A2’ define the directions of the U isoparametric and V isoparametric curves.
Parameters:A2 (gp_Ax2) –
Return type:None
  • Creates a plane from a non persistent plane from package gp.
Parameters:Pl (gp_Pln) –
Return type:None
  • P is the ‘Location’ point or origin of the plane. V is the direction normal to the plane.
Parameters:
Return type:

None

  • Creates a plane from its cartesian equation : Ax + By + Cz + D = 0.0 Status is ‘BadEquation’ if Sqrt (A*A + B*B + C*C) <= Resolution from gp
Parameters:
Return type:

None

  • Make a Plane from Geom <ThePlane> parallel to another Pln <Pln> and passing through a Pnt <Point>.
Parameters:
Return type:

None

  • Make a Plane from Geom <ThePlane> parallel to another Pln <Pln> at the distance <Dist> which can be greater or lower than zero. In the first case the result is at the distance <Dist> to the plane <Pln> in the direction of the normal to <Pln>. Otherwize it is in the oposite direction.
Parameters:
Return type:

None

  • Make a Plane from Geom <ThePlane> passing through 3 Pnt <P1>,<P2>,<P3>. It returns false if <P1> <P2> <P3> are confused.
Parameters:
Return type:

None

  • Make a Plane passing through the location of <Axis>and normal to the Direction of <Axis>.
Parameters:Axis (gp_Ax1) –
Return type:None
Operator()
Return type:Handle_Geom_Plane
Value()
  • Returns the constructed plane. Exceptions StdFail_NotDone if no plane is constructed.
Return type:Handle_Geom_Plane
thisown

The membership flag

class GC_MakeRotation(*args)

Bases: object

  • Constructs a rotation through angle Angle about the axis defined by the line Line.
Parameters:
Return type:

None

  • Constructs a rotation through angle Angle about the axis defined by the axis Axis.
Parameters:
Return type:

None

  • Constructs a rotation through angle Angle about the axis defined by the point Point and the unit vector Direc.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Transformation
Value()
  • Returns the constructed transformation.
Return type:Handle_Geom_Transformation
thisown

The membership flag

class GC_MakeScale(*args)

Bases: object

  • Constructs a scaling transformation with - Point as the center of the transformation, and - Scale as the scale factor.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Transformation
Value()
  • Returns the constructed transformation.
Return type:Handle_Geom_Transformation
thisown

The membership flag

class GC_MakeSegment(*args)

Bases: OCC.GC.GC_Root

  • Make a segment of Line from the 2 points <P1> and <P2>. It returns NullObject if <P1> and <P2> are confused.
Parameters:
Return type:

None

  • Make a segment of Line from the line <Line1> between the two parameters U1 and U2. It returns NullObject if <U1> is equal <U2>.
Parameters:
Return type:

None

  • Make a segment of Line from the line <Line1> between the point <Point> and the parameter Ulast. It returns NullObject if <U1> is equal <U2>.
Parameters:
Return type:

None

  • Make a segment of Line from the line <Line1> between the two points <P1> and <P2>. It returns NullObject if <U1> is equal <U2>.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_TrimmedCurve
Value()
  • Returns the constructed line segment.
Return type:Handle_Geom_TrimmedCurve
thisown

The membership flag

class GC_MakeTranslation(*args)

Bases: object

  • Constructs a translation along the vector ‘ Vect ‘
Parameters:Vect (gp_Vec) –
Return type:None
  • Constructs a translation along the vector (Point1,Point2) defined from the point Point1 to the point Point2.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_Transformation
Value()
  • Returns the constructed transformation.
Return type:Handle_Geom_Transformation
thisown

The membership flag

class GC_MakeTrimmedCone(*args)

Bases: OCC.GC.GC_Root

  • Make a RectangularTrimmedSurface <TheCone> from Geom It is trimmed by P3 and P4. Its axis is <P1P2> and the radius of its base is the distance between <P3> and <P1P2>. The distance between <P4> and <P1P2> is the radius of the section passing through <P4>. An error iss raised if <P1>,<P2>,<P3>,<P4> are colinear or if <P3P4> is perpendicular to <P1P2> or <P3P4> is colinear to <P1P2>.
Parameters:
Return type:

None

  • Make a RectangularTrimmedSurface from Geom <TheCone> from a cone and trimmed by two points P1 and P2 and the two radius <R1> and <R2> of the sections passing through <P1> an <P2>. Warning If an error occurs (that is, when IsDone returns false), the Status function returns: - gce_ConfusedPoints if points P1 and P2, or P3 and P4, are coincident; - gce_NullAngle if: - the lines joining P1 to P2 and P3 to P4 are parallel, or - R1 and R2 are equal (i.e. their difference is less than gp::Resolution()); - gce_NullRadius if: - the line joining P1 to P2 is perpendicular to the line joining P3 to P4, or - the points P1, P2, P3 and P4 are collinear; - gce_NegativeRadius if R1 or R2 is negative; or - gce_NullAxis if points P1 and P2 are coincident (2nd syntax only).
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_RectangularTrimmedSurface
Value()
  • Returns the constructed trimmed cone. StdFail_NotDone if no trimmed cone is constructed.
Return type:Handle_Geom_RectangularTrimmedSurface
thisown

The membership flag

class GC_MakeTrimmedCylinder(*args)

Bases: OCC.GC.GC_Root

  • Make a cylindricalSurface <Cyl> from Geom Its axis is is <P1P2> and its radius is the distance between <P3> and <P1P2>. The height is the distance between P1 and P2.
Parameters:
Return type:

None

  • Make a cylindricalSurface <Cyl> from gp by its base <Circ>. Its axis is the normal to the plane defined bi <Circ>. <Height> can be greater than zero or lower than zero. In the first case the V parametric direction of the result has the same orientation as the normal to <Circ>. In the other case it has the opposite orientation.
Parameters:
Return type:

None

  • Make a cylindricalSurface <Cyl> from gp by its axis <A1> and its radius <Radius>. It returns NullObject if <Radius> is lower than zero. <Height> can be greater than zero or lower than zero. In the first case the V parametric direction of the result has the same orientation as <A1>. In the other case it has the opposite orientation.
Parameters:
Return type:

None

  • Make a RectangularTrimmedSurface <Cylinder> from gp by a cylinder from gp. It is trimmed by the point <P> and the heigh <Heigh>. <Height> can be greater than zero or lower than zero. in the first case the limit section is in the side of the positives V paramters of <Cyl> and in the other side if <Heigh> is lower than zero.
Parameters:
Return type:

None

  • Make a RectangularTrimmedSurface <Cylinder> from gp by a cylinder from gp. It is trimmed by the two points <P1> and <P2>. Warning If an error occurs (that is, when IsDone returns false), the Status function returns: - gce_NegativeRadius if Radius is less than 0.0, or - gce_ConfusedPoints if the points P1 and P2 are coincident. - gce_ColinearPoints if the points P1, P2 and P3 are collinear.
Parameters:
Return type:

None

Operator()
Return type:Handle_Geom_RectangularTrimmedSurface
Value()
  • Returns the constructed trimmed cylinder. Exceptions StdFail_NotDone if no trimmed cylinder is constructed.
Return type:Handle_Geom_RectangularTrimmedSurface
thisown

The membership flag

class GC_Root

Bases: object

IsDone()
  • Returns true if the construction is successful.
Return type:bool
Status()
  • Returns the status of the construction: - gce_Done, if the construction is successful, or - another value of the gce_ErrorType enumeration indicating why the construction failed.
Return type:gce_ErrorType
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases