OCC.Core.ShapeUpgrade module¶
ShapeUpgrade module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_shapeupgrade.html
-
class
ShapeUpgrade_ClosedEdgeDivide
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_EdgeDivide
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ClosedFaceDivide
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_FaceDivide
- Creates empty constructor.
- rtype
None* Initialize by a Face.
- param F
- type F
TopoDS_Face &
- rtype
None
-
static
DownCast
(t)¶
-
GetNbSplitPoints
()¶ - Returns the number of splitting points
- rtype
int
-
SetNbSplitPoints
()¶ - Sets the number of cutting lines by which closed face will be splitted. The resulting faces will be num+1.
- param num
- type num
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ConvertCurve2dToBezier
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitCurve2d
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
SplitParams
()¶ - Returns the list of splitted parameters in original curve parametrisation.
- rtype
opencascade::handle<TColStd_HSequenceOfReal>
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ConvertCurve3dToBezier
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitCurve3d
- Empty constructor
- rtype
None
-
static
DownCast
(t)¶
-
GetCircleMode
()¶ - Returns the Geom_Circle conversion mode.
- rtype
bool
-
GetConicMode
()¶ - Performs converting and computes the resulting shape.
- rtype
bool
-
GetLineMode
()¶ - Returns the Geom_Line conversion mode.
- rtype
bool
-
SetCircleMode
()¶ - Sets mode for conversion Geom_Circle to bezier.
- param mode
- type mode
bool
- rtype
None
-
SetConicMode
()¶ - Returns the Geom_Conic conversion mode.
- param mode
- type mode
bool
- rtype
None
-
SetLineMode
()¶ - Sets mode for conversion Geom_Line to bezier.
- param mode
- type mode
bool
- rtype
None
-
SplitParams
()¶ - Returns the list of splitted parameters in original curve parametrisation.
- rtype
opencascade::handle<TColStd_HSequenceOfReal>
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ConvertSurfaceToBezierBasis
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitSurface
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
GetBSplineMode
()¶ - Returns the Geom_BSplineSurface conversion mode.
- rtype
bool
-
GetExtrusionMode
()¶ - Returns the Geom_SurfaceOfLinearExtrusion conversion mode.
- rtype
bool
-
GetPlaneMode
()¶ - Returns the Geom_Pline conversion mode.
- rtype
bool
-
GetRevolutionMode
()¶ - Returns the Geom_SurfaceOfRevolution conversion mode.
- rtype
bool
-
Segments
()¶ - Returns the grid of bezier based surfaces correspondent to original surface.
- rtype
opencascade::handle<ShapeExtend_CompositeSurface>
-
SetBSplineMode
()¶ - Sets mode for conversion Geom_BSplineSurface to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetExtrusionMode
()¶ - Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetPlaneMode
()¶ - Sets mode for conversion Geom_Plane to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetRevolutionMode
()¶ - Sets mode for conversion Geom_SurfaceOfRevolution to Bezier
- param mode
- type mode
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_EdgeDivide
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_Tool
- Empty constructor
- rtype
None
-
Compute
()¶ - Parameters
E –
- type E
TopoDS_Edge &
- rtype
bool
-
static
DownCast
(t)¶
-
GetSplitCurve2dTool
()¶ - Returns the tool for splitting pcurves.
- rtype
opencascade::handle<ShapeUpgrade_SplitCurve2d>
-
GetSplitCurve3dTool
()¶ - Returns the tool for splitting 3D curves.
- rtype
opencascade::handle<ShapeUpgrade_SplitCurve3d>
-
Knots2d
()¶ - Return type
opencascade::handle<TColStd_HSequenceOfReal>
-
Knots3d
()¶ - Return type
opencascade::handle<TColStd_HSequenceOfReal>
-
SetFace
()¶ - Sets supporting surface by face
- param F
- type F
TopoDS_Face &
- rtype
None
-
SetSplitCurve2dTool
()¶ - Sets the tool for splitting pcurves.
- param splitCurve2dTool
- type splitCurve2dTool
opencascade::handle<ShapeUpgrade_SplitCurve2d> &
- rtype
None
-
SetSplitCurve3dTool
()¶ - Sets the tool for splitting 3D curves.
- param splitCurve3dTool
- type splitCurve3dTool
opencascade::handle<ShapeUpgrade_SplitCurve3d> &
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_FaceDivide
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_Tool
- Creates empty constructor.
- rtype
None* Initialize by a Face.
- param F
- type F
TopoDS_Face &
- rtype
None
-
static
DownCast
(t)¶
-
GetSplitSurfaceTool
()¶ - Returns the tool for splitting surfaces. This tool must be already initialized.
- rtype
opencascade::handle<ShapeUpgrade_SplitSurface>
-
GetWireDivideTool
()¶ - Returns the tool for dividing edges on Face. This tool must be already initialized.
- rtype
opencascade::handle<ShapeUpgrade_WireDivide>
-
Init
()¶ - Initialize by a Face.
- param F
- type F
TopoDS_Face &
- rtype
None
-
Perform
()¶ - Performs splitting and computes the resulting shell The context is used to keep track of former splittings in order to keep sharings. It is updated according to modifications made.
- rtype
bool
-
Result
()¶ - Gives the resulting Shell, or Face, or Null shape if not done.
- rtype
TopoDS_Shape
-
SetSplitSurfaceTool
()¶ - Sets the tool for splitting surfaces.
- param splitSurfaceTool
- type splitSurfaceTool
opencascade::handle<ShapeUpgrade_SplitSurface> &
- rtype
None
-
SetSurfaceSegmentMode
()¶ - Purpose sets mode for trimming (segment) surface by wire UV bounds.
- param Segment
- type Segment
bool
- rtype
None
-
SetWireDivideTool
()¶ - Sets the tool for dividing edges on Face.
- param wireDivideTool
- type wireDivideTool
opencascade::handle<ShapeUpgrade_WireDivide> &
- rtype
None
-
SplitCurves
()¶ - Performs splitting of curves of all the edges in the shape and divides these edges.
- rtype
bool
-
SplitSurface
()¶ - Performs splitting of surface and computes the shell from source face.
- rtype
bool
-
Status
()¶ - Queries the status of last call to Perform OKno splitting was done (or no call to Perform) DONE1: some edges were splitted DONE2: surface was splitted DONE3: surface was modified without splitting FAIL1: some fails encountered during splitting wires FAIL2: face cannot be splitted
- param status
- type status
ShapeExtend_Status
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_FaceDivideArea
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_FaceDivide
- Creates empty constructor.
- rtype
None:param F:
- type F
TopoDS_Face &
- rtype
None
-
static
DownCast
(t)¶
-
GetMaxArea
(ShapeUpgrade_FaceDivideArea self) → Standard_Real¶
-
SetMaxArea
(ShapeUpgrade_FaceDivideArea self, Standard_Real value)¶
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_FixSmallBezierCurves
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_FixSmallCurves
- Return type
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_FixSmallCurves
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_Tool
- Return type
-
Approx
()¶ - Parameters
Curve3d –
- type Curve3d
opencascade::handle<Geom_Curve> &
- param Curve2d
- type Curve2d
opencascade::handle<Geom2d_Curve> &
- param Curve2dR
- type Curve2dR
opencascade::handle<Geom2d_Curve> &
- param First
- type First
float &
- param Last
- type Last
float &
- rtype
bool
-
static
DownCast
(t)¶
-
Init
()¶ - Parameters
theEdge –
- type theEdge
TopoDS_Edge &
- param theFace
- type theFace
TopoDS_Face &
- rtype
None
-
SetSplitCurve2dTool
()¶ - Sets the tool for splitting pcurves.
- param splitCurve2dTool
- type splitCurve2dTool
opencascade::handle<ShapeUpgrade_SplitCurve2d> &
- rtype
None
-
SetSplitCurve3dTool
()¶ - Sets the tool for splitting 3D curves.
- param splitCurve3dTool
- type splitCurve3dTool
opencascade::handle<ShapeUpgrade_SplitCurve3d> &
- rtype
None
-
Status
()¶ - Queries the status of last call to Perform OKDONE1: DONE2: FAIL1:
- param status
- type status
ShapeExtend_Status
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_RemoveInternalWires
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_Tool
- Creates empty constructor.
- rtype
None:param theShape:
- type theShape
TopoDS_Shape &
- rtype
None
-
static
DownCast
(t)¶
-
GetMinArea
(ShapeUpgrade_RemoveInternalWires self) → Standard_Real¶
-
GetRemoveFaceMode
(ShapeUpgrade_RemoveInternalWires self) → Standard_Boolean¶
-
GetResult
()¶ - Get result shape
- rtype
TopoDS_Shape
-
Init
()¶ - Initialize by a Shape.
- param theShape
- type theShape
TopoDS_Shape &
- rtype
None
-
Perform
()¶ - Removes all internal wires having area less than area specified as minimal allowed area
- rtype
bool* If specified sequence of shape contains - 1.wires then these wires will be removed if they have area less than allowed min area. 2.faces than internal wires from these faces will be removed if they have area less than allowed min area.
- param theSeqShapes
- type theSeqShapes
TopTools_SequenceOfShape &
- rtype
bool
-
RemovedFaces
()¶ - Returns sequence of removed faces.
- rtype
TopTools_SequenceOfShape
-
RemovedWires
()¶ - Returns sequence of removed faces.
- rtype
TopTools_SequenceOfShape
-
SetMinArea
(ShapeUpgrade_RemoveInternalWires self, Standard_Real value)¶
-
SetRemoveFaceMode
(ShapeUpgrade_RemoveInternalWires self, Standard_Boolean value)¶
-
Status
()¶ - Queries status of last call to Perform()OK - nothing was done :DONE1 - internal wires were removed :DONE2 - small faces were removed. :FAIL1 - initial shape is not specified :FAIL2 - specified sub-shape is not belonged to inotial shape.
- param theStatus
- type theStatus
ShapeExtend_Status
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_RemoveLocations
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Empy constructor
- rtype
None
-
static
DownCast
(t)¶
-
GetResult
()¶ - Returns shape with removed locatins.
- rtype
TopoDS_Shape
-
ModifiedShape
()¶ - Returns modified shape obtained from initial shape.
- param theInitShape
- type theInitShape
TopoDS_Shape &
- rtype
TopoDS_Shape
-
Remove
()¶ - Removes all location correspodingly to RemoveLevel.
- param theShape
- type theShape
TopoDS_Shape &
- rtype
bool
-
RemoveLevel
()¶ - sets level starting with that location will be removed.Value of level can be set to TopAbs_SHAPE,TopAbs_COMPOUND,TopAbs_SOLID,TopAbs_SHELL,TopAbs_FACE.By default TopAbs_SHAPE. In this case location will be removed for all shape types for exception of compound.
- rtype
TopAbs_ShapeEnum
-
SetRemoveLevel
()¶ - sets level starting with that location will be removed, by default TopAbs_SHAPE. In this case locations will be kept for specified shape and if specified shape is TopAbs_COMPOUND for sub-shapes of first level.
- param theLevel
- type theLevel
TopAbs_ShapeEnum
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeConvertToBezier
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_ShapeDivide
- Empty constructor.
- rtype
None* Initialize by a Shape.
- param S
- type S
TopoDS_Shape &
- rtype
None
-
Get2dConversion
()¶ - Returns the 2D conversion mode.
- rtype
bool
-
Get3dCircleConversion
()¶ - Returns the Geom_Circle conversion mode.
- rtype
bool
-
Get3dConicConversion
()¶ - Returns the Geom_Conic conversion mode.
- rtype
bool
-
Get3dConversion
()¶ - Returns the 3D conversion mode.
- rtype
bool
-
Get3dLineConversion
()¶ - Returns the Geom_Line conversion mode.
- rtype
bool
-
GetBSplineMode
()¶ - Returns the Geom_BSplineSurface conversion mode.
- rtype
bool
-
GetExtrusionMode
()¶ - Returns the Geom_SurfaceOfLinearExtrusion conversion mode.
- rtype
bool
-
GetPlaneMode
()¶ - Returns the Geom_Pline conversion mode.
- rtype
bool
-
GetRevolutionMode
()¶ - Returns the Geom_SurfaceOfRevolution conversion mode.
- rtype
bool
-
GetSurfaceConversion
()¶ - Returns the surface conversion mode.
- rtype
bool
-
Set2dConversion
()¶ - Sets mode for conversion 2D curves to bezier.
- param mode
- type mode
bool
- rtype
None
-
Set3dCircleConversion
()¶ - Sets mode for conversion Geom_Circle to bezier.
- param mode
- type mode
bool
- rtype
None
-
Set3dConicConversion
()¶ - Sets mode for conversion Geom_Conic to bezier.
- param mode
- type mode
bool
- rtype
None
-
Set3dConversion
()¶ - Sets mode for conversion 3d curves to bezier.
- param mode
- type mode
bool
- rtype
None
-
Set3dLineConversion
()¶ - Sets mode for conversion Geom_Line to bezier.
- param mode
- type mode
bool
- rtype
None
-
SetBSplineMode
()¶ - Sets mode for conversion Geom_BSplineSurface to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetExtrusionMode
()¶ - Sets mode for conversion Geom_SurfaceOfLinearExtrusion to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetPlaneMode
()¶ - Sets mode for conversion Geom_Plane to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetRevolutionMode
()¶ - Sets mode for conversion Geom_SurfaceOfRevolution to Bezier
- param mode
- type mode
bool
- rtype
None
-
SetSurfaceConversion
()¶ - Sets mode for conversion surfaces curves to bezier basis.
- param mode
- type mode
bool
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeDivide
(*args)¶ Bases:
object
- Return type
None* Initialize by a Shape. :param S: :type S: TopoDS_Shape & :rtype: None
-
GetContext
()¶ - Returns context with all the modifications made during last call(s) to Perform() recorded
- rtype
opencascade::handle<ShapeBuild_ReShape>
-
Init
()¶ - Initialize by a Shape.
- param S
- type S
TopoDS_Shape &
- rtype
None
-
MsgRegistrator
()¶ - Returns message registrator
- rtype
opencascade::handle<ShapeExtend_BasicMsgRegistrator>
-
Perform
()¶ - Performs splitting and computes the resulting shape If newContext is True (default), the internal context will be cleared at start, else previous substitutions will be acting.
- param newContext
default value is Standard_True
- type newContext
bool
- rtype
bool
-
Result
()¶ - Gives the resulting Shape, or Null shape if not done.
- rtype
TopoDS_Shape
-
SendMsg
()¶ - Sends a message to be attached to the shape. Calls corresponding message of message registrator.
- param shape
- type shape
TopoDS_Shape &
- param message
- type message
Message_Msg &
- param gravity
default value is Message_Info
- type gravity
Message_Gravity
- rtype
None
-
SetContext
()¶ - Sets context with recorded modifications to be applied during next call(s) to Perform(shape,Standard_False)
- param context
- type context
opencascade::handle<ShapeBuild_ReShape> &
- rtype
None
-
SetEdgeMode
()¶ - Sets mode for splitting 3d curves from edges. 0 - only curve 3d from free edges. 1 - only curve 3d from shared edges. 2 - all curve 3d.
- param aEdgeMode
- type aEdgeMode
int
- rtype
None
-
SetMaxTolerance
()¶ - Sets maximal allowed tolerance
- param maxtol
- type maxtol
float
- rtype
None
-
SetMinTolerance
()¶ - Sets minimal allowed tolerance
- param mintol
- type mintol
float
- rtype
None
-
SetMsgRegistrator
()¶ - Sets message registrator
- param msgreg
- type msgreg
opencascade::handle<ShapeExtend_BasicMsgRegistrator> &
- rtype
void
-
SetPrecision
()¶ - Defines the spatial precision used for splitting
- param Prec
- type Prec
float
- rtype
None
-
SetSplitFaceTool
()¶ - Sets the tool for splitting faces.
- param splitFaceTool
- type splitFaceTool
opencascade::handle<ShapeUpgrade_FaceDivide> &
- rtype
None
-
SetSurfaceSegmentMode
()¶ - Purpose sets mode for trimming (segment) surface by wire UV bounds.
- param Segment
- type Segment
bool
- rtype
None
-
Status
()¶ - Queries the status of last call to Perform OKno splitting was done (or no call to Perform) DONE1: some edges were splitted DONE2: surface was splitted FAIL1: some errors occured
- param status
- type status
ShapeExtend_Status
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeDivideAngle
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_ShapeDivide
- Empty constructor.
- param MaxAngle
- type MaxAngle
float
- rtype
None* Initialize by a Shape.
- param MaxAngle
- type MaxAngle
float
- param S
- type S
TopoDS_Shape &
- rtype
None
-
InitTool
()¶ - Resets tool for splitting face with given angle
- param MaxAngle
- type MaxAngle
float
- rtype
None
-
MaxAngle
()¶ - Returns maximal angle
- rtype
float
-
SetMaxAngle
()¶ - Set maximal angle (calls InitTool)
- param MaxAngle
- type MaxAngle
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeDivideArea
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_ShapeDivide
- Return type
None* Initialize by a Shape. :param S: :type S: TopoDS_Shape & :rtype: None
-
GetMaxArea
(ShapeUpgrade_ShapeDivideArea self) → Standard_Real¶
-
SetMaxArea
(ShapeUpgrade_ShapeDivideArea self, Standard_Real value)¶
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeDivideClosed
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_ShapeDivide
- Initialises tool with shape and default parameter.
- param S
- type S
TopoDS_Shape &
- rtype
None
-
SetNbSplitPoints
()¶ - Sets the number of cuts applied to divide closed faces. The number of resulting faces will be num+1.
- param num
- type num
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeDivideClosedEdges
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_ShapeDivide
- Initialises tool with shape and default parameter.
- param S
- type S
TopoDS_Shape &
- rtype
None
-
SetNbSplitPoints
()¶ - Sets the number of cuts applied to divide closed edges. The number of resulting faces will be num+1.
- param num
- type num
int
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShapeDivideContinuity
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_ShapeDivide
- Return type
None* Initialize by a Shape. :param S: :type S: TopoDS_Shape & :rtype: None
-
SetBoundaryCriterion
()¶ - Defines a criterion of continuity for the boundary (all the Wires) //! The possible values are C0, G1, C1, G2, C2, C3, CN The default is C1 to respect the Cas.Cade Shape Validity. G1 and G2 are not authorized.
- param Criterion
default value is GeomAbs_C1
- type Criterion
GeomAbs_Shape
- rtype
None
-
SetPCurveCriterion
()¶ - Defines a criterion of continuity for the boundary (all the pcurves of Wires) //! The possible values are C0, G1, C1, G2, C2, C3, CN The default is C1 to respect the Cas.Cade Shape Validity. G1 and G2 are not authorized.
- param Criterion
default value is GeomAbs_C1
- type Criterion
GeomAbs_Shape
- rtype
None
-
SetSurfaceCriterion
()¶ - Defines a criterion of continuity for the boundary (all the Wires) //! The possible values are C0, G1, C1, G2, C2, C3, CN The default is C1 to respect the Cas.Cade Shape Validity. G1 and G2 are not authorized.
- param Criterion
default value is GeomAbs_C1
- type Criterion
GeomAbs_Shape
- rtype
None
-
SetTolerance
()¶ - Sets tolerance.
- param Tol
- type Tol
float
- rtype
None
-
SetTolerance2d
()¶ - Sets tolerance.
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_ShellSewing
(*args)¶ Bases:
object
- Creates a ShellSewing, empty
- rtype
None
-
ApplySewing
()¶ - Builds a new shape from a former one, by calling Sewing from BRepBuilderAPI. Rebuilt solids are oriented to be ‘not infinite’ //! If <tol> is not given (i.e. value 0. by default), it is computed as the mean tolerance recorded in <shape> //! If no shell has been sewed, this method returns the input shape
- param shape
- type shape
TopoDS_Shape &
- param tol
default value is 0.0
- type tol
float
- rtype
TopoDS_Shape
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitCurve
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Empty constructor.
- rtype
None
-
Build
()¶ - If Segment is True, the result is composed with segments of the curve bounded by the SplitValues. If Segment is False, the result is composed with trimmed Curves all based on the same complete curve.
- param Segment
- type Segment
bool
- rtype
void
-
Compute
()¶ - Calculates points for correction/splitting of the curve
- rtype
void
-
static
DownCast
(t)¶
-
Init
()¶ - Initializes with curve first and last parameters.
- param First
- type First
float
- param Last
- type Last
float
- rtype
None
-
Perform
()¶ - Performs correction/splitting of the curve. First defines splitting values by method Compute(), then calls method Build().
- param Segment
default value is Standard_True
- type Segment
bool
- rtype
None
-
SetSplitValues
()¶ - Sets the parameters where splitting has to be done.
- param SplitValues
- type SplitValues
opencascade::handle<TColStd_HSequenceOfReal> &
- rtype
None
-
SplitValues
()¶ - returns all the splitting values including the First and Last parameters of the input curve Merges input split values and new ones into myGlobalKnots
- rtype
opencascade::handle<TColStd_HSequenceOfReal>
-
Status
()¶ - Returns the status OK - no splitting is needed DONE1 - splitting required and gives more than one segment DONE2 - splitting is required, but gives only one segment (initial) DONE3 - geometric form of the curve or parametrisation is modified
- param status
- type status
ShapeExtend_Status
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitCurve2d
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitCurve
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
GetCurves
()¶ - Return type
opencascade::handle<TColGeom2d_HArray1OfCurve>
-
Init
()¶ - Initializes with pcurve with its first and last parameters.
- param C
- type C
opencascade::handle<Geom2d_Curve> &
- rtype
None* Initializes with pcurve with its parameters.
- param C
- type C
opencascade::handle<Geom2d_Curve> &
- param First
- type First
float
- param Last
- type Last
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitCurve2dContinuity
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitCurve2d
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
SetCriterion
()¶ - Sets criterion for splitting.
- param Criterion
- type Criterion
GeomAbs_Shape
- rtype
None
-
SetTolerance
()¶ - Sets tolerance.
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitCurve3d
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitCurve
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
GetCurves
()¶ - Return type
opencascade::handle<TColGeom_HArray1OfCurve>
-
Init
()¶ - Initializes with curve with its first and last parameters.
- param C
- type C
opencascade::handle<Geom_Curve> &
- rtype
None* Initializes with curve with its parameters.
- param C
- type C
opencascade::handle<Geom_Curve> &
- param First
- type First
float
- param Last
- type Last
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitCurve3dContinuity
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitCurve3d
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
GetCurve
()¶ - Return type
opencascade::handle<Geom_Curve>
-
SetCriterion
()¶ - Sets criterion for splitting.
- param Criterion
- type Criterion
GeomAbs_Shape
- rtype
None
-
SetTolerance
()¶ - Sets tolerance.
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitSurface
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Empty constructor.
- rtype
None
-
Build
()¶ - Performs splitting of the supporting surface. If resulting surface is B-Spline and Segment is True, the result is composed with segments of the surface bounded by the U and V SplitValues (method Geom_BSplineSurface::Segment is used). If Segment is False, the result is composed with Geom_RectangularTrimmedSurface all based on the same complete surface. Fields myNbResultingRow and myNbResultingCol must be set to specify the size of resulting grid of surfaces.
- param Segment
- type Segment
bool
- rtype
void
-
Compute
()¶ - Calculates points for correction/splitting of the surface.
- param Segment
default value is Standard_True
- type Segment
bool
- rtype
void
-
static
DownCast
(t)¶
-
Init
()¶ - Initializes with single supporting surface.
- param S
- type S
opencascade::handle<Geom_Surface> &
- rtype
None* Initializes with single supporting surface with bounding parameters.
- param S
- type S
opencascade::handle<Geom_Surface> &
- param UFirst
- type UFirst
float
- param ULast
- type ULast
float
- param VFirst
- type VFirst
float
- param VLast
- type VLast
float
- rtype
None
-
Perform
()¶ - Performs correction/splitting of the surface. First defines splitting values by method Compute(), then calls method Build().
- param Segment
default value is Standard_True
- type Segment
bool
- rtype
None
-
ResSurfaces
()¶ - Returns obtained surfaces after splitting as CompositeSurface
- rtype
opencascade::handle<ShapeExtend_CompositeSurface>
-
SetUSplitValues
()¶ - Sets U parameters where splitting has to be done
- param UValues
- type UValues
opencascade::handle<TColStd_HSequenceOfReal> &
- rtype
None
-
SetVSplitValues
()¶ - Sets V parameters where splitting has to be done
- param VValues
- type VValues
opencascade::handle<TColStd_HSequenceOfReal> &
- rtype
None
-
Status
()¶ - Returns the status OK - no splitting is needed DONE1 - splitting required and gives more than one patch DONE2 - splitting is required, but gives only single patch (initial) DONE3 - geometric form of the surface or parametrisation is modified
- param status
- type status
ShapeExtend_Status
- rtype
bool
-
USplitValues
()¶ - returns all the U splitting values including the First and Last parameters of the input surface
- rtype
opencascade::handle<TColStd_HSequenceOfReal>
-
VSplitValues
()¶ - returns all the splitting V values including the First and Last parameters of the input surface
- rtype
opencascade::handle<TColStd_HSequenceOfReal>
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitSurfaceAngle
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitSurface
- Empty constructor.
- param MaxAngle
- type MaxAngle
float
- rtype
None
-
static
DownCast
(t)¶
-
MaxAngle
()¶ - Returns maximal angle
- rtype
float
-
SetMaxAngle
()¶ - Set maximal angle
- param MaxAngle
- type MaxAngle
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitSurfaceArea
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitSurface
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
GetNbParts
(ShapeUpgrade_SplitSurfaceArea self) → Standard_Integer¶
-
SetNbParts
(ShapeUpgrade_SplitSurfaceArea self, Standard_Integer value)¶
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_SplitSurfaceContinuity
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_SplitSurface
- Empty constructor.
- rtype
None
-
static
DownCast
(t)¶
-
SetCriterion
()¶ - Sets criterion for splitting.
- param Criterion
- type Criterion
GeomAbs_Shape
- rtype
None
-
SetTolerance
()¶ - Sets tolerance.
- param Tol
- type Tol
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_Tool
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Empty constructor
- rtype
None
-
Context
()¶ - Returns context
- rtype
opencascade::handle<ShapeBuild_ReShape>
-
static
DownCast
(t)¶
-
LimitTolerance
()¶ - Returns tolerance limited by [myMinTol,myMaxTol]
- param toler
- type toler
float
- rtype
float
-
MaxTolerance
()¶ - Returns maximal allowed tolerance
- rtype
float
-
MinTolerance
()¶ - Returns minimal allowed tolerance
- rtype
float
-
Precision
()¶ - Returns basic precision value
- rtype
float
-
Set
()¶ - Copy all fields from another Root object
- param tool
- type tool
opencascade::handle<ShapeUpgrade_Tool> &
- rtype
None
-
SetContext
()¶ - Sets context
- param context
- type context
opencascade::handle<ShapeBuild_ReShape> &
- rtype
None
-
SetMaxTolerance
()¶ - Sets maximal allowed tolerance
- param maxtol
- type maxtol
float
- rtype
None
-
SetMinTolerance
()¶ - Sets minimal allowed tolerance
- param mintol
- type mintol
float
- rtype
None
-
SetPrecision
()¶ - Sets basic precision value
- param preci
- type preci
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
ShapeUpgrade_WireDivide
(*args)¶ Bases:
OCC.Core.ShapeUpgrade.ShapeUpgrade_Tool
- Empty constructor
- rtype
None
-
static
DownCast
(t)¶
-
GetEdgeDivideTool
()¶ - returns tool for splitting edges
- rtype
opencascade::handle<ShapeUpgrade_EdgeDivide>
-
GetFixSmallCurveTool
()¶ - Returns tool for fixing small curves
- rtype
opencascade::handle<ShapeUpgrade_FixSmallCurves>
-
GetTransferParamTool
()¶ - Returns the tool for Transfer of parameters.
- rtype
opencascade::handle<ShapeAnalysis_TransferParameters>
-
Init
()¶ - Initializes by wire and face
- param W
- type W
TopoDS_Wire &
- param F
- type F
TopoDS_Face &
- rtype
None* Initializes by wire and surface
- param W
- type W
TopoDS_Wire &
- param S
- type S
opencascade::handle<Geom_Surface> &
- rtype
None
-
Load
()¶ - Loads working wire
- param W
- type W
TopoDS_Wire &
- rtype
None* Creates wire of one edge and calls Load for wire
- param E
- type E
TopoDS_Edge &
- rtype
None
-
Perform
()¶ - Computes the resulting wire by splitting all the edges according to splitting criteria. All the modifications made are recorded in context (ShapeBuild_ReShape). This tool is applied to all edges before splitting them in order to keep sharings. If no supporting face or surface is defined, only 3d splitting criteria are used.
- rtype
void
-
SetEdgeDivideTool
()¶ - Sets tool for splitting edge
- param edgeDivideTool
- type edgeDivideTool
opencascade::handle<ShapeUpgrade_EdgeDivide> &
- rtype
None
-
SetEdgeMode
()¶ - Sets mode for splitting 3d curves from edges. 0 - only curve 3d from free edges. 1 - only curve 3d from shared edges. 2 - all curve 3d.
- param EdgeMode
- type EdgeMode
int
- rtype
None
-
SetFace
()¶ - Sets supporting surface by face
- param F
- type F
TopoDS_Face &
- rtype
None
-
SetFixSmallCurveTool
()¶ - Sets tool for fixing small curves with specified min tolerance;
- param FixSmallCurvesTool
- type FixSmallCurvesTool
opencascade::handle<ShapeUpgrade_FixSmallCurves> &
- rtype
None
-
SetSplitCurve2dTool
()¶ - Sets the tool for splitting pcurves.
- param splitCurve2dTool
- type splitCurve2dTool
opencascade::handle<ShapeUpgrade_SplitCurve2d> &
- rtype
None
-
SetSplitCurve3dTool
()¶ - Sets the tool for splitting 3D curves.
- param splitCurve3dTool
- type splitCurve3dTool
opencascade::handle<ShapeUpgrade_SplitCurve3d> &
- rtype
None
-
SetSurface
()¶ - Sets supporting surface
- param S
- type S
opencascade::handle<Geom_Surface> &
- rtype
None* Sets supporting surface with location
- param S
- type S
opencascade::handle<Geom_Surface> &
- param L
- type L
TopLoc_Location &
- rtype
None
-
SetTransferParamTool
()¶ - Sets the tool for Transfer parameters between curves and pcurves.
- param TransferParam
- type TransferParam
opencascade::handle<ShapeAnalysis_TransferParameters> &
- rtype
None
-
Status
()¶ - Queries status of last call to Perform() OK - no edges were splitted, wire left untouched DONE1 - some edges were splitted FAIL1 - some edges have no 3d curve (skipped) FAIL2 - some edges have no pcurve (skipped)
- param status
- type status
ShapeExtend_Status
- rtype
bool
-
Wire
()¶ - Gives the resulting Wire (equal to initial one if not done or Null if not loaded)
- 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
shapeupgrade
¶ Bases:
object
-
static
C0BSplineToSequenceOfC1BSplineCurve
()¶ - Unifies same domain faces and edges of specified shape
- param BS
- type BS
opencascade::handle<Geom_BSplineCurve> &
- param seqBS
- type seqBS
opencascade::handle<TColGeom_HSequenceOfBoundedCurve> &
- rtype
bool* Converts C0 B-Spline curve into sequence of C1 B-Spline curves. This method splits B-Spline at the knots with multiplicities equal to degree, i.e. unlike method GeomConvert::C0BSplineToArrayOfC1BSplineCurve this one does not use any tolerance and therefore does not change the geometry of B-Spline. Returns True if C0 B-Spline was successfully splitted, else returns False (if BS is C1 B-Spline).
- param BS
- type BS
opencascade::handle<Geom2d_BSplineCurve> &
- param seqBS
- type seqBS
opencascade::handle<TColGeom2d_HSequenceOfBoundedCurve> &
- rtype
bool
-
property
thisown
¶ The membership flag
-
static