OCC.Adaptor3d module¶
The Adaptor3d package is used to help definingreusable geometric algorithms. i.e. that can beused on curves and surfaces.It defines general services for 3 kind of objects :- the 2d curve. Curve2d- the 3d curve. Curve- the 3d surface. SurfaceThe services are :- Usual services found in Geom or Geom2d :* parameter range, value and derivatives, etc…- Continuity breakout services :* Allows to divide a curve or a surfaces inparts with a given derivation order.- Special geometries detection services :* Allows to test for special cases that canbe processed more easily :- Conics, Quadrics, Bezier, BSpline …And to get the correponding data form thepackage gp or Geom. The special typeOtherCurve means that no special case hasbeen detected and the algorithm may useonly the evaluation methods (D0, D1, …)For each category Curve2d, Curve, Surface wedefine three classes, we illustrate now theprinciples with the Curve, the same applies toCurve2d and Surface.The class Curve is the abstract root for allCurves used by algorithms, it is handled by valueand provides as deferred methods the servicesdescribed above.Some services (breakout) requires to create newcurves, this leads to memory allocationconsiderations (who create the curve, who deletesit ?). To solve this problem elegantly the curvewill return a HCurve, the HCurve is a curvehandled by reference so it will be deallocatedautomatically when it is not used.A third class GenHCurve is provided, this class isgeneric and its utility is to provide automaticgeneration of the HCurve class when you havewritten the Curve class.* Let us show an example (with 2d curves) :Imagine an algorithm to intersect curves, thisalgorithms is written to process Curve2d fromAdaptor3d :A method may look like :Intersect(C1,C2 : Curve2d from Adaptor3d);Which will look like in C++Intersect(const Adaptor2d_Curve2d& C1,const Adaptor2d_Curve2d& C2){// you can call any methodStandard_Real first1 = C1.FirstParameter();// but avoid to copy in an Adaptor3d_Curve which// is an Abstract class, use a reference or a pointerconst Adaptor3d_Curve& C = C1;const Adaptor3d_Curve pC = &C1;// If you are interseted in Intervals you must// store them in a HCurve to ensure they are kept// in memory. Then a referrence may be used.Handle(Adaptor3d_HCurve) HCI = C1.Interval(1);const Adaptor3d_Curve& CI = HCI->Curve();pC = &(HCI->Curve()); The Adaptor3d provides also Generic classesimplementing algorithmic curves and surfaces.- IsoCurve : Isoparametric curve on a surface.- CurveOnSurface : 2D curve in the parametricspace of a surface.- OffsetCurve2d : 2d offset curve- ProjectedCurve : 3d curve projected on a plane- SurfaceOfLinearExtrusion- SurfaceOfRevolutionThey are instantiated with HCurve, HSurface, HCurved2d
-
class
Adaptor3d_Curve
¶ Bases:
object
-
BSpline
()¶ Return type: Handle_Geom_BSplineCurve
-
Bezier
()¶ Return type: Handle_Geom_BezierCurve
-
Continuity
()¶ Return type: GeomAbs_Shape
-
D0
()¶ - Computes the point of parameter U on the curve.
Parameters: Return type: void
-
D1
()¶ - Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters: Return type: void
-
D2
()¶ - Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
Parameters: Return type: void
-
D3
()¶ - Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
Parameters: Return type: void
-
DN
()¶ - The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
Parameters: Return type:
-
GetType
()¶ - Returns the type of the curve in the current interval : Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
Return type: GeomAbs_CurveType
-
Intervals
()¶ - Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters: - T (TColStd_Array1OfReal &) –
- S (GeomAbs_Shape) –
Return type: void
-
NbIntervals
()¶ - Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters: S (GeomAbs_Shape) – Return type: int
-
Resolution
()¶ - Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters: R3d (float) – Return type: float
-
Trim
()¶ - Returns a curve equivalent of <self> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_CurveOnSurface
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_Curve
Return type: None Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: None - Creates a CurveOnSurface from the 2d curve <C> and the surface <S>.
Parameters: - C (Handle_Adaptor2d_HCurve2d &) –
- S (Handle_Adaptor3d_HSurface &) –
Return type: -
ChangeCurve
()¶ Return type: Handle_Adaptor2d_HCurve2d
-
ChangeSurface
()¶ Return type: Handle_Adaptor3d_HSurface
-
GetCurve
()¶ Return type: Handle_Adaptor2d_HCurve2d
-
GetSurface
()¶ Return type: Handle_Adaptor3d_HSurface
-
Load
()¶ - Changes the surface.
Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: None - Changes the 2d curve.
Parameters: C (Handle_Adaptor2d_HCurve2d &) – Return type: None
-
thisown
¶ The membership flag
-
class
Adaptor3d_HCurve
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
BSpline
()¶ Return type: Handle_Geom_BSplineCurve
-
Bezier
()¶ Return type: Handle_Geom_BezierCurve
-
Continuity
()¶ Return type: GeomAbs_Shape
-
Curve
()¶ - Returns a pointer to the Curve inside the HCurve.
Return type: Adaptor3d_Curve
-
D3
()¶ Parameters: Return type:
-
GetCurve
()¶ - Returns a pointer to the Curve inside the HCurve.
Return type: Adaptor3d_Curve
-
GetHandle
()¶
-
GetType
()¶ Return type: GeomAbs_CurveType
-
Intervals
()¶ - Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters: - T (TColStd_Array1OfReal &) –
- S (GeomAbs_Shape) –
Return type:
-
Trim
()¶ - Returns a curve equivalent of <self> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. //! If <First> >= <Last>
Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HCurveOnSurface
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_HCurve
Return type: None Parameters: C (Adaptor3d_CurveOnSurface &) – Return type: None -
ChangeCurve
()¶ Return type: Adaptor3d_CurveOnSurface
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HIsoCurve
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_HCurve
Return type: None Parameters: C (Adaptor3d_IsoCurve &) – Return type: None -
ChangeCurve
()¶ Return type: Adaptor3d_IsoCurve
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HOffsetCurve
(*args)¶ Bases:
OCC.Adaptor2d.Adaptor2d_HCurve2d
Return type: None Parameters: C (Adaptor3d_OffsetCurve &) – Return type: None -
ChangeCurve2d
()¶ Return type: Adaptor3d_OffsetCurve
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HSurface
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
BSpline
()¶ Return type: Handle_Geom_BSplineSurface
-
BasisCurve
()¶ Return type: Handle_Adaptor3d_HCurve
-
BasisSurface
()¶ Return type: Handle_Adaptor3d_HSurface
-
Bezier
()¶ Return type: Handle_Geom_BezierSurface
-
Cylinder
()¶ Return type: gp_Cylinder
-
D1
()¶ Parameters: Return type:
-
D2
()¶ Parameters: Return type:
-
D3
()¶ Parameters: Return type:
-
GetHandle
()¶
-
GetType
()¶ Return type: GeomAbs_SurfaceType
-
Surface
()¶ - Returns a reference to the Surface inside the HSurface.
Return type: Adaptor3d_Surface
-
UContinuity
()¶ Return type: GeomAbs_Shape
-
UTrim
()¶ Parameters: Return type:
-
VContinuity
()¶ Return type: GeomAbs_Shape
-
VTrim
()¶ Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HSurfaceOfLinearExtrusion
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_HSurface
Return type: None Parameters: S (Adaptor3d_SurfaceOfLinearExtrusion &) – Return type: None -
ChangeSurface
()¶ Return type: Adaptor3d_SurfaceOfLinearExtrusion
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HSurfaceOfRevolution
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_HSurface
Return type: None Parameters: S (Adaptor3d_SurfaceOfRevolution &) – Return type: None -
ChangeSurface
()¶ Return type: Adaptor3d_SurfaceOfRevolution
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_HSurfaceTool
¶ Bases:
object
-
static
BSpline
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Geom_BSplineSurface
-
static
BasisCurve
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HCurve¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Adaptor3d_HCurve
-
static
BasisSurface
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HSurface¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Adaptor3d_HSurface
-
static
Bezier
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Geom_BezierSurface
-
static
Cylinder
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: gp_Cylinder
-
static
D0
()¶ Parameters: Return type: void
-
static
D1
()¶ Parameters: Return type: void
-
static
D2
()¶ Parameters: Return type: void
-
static
D3
()¶ Parameters: Return type: void
-
static
DN
()¶ Parameters: Return type:
-
static
GetType
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: GeomAbs_SurfaceType
-
static
NbSamplesU
()¶ Parameters: Return type: Return type:
-
static
NbSamplesV
()¶ Parameters: Return type: Return type:
-
static
NbUIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- Sh (GeomAbs_Shape) –
Return type:
-
static
NbVIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- Sh (GeomAbs_Shape) –
Return type:
-
static
UIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- T (TColStd_Array1OfReal &) –
- Sh (GeomAbs_Shape) –
Return type: void
-
static
UTrim
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HSurface¶ - If <First> >= <Last>
Parameters: Return type:
-
static
VIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- T (TColStd_Array1OfReal &) –
- Sh (GeomAbs_Shape) –
Return type: void
-
static
VTrim
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HSurface¶ - If <First> >= <Last>
Parameters: Return type:
-
static
Value
()¶ Parameters: Return type:
-
thisown
¶ The membership flag
-
static
-
Adaptor3d_HSurfaceTool_AxeOfRevolution
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: gp_Ax1
-
Adaptor3d_HSurfaceTool_BSpline
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Geom_BSplineSurface
-
Adaptor3d_HSurfaceTool_BasisCurve
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HCurve¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Adaptor3d_HCurve
-
Adaptor3d_HSurfaceTool_BasisSurface
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HSurface¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Adaptor3d_HSurface
-
Adaptor3d_HSurfaceTool_Bezier
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: Handle_Geom_BezierSurface
-
Adaptor3d_HSurfaceTool_Cylinder
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: gp_Cylinder
-
Adaptor3d_HSurfaceTool_D0
()¶ Parameters: Return type: void
-
Adaptor3d_HSurfaceTool_D1
()¶ Parameters: Return type: void
-
Adaptor3d_HSurfaceTool_D2
()¶ Parameters: Return type: void
-
Adaptor3d_HSurfaceTool_D3
()¶ Parameters: Return type: void
-
Adaptor3d_HSurfaceTool_DN
()¶ Parameters: Return type:
-
Adaptor3d_HSurfaceTool_FirstUParameter
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: float
-
Adaptor3d_HSurfaceTool_FirstVParameter
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: float
-
Adaptor3d_HSurfaceTool_GetType
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: GeomAbs_SurfaceType
-
Adaptor3d_HSurfaceTool_LastUParameter
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: float
-
Adaptor3d_HSurfaceTool_LastVParameter
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: float
-
Adaptor3d_HSurfaceTool_NbSamplesU
()¶ Parameters: Return type: Return type:
-
Adaptor3d_HSurfaceTool_NbSamplesV
()¶ Parameters: Return type: Return type:
-
Adaptor3d_HSurfaceTool_NbUIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- Sh (GeomAbs_Shape) –
Return type:
-
Adaptor3d_HSurfaceTool_NbVIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- Sh (GeomAbs_Shape) –
Return type:
-
Adaptor3d_HSurfaceTool_OffsetValue
()¶ Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: float
-
Adaptor3d_HSurfaceTool_UIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- T (TColStd_Array1OfReal &) –
- Sh (GeomAbs_Shape) –
Return type: void
-
Adaptor3d_HSurfaceTool_UResolution
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- R3d (float) –
Return type:
-
Adaptor3d_HSurfaceTool_UTrim
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HSurface¶ - If <First> >= <Last>
Parameters: Return type:
-
Adaptor3d_HSurfaceTool_VIntervals
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- T (TColStd_Array1OfReal &) –
- Sh (GeomAbs_Shape) –
Return type: void
-
Adaptor3d_HSurfaceTool_VResolution
()¶ Parameters: - S (Handle_Adaptor3d_HSurface &) –
- R3d (float) –
Return type:
-
Adaptor3d_HSurfaceTool_VTrim
(*args) → OCC.Adaptor3d.Handle_Adaptor3d_HSurface¶ - If <First> >= <Last>
Parameters: Return type:
-
Adaptor3d_HSurfaceTool_Value
()¶ Parameters: Return type:
-
class
Adaptor3d_HVertex
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
Return type: Parameters: Return type: -
GetHandle
()¶
-
Orientation
()¶ Return type: TopAbs_Orientation
-
Resolution
()¶ - Parametric resolution (2d).
Parameters: C (Handle_Adaptor2d_HCurve2d &) – Return type: float
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_InterFunc
(*args)¶ Bases:
OCC.math.math_FunctionWithDerivative
- build the function U(t)=FixVal if Fix =1 or V(t)=FixVal if Fix=2
Parameters: Return type: -
thisown
¶ The membership flag
-
class
Adaptor3d_IsoCurve
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_Curve
- The iso is set to NoneIso.
Return type: None - The surface is loaded. The iso is set to NoneIso.
Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: None - Creates an IsoCurve curve. Iso defines the type (isoU or isoU) Param defines the value of the iso. The bounds of the iso are the bounds of the surface.
Parameters: - S (Handle_Adaptor3d_HSurface &) –
- Iso (GeomAbs_IsoType) –
- Param (float) –
Return type: - Create an IsoCurve curve. Iso defines the type (isoU or isov). Param defines the value of the iso. WFirst,WLast define the bounds of the iso.
Parameters: Return type: -
Iso
()¶ Return type: GeomAbs_IsoType
-
Load
()¶ - Changes the surface. The iso is reset to NoneIso.
Parameters: S (Handle_Adaptor3d_HSurface &) – Return type: None - Changes the iso on the current surface.
Parameters: - Iso (GeomAbs_IsoType) –
- Param (float) –
Return type: - Changes the iso on the current surface.
Parameters: Return type:
-
Surface
()¶ Return type: Handle_Adaptor3d_HSurface
-
thisown
¶ The membership flag
-
class
Adaptor3d_OffsetCurve
(*args)¶ Bases:
OCC.Adaptor2d.Adaptor2d_Curve2d
- The Offset is set to 0.
Return type: None - The curve is loaded. The Offset is set to 0.
Parameters: C (Handle_Adaptor2d_HCurve2d &) – Return type: None - Creates an OffsetCurve curve. The Offset is set to Offset.
Parameters: - C (Handle_Adaptor2d_HCurve2d &) –
- Offset (float) –
Return type: - Create an Offset curve. WFirst,WLast define the bounds of the Offset curve.
Parameters: Return type: -
Curve
()¶ Return type: Handle_Adaptor2d_HCurve2d
-
Load
()¶ - Changes the curve. The Offset is reset to 0.
Parameters: S (Handle_Adaptor2d_HCurve2d &) – Return type: None - Changes the Offset on the current Curve.
Parameters: Offset (float) – Return type: None - Changes the Offset Curve on the current Curve.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
Adaptor3d_Surface
¶ Bases:
object
-
BSpline
()¶ Return type: Handle_Geom_BSplineSurface
-
BasisCurve
()¶ Return type: Handle_Adaptor3d_HCurve
-
BasisSurface
()¶ Return type: Handle_Adaptor3d_HSurface
-
Bezier
()¶ Return type: Handle_Geom_BezierSurface
-
Cylinder
()¶ Return type: gp_Cylinder
-
D0
()¶ - Computes the point of parameters U,V on the surface.
Parameters: Return type: void
-
D1
()¶ - Computes the point and the first derivatives on the surface. Raised if the continuity of the current intervals is not C1.
Parameters: Return type: void
-
D2
()¶ - Computes the point, the first and second derivatives on the surface. Raised if the continuity of the current intervals is not C2.
Parameters: Return type: void
-
D3
()¶ - Computes the point, the first, second and third derivatives on the surface. Raised if the continuity of the current intervals is not C3.
Parameters: Return type: void
-
DN
()¶ - Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). Raised if the current U interval is not not CNu and the current V interval is not CNv. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0.
Parameters: Return type:
-
GetType
()¶ - Returns the type of the surface : Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface
Return type: GeomAbs_SurfaceType
-
NbUIntervals
()¶ - Returns the number of U intervals for continuity <S>. May be one if UContinuity(me) >= <S>
Parameters: S (GeomAbs_Shape) – Return type: int
-
NbVIntervals
()¶ - Returns the number of V intervals for continuity <S>. May be one if VContinuity(me) >= <S>
Parameters: S (GeomAbs_Shape) – Return type: int
-
UContinuity
()¶ Return type: GeomAbs_Shape
-
UIntervals
()¶ - Returns the intervals with the requested continuity in the U direction.
Parameters: - T (TColStd_Array1OfReal &) –
- S (GeomAbs_Shape) –
Return type: void
-
UResolution
()¶ - Returns the parametric U resolution corresponding to the real space resolution <R3d>.
Parameters: R3d (float) – Return type: float
-
UTrim
()¶ - Returns a surface trimmed in the U direction equivalent of <self> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
Parameters: Return type:
-
VContinuity
()¶ Return type: GeomAbs_Shape
-
VIntervals
()¶ - Returns the intervals with the requested continuity in the V direction.
Parameters: - T (TColStd_Array1OfReal &) –
- S (GeomAbs_Shape) –
Return type: void
-
VResolution
()¶ - Returns the parametric V resolution corresponding to the real space resolution <R3d>.
Parameters: R3d (float) – Return type: float
-
VTrim
()¶ - Returns a surface trimmed in the V direction between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
Parameters: Return type:
-
Value
()¶ - Computes the point of parameters U,V on the surface.
Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
Adaptor3d_SurfaceOfLinearExtrusion
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_Surface
Return type: None - The Curve is loaded.
Parameters: C (Handle_Adaptor3d_HCurve &) – Return type: None - Thew Curve and the Direction are loaded.
Parameters: - C (Handle_Adaptor3d_HCurve &) –
- V (gp_Dir) –
Return type: -
Load
()¶ - Changes the Curve
Parameters: C (Handle_Adaptor3d_HCurve &) – Return type: None - Changes the Direction
Parameters: V (gp_Dir) – Return type: None
-
thisown
¶ The membership flag
-
class
Adaptor3d_SurfaceOfRevolution
(*args)¶ Bases:
OCC.Adaptor3d.Adaptor3d_Surface
Return type: None - The Curve is loaded.
Parameters: C (Handle_Adaptor3d_HCurve &) – Return type: None - The Curve and the Direction are loaded.
Parameters: - C (Handle_Adaptor3d_HCurve &) –
- V (gp_Ax1) –
Return type: -
Load
()¶ - Changes the Curve
Parameters: C (Handle_Adaptor3d_HCurve &) – Return type: None - Changes the Direction
Parameters: V (gp_Ax1) – Return type: None
-
thisown
¶ The membership flag
-
class
Adaptor3d_TopolTool
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
Return type: None Parameters: Surface (Handle_Adaptor3d_HSurface &) – Return type: None -
BSplSamplePnts
()¶ - compute the sample-points for the intersections algorithms by adaptive algorithm for BSpline surfaces - is used in SamplePnts theDefl is a requred deflection theNUmin, theNVmin are minimal nb points for U and V.
Parameters: Return type: void
-
Classify
()¶ Parameters: Return type: TopAbs_State
-
ComputeSamplePoints
()¶ Return type: void
-
Edge
()¶ Return type: Standard_Address
-
GetHandle
()¶
-
Has3d
()¶ - answers if arcs and vertices may have 3d representations, so that we could use Tol3d and Pnt methods.
Return type: bool
-
Identical
()¶ - Returns True if the vertices V1 and V2 are identical. This method does not take the orientation of the vertices in account.
Parameters: - V1 (Handle_Adaptor3d_HVertex &) –
- V2 (Handle_Adaptor3d_HVertex &) –
Return type:
-
Init
()¶ Return type: void
-
InitVertexIterator
()¶ Return type: void
-
Initialize
()¶ Return type: void
Parameters: - S (Handle_Adaptor3d_HSurface &) –
- Curve (Handle_Adaptor2d_HCurve2d &) –
Return type: void
Return type: void
-
IsThePointOn
()¶ Parameters: Return type:
-
Next
()¶ Return type: void
-
NextVertex
()¶ Return type: void
-
Orientation
()¶ - If the function returns the orientation of the arc. If the orientation is FORWARD or REVERSED, the arc is a ‘real’ limit of the surface. If the orientation is INTERNAL or EXTERNAL, the arc is considered as an arc on the surface.
Parameters: C (Handle_Adaptor2d_HCurve2d &) – Return type: TopAbs_Orientation - Returns the orientation of the vertex V. The vertex has been found with an exploration on a given arc. The orientation is the orientation of the vertex on this arc.
Parameters: V (Handle_Adaptor3d_HVertex &) – Return type: TopAbs_Orientation
-
Pnt
()¶ - returns 3d point of the vertex V
Parameters: V (Handle_Adaptor3d_HVertex &) – Return type: gp_Pnt
-
SamplePnts
()¶ - compute the sample-points for the intersections algorithms by adaptive algorithm for BSpline surfaces. For other surfaces algorithm is the same as in method ComputeSamplePoints(), but only fill arrays of U and V sample parameters; theDefl is a requred deflection theNUmin, theNVmin are minimal nb points for U and V.
Parameters: Return type: void
-
Tol3d
()¶ - returns 3d tolerance of the arc C
Parameters: C (Handle_Adaptor2d_HCurve2d &) – Return type: float - returns 3d tolerance of the vertex V
Parameters: V (Handle_Adaptor3d_HVertex &) – Return type: float
-
UParameters
()¶ - return the set of U parameters on the surface obtained by the method SamplePnts
Parameters: theArray (TColStd_Array1OfReal &) – Return type: None
-
VParameters
()¶ - return the set of V parameters on the surface obtained by the method SamplePnts
Parameters: theArray (TColStd_Array1OfReal &) – Return type: None
-
Value
()¶ Return type: Handle_Adaptor2d_HCurve2d
-
Vertex
()¶ Return type: Handle_Adaptor3d_HVertex
-
thisown
¶ The membership flag
-
-
class
Handle_Adaptor3d_HCurve
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HCurveOnSurface
(*args)¶ Bases:
OCC.Adaptor3d.Handle_Adaptor3d_HCurve
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HIsoCurve
(*args)¶ Bases:
OCC.Adaptor3d.Handle_Adaptor3d_HCurve
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HOffsetCurve
(*args)¶ Bases:
OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HSurface
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HSurfaceOfLinearExtrusion
(*args)¶ Bases:
OCC.Adaptor3d.Handle_Adaptor3d_HSurface
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HSurfaceOfRevolution
(*args)¶ Bases:
OCC.Adaptor3d.Handle_Adaptor3d_HSurface
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_HVertex
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Adaptor3d_TopolTool
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases