OCC.BOPTools module¶
-
class
BOPTools_AlgoTools
¶ Bases:
object
-
static
AreFacesSameDomain
()¶ Parameters: - theF1 (TopoDS_Face &) –
- theF2 (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
static
CheckSameGeom
()¶ Parameters: - theF1 (TopoDS_Face &) –
- theF2 (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
static
ComputeState
()¶ - Computes the 3-D state of the point thePoint toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: Return type: TopAbs_State
- Computes the 3-D state of the vertex theVertex toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theVertex (TopoDS_Vertex &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
- Computes the 3-D state of the edge theEdge toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theEdge (TopoDS_Edge &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
- Computes the 3-D state of the face theFace toward solid theSolid. theTol - value of precision of computation theBounds - set of edges of theFace to avoid theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theFace (TopoDS_Face &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theBounds (BOPCol_IndexedMapOfShape &) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
-
static
ComputeStateByOnePoint
()¶ - Computes the 3-D state of the shape theShape toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theShape (TopoDS_Shape &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
-
static
ComputeTolerance
()¶ - Computes the necessary value of the tolerance for the edge
Parameters: - theFace (TopoDS_Face &) –
- theEdge (TopoDS_Edge &) –
- theMaxDist (float &) –
- theMaxPar (float &) –
Return type:
-
static
ComputeVV
()¶ Parameters: Return type: Return type:
-
static
CorrectCurveOnSurface
()¶ - Provides valid values of tolerances for the shape <theS> in terms of BRepCheck_InvalidCurveOnSurface.
Parameters: Return type: void
-
static
CorrectPointOnCurve
()¶ - Provides valid values of tolerances for the shape <theS> in terms of BRepCheck_InvalidPointOnCurve.
Parameters: Return type: void
-
static
CorrectRange
()¶ - Correct shrunk range <aSR> taking into account 3D-curve resolution and corresp. tolerances’ values of <aE1>, <aE2>
Parameters: - aE1 (TopoDS_Edge &) –
- aE2 (TopoDS_Edge &) –
- aSR (IntTools_Range &) –
- aNewSR (IntTools_Range &) –
Return type: void
- Correct shrunk range <aSR> taking into account 3D-curve resolution and corresp. tolerances’ values of <aE>, <aF>
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aSR (IntTools_Range &) –
- aNewSR (IntTools_Range &) –
Return type: void
-
static
CorrectShapeTolerances
()¶ - Corrects tolerance values of the sub-shapes of the shape <theS> if needed.
Parameters: - theS (TopoDS_Shape &) –
- theRunParallel (bool) – default value is Standard_False
Return type: void
-
static
CorrectTolerances
()¶ - Provides valid values of tolerances for the shape <theS> <theTolMax> is max value of the tolerance that can be accepted for correction. If real value of the tolerance will be greater than <aTolMax>, the correction does not perform.
Parameters: Return type: void
-
static
Dimension
()¶ - Retutns dimension of the shape <theS>.
Parameters: theS (TopoDS_Shape &) – Return type: int
-
static
GetEdgeOff
()¶ - Returns True if the face theFace contains the edge theEdge but with opposite orientation. If the method returns True theEdgeOff is the edge founded
Parameters: - theEdge (TopoDS_Edge &) –
- theFace (TopoDS_Face &) –
- theEdgeOff (TopoDS_Edge &) –
Return type:
-
static
GetEdgeOnFace
()¶ - For the face theFace gets the edge theEdgeOnF that is the same as theEdge Returns True if such edge exists Returns False if there is no such edge
Parameters: - theEdge (TopoDS_Edge &) –
- theFace (TopoDS_Face &) –
- theEdgeOnF (TopoDS_Edge &) –
Return type:
-
static
GetFaceOff
()¶ - For the face theFace and its edge theEdge finds the face suitable to produce shell. theLCEF - set of faces to search. All faces from theLCEF must share edge theEdge
Parameters: - theEdge (TopoDS_Edge &) –
- theFace (TopoDS_Face &) –
- theLCEF (BOPTools_ListOfCoupleOfShape &) –
- theFaceOff (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
static
IsBlockInOnFace
()¶ - Returns True if PaveBlock <aPB> lays on the face <aF>, i.e the <PB> is IN or ON in 2D of <aF>
Parameters: - aShR (IntTools_Range &) –
- aF (TopoDS_Face &) –
- aE (TopoDS_Edge &) –
- aContext (Handle_IntTools_Context &) –
Return type:
-
static
IsInternalFace
()¶ - Returns True if the face theFace is inside of the couple of faces theFace1, theFace2. The faces theFace, theFace1, theFace2 must share the edge theEdge
Parameters: - theFace (TopoDS_Face &) –
- theEdge (TopoDS_Edge &) –
- theFace1 (TopoDS_Face &) –
- theFace2 (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type: - Returns True if the face theFace is inside of the appropriate couple of faces (from the set theLF) . The faces of the set theLF and theFace must share the edge theEdge
Parameters: - theFace (TopoDS_Face &) –
- theEdge (TopoDS_Edge &) –
- theLF (BOPCol_ListOfShape &) –
- theContext (Handle_IntTools_Context &) –
Return type: - Returns True if the face theFace is inside the solid theSolid. theMEF - Map Edge/Faces for theSolid theTol - value of precision of computation theContext- cahed geometrical tools
Parameters: - theFace (TopoDS_Face &) –
- theSolid (TopoDS_Solid &) –
- theMEF (BOPCol_IndexedDataMapOfShapeListOfShape &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
static
IsInvertedSolid
()¶ - Returns true if the solid <theSolid> is inverted
Parameters: theSolid (TopoDS_Solid &) – Return type: bool
-
static
IsMicroEdge
()¶ - Checks if it is possible to compute shrunk range for the edge <aE>.
Parameters: - theEdge (TopoDS_Edge &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
static
IsOpenShell
()¶ - Returns true if the shell <theShell> is open
Parameters: theShell (TopoDS_Shell &) – Return type: bool
-
static
IsSplitToReverse
()¶ - Returns True if the shape theSplit has opposite direction than theShape theContext - cashed geometrical tools
Parameters: - theSplit (TopoDS_Shape &) –
- theShape (TopoDS_Shape &) –
- theContext (Handle_IntTools_Context &) –
Return type: - Returns True if normal direction of the face theShape is not the same as for the face theSplit theContext - cashed geometrical tools
Parameters: - theSplit (TopoDS_Face &) –
- theShape (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
- aE1 (TopoDS_Edge &) –
- aE2 (TopoDS_Edge &) –
- aContext (Handle_IntTools_Context &) –
Return type: Return type:
-
static
MakeConnexityBlock
()¶ - For the list of faces theLS build block theLSCB in terms of connexity by edges theMapAvoid - set of edges to avoid for the treatment
Parameters: - theLS (BOPCol_ListOfShape &) –
- theMapAvoid (BOPCol_IndexedMapOfShape &) –
- theLSCB (BOPCol_ListOfShape &) –
- theAllocator (BOPCol_BaseAllocator &) –
Return type: void
-
static
MakeConnexityBlocks
()¶ - For the compound theS build the blocks theLCB (as list of compounds) in terms of connexity by the shapes of theType
Parameters: - theS (TopoDS_Shape &) –
- theType1 (TopAbs_ShapeEnum) –
- theType2 (TopAbs_ShapeEnum) –
- theLCB (BOPCol_ListOfShape &) –
Return type: void
-
static
MakeContainer
()¶ Parameters: - theType (TopAbs_ShapeEnum) –
- theShape (TopoDS_Shape &) –
Return type: void
-
static
MakeEdge
()¶ Parameters: Return type: void
-
static
MakeNewVertex
()¶ - Make a vertex using 3D-point <aP1> and 3D-tolerance value <aTol>
Parameters: Return type: void
- Make a vertex using couple of vertices <aV1, aV2>
Parameters: - aV1 (TopoDS_Vertex &) –
- aV2 (TopoDS_Vertex &) –
- aNewVertex (TopoDS_Vertex &) –
Return type: void
- Make a vertex in place of intersection between two edges <aE1, aE2> with parameters <aP1, aP2>
Parameters: Return type: void
- Make a vertex in place of intersection between the edge <aE1> with parameter <aP1> and the face <aF2>
Parameters: - aE1 (TopoDS_Edge &) –
- aP1 (float) –
- aF2 (TopoDS_Face &) –
- aNewVertex (TopoDS_Vertex &) –
Return type: void
-
static
MakePCurve
()¶ Parameters: Return type: void
-
static
MakeSectEdge
()¶ - Make the edge from 3D-Curve <aIC> and two vertices <aV1,aV2> at parameters <aP1,aP2>
Parameters: Return type: void
-
static
MakeSplitEdge
()¶ - Make the edge from base edge <aE1> and two vertices <aV1,aV2> at parameters <aP1,aP2>
Parameters: Return type: void
-
static
MakeVertex
()¶ Parameters: - aLV (BOPCol_ListOfShape &) –
- aV (TopoDS_Vertex &) –
Return type: void
-
static
OrientFacesOnShell
()¶ Parameters: theS (TopoDS_Shape &) – Return type: void
-
static
PointOnEdge
()¶ - Compute a 3D-point on the edge <aEdge> at parameter <aPrm>
Parameters: Return type: void
-
static
UpdateVertex
()¶ - Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the curve <aIC>
Parameters: - aIC (IntTools_Curve &) –
- aT (float) –
- aV (TopoDS_Vertex &) –
Return type: void
- Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the edge <aE>
Parameters: - aE (TopoDS_Edge &) –
- aT (float) –
- aV (TopoDS_Vertex &) –
Return type: void
- Update the tolerance value for vertex <aVN> taking into account the fact that <aVN> should cover tolerance zone of <aVF>
Parameters: - aVF (TopoDS_Vertex &) –
- aVN (TopoDS_Vertex &) –
Return type: void
-
thisown
¶ The membership flag
-
static
-
class
BOPTools_AlgoTools2D
¶ Bases:
object
-
static
AdjustPCurveOnFace
()¶ - Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> .
Parameters: - aF (TopoDS_Face &) –
- C3D (Handle_Geom_Curve &) –
- aC2D (Handle_Geom2d_Curve &) –
- aC2DA (Handle_Geom2d_Curve &) –
Return type: void
- Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust
Parameters: Return type: void
- Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust
Parameters: Return type: void
-
static
AttachExistingPCurve
()¶ - Attach P-Curve from the edge <aEold> on surface <aF> to the edge <aEnew> Returns 0 in case of success
Parameters: - aEold (TopoDS_Edge &) –
- aEnew (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aCtx (Handle_IntTools_Context &) –
Return type:
-
static
BuildPCurveForEdgeOnFace
()¶ - Compute P-Curve for the edge <aE> on the face <aF> Raises exception Standard_ConstructionError if projection algorithm fails
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
Return type: void
-
static
BuildPCurveForEdgeOnPlane
()¶ Parameters: - theE (TopoDS_Edge &) –
- theF (TopoDS_Face &) –
- theE –
- theF –
- theC2D (Handle_Geom2d_Curve &) –
- bToUpdate (bool) –
Return type: void
Return type: void
-
static
BuildPCurveForEdgesOnPlane
()¶ Parameters: - theLE (BOPCol_ListOfShape &) –
- theF (TopoDS_Face &) –
Return type: void
-
static
EdgeTangent
()¶ - Compute tangent for the edge <aE> [in 3D] at parameter <aT>
Parameters: Return type:
-
static
HasCurveOnSurface
()¶ - Returns True if the edge <aE> has P-Curve <aC> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance If the P-Curve does not exist, aC.IsNull()=True.
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aC (Handle_Geom2d_Curve &) –
- aFirst (float &) –
- aLast (float &) –
- aToler (float &) –
Return type: - Returns True if the edge <aE> has P-Curve <aC> on surface <aF> . If the P-Curve does not exist, aC.IsNull()=True.
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
Return type:
-
static
IntermediatePoint
()¶ - Compute intermediate value in between [aFirst, aLast] .
Parameters: Return type: - Compute intermediate value of parameter for the edge <anE>.
Parameters: anE (TopoDS_Edge &) – Return type: float
-
static
Make2D
()¶ - Make P-Curve <aC> for the edge <aE> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm fails
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aC (Handle_Geom2d_Curve &) –
- aFirst (float &) –
- aLast (float &) –
- aToler (float &) –
Return type: void
-
static
MakePCurveOfType
()¶ - Make empty P-Curve <aC> of relevant to <PC> type
Parameters: - PC (ProjLib_ProjectedCurve &) –
- aC (Handle_Geom2d_Curve &) –
Return type: void
-
static
MakePCurveOnFace
()¶ - Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails
Parameters: - aF (TopoDS_Face &) –
- C3D (Handle_Geom_Curve &) –
- aC (Handle_Geom2d_Curve &) –
- aToler (float &) –
Return type: void
- Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aT1, aT2] - range to build [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails
Parameters: Return type: void
-
static
PointOnSurface
()¶ - Compute surface parameters <U,V> of the face <aF> for the point from the edge <aE> at parameter <aT>. If <aE> has’t pcurve on surface, algorithm tries to get it by projection and can raise exception Standard_ConstructionError if projection algorithm fails
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aT (float) –
- U (float &) –
- V (float &) –
Return type: void
-
thisown
¶ The membership flag
-
static
-
BOPTools_AlgoTools2D_AdjustPCurveOnFace
()¶ - Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> .
Parameters: - aF (TopoDS_Face &) –
- C3D (Handle_Geom_Curve &) –
- aC2D (Handle_Geom2d_Curve &) –
- aC2DA (Handle_Geom2d_Curve &) –
Return type: void
- Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust
Parameters: Return type: void
- Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust
Parameters: Return type: void
-
BOPTools_AlgoTools2D_AttachExistingPCurve
()¶ - Attach P-Curve from the edge <aEold> on surface <aF> to the edge <aEnew> Returns 0 in case of success
Parameters: - aEold (TopoDS_Edge &) –
- aEnew (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aCtx (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools2D_BuildPCurveForEdgeOnFace
()¶ - Compute P-Curve for the edge <aE> on the face <aF> Raises exception Standard_ConstructionError if projection algorithm fails
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
Return type: void
-
BOPTools_AlgoTools2D_BuildPCurveForEdgeOnPlane
()¶ Parameters: - theE (TopoDS_Edge &) –
- theF (TopoDS_Face &) –
- theE –
- theF –
- theC2D (Handle_Geom2d_Curve &) –
- bToUpdate (bool) –
Return type: void
Return type: void
-
BOPTools_AlgoTools2D_BuildPCurveForEdgesOnPlane
()¶ Parameters: - theLE (BOPCol_ListOfShape &) –
- theF (TopoDS_Face &) –
Return type: void
-
BOPTools_AlgoTools2D_EdgeTangent
()¶ - Compute tangent for the edge <aE> [in 3D] at parameter <aT>
Parameters: Return type:
-
BOPTools_AlgoTools2D_HasCurveOnSurface
()¶ - Returns True if the edge <aE> has P-Curve <aC> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance If the P-Curve does not exist, aC.IsNull()=True.
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aC (Handle_Geom2d_Curve &) –
- aFirst (float &) –
- aLast (float &) –
- aToler (float &) –
Return type: - Returns True if the edge <aE> has P-Curve <aC> on surface <aF> . If the P-Curve does not exist, aC.IsNull()=True.
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
Return type:
-
BOPTools_AlgoTools2D_IntermediatePoint
()¶ - Compute intermediate value in between [aFirst, aLast] .
Parameters: Return type: - Compute intermediate value of parameter for the edge <anE>.
Parameters: anE (TopoDS_Edge &) – Return type: float
-
BOPTools_AlgoTools2D_Make2D
()¶ - Make P-Curve <aC> for the edge <aE> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm fails
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aC (Handle_Geom2d_Curve &) –
- aFirst (float &) –
- aLast (float &) –
- aToler (float &) –
Return type: void
-
BOPTools_AlgoTools2D_MakePCurveOfType
()¶ - Make empty P-Curve <aC> of relevant to <PC> type
Parameters: - PC (ProjLib_ProjectedCurve &) –
- aC (Handle_Geom2d_Curve &) –
Return type: void
-
BOPTools_AlgoTools2D_MakePCurveOnFace
()¶ - Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails
Parameters: - aF (TopoDS_Face &) –
- C3D (Handle_Geom_Curve &) –
- aC (Handle_Geom2d_Curve &) –
- aToler (float &) –
Return type: void
- Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aT1, aT2] - range to build [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails
Parameters: Return type: void
-
BOPTools_AlgoTools2D_PointOnSurface
()¶ - Compute surface parameters <U,V> of the face <aF> for the point from the edge <aE> at parameter <aT>. If <aE> has’t pcurve on surface, algorithm tries to get it by projection and can raise exception Standard_ConstructionError if projection algorithm fails
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aT (float) –
- U (float &) –
- V (float &) –
Return type: void
-
class
BOPTools_AlgoTools3D
¶ Bases:
object
-
static
DoSplitSEAMOnFace
()¶ - Make the edge <aSp> seam edge for the face <aF>
Parameters: - aSp (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
Return type: void
-
static
GetApproxNormalToFaceOnEdge
()¶ - Computes normal to the face <aF> for the 3D-point that belonds to the edge <aE> at parameter <aT>. Output: aPx - the 3D-point where the normal computed aD - the normal; //! Warning: The normal is computed not exactly in the point on the edge, but in point that is near to the edge towards to the face material (so, we’ll have approx. normal)
Parameters: Return type: void
Return type: void
-
static
GetNormalToFaceOnEdge
()¶ - Computes normal to the face <aF> for the point on the edge <aE> at parameter <aT>
Parameters: Return type: void
- Computes normal to the face <aF> for the point on the edge <aE> at arbitrary intermediate parameter
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aD (gp_Dir) –
Return type: void
-
static
GetNormalToSurface
()¶ - Compute normal <aD> to surface <aS> in point (U,V) Returns True if directions aD1U, aD1V coinside
Parameters: Return type:
-
static
IsEmptyShape
()¶ - Returns True if the shape <aS> does not contain geometry information (e.g. empty compound)
Parameters: aS (TopoDS_Shape &) – Return type: bool
-
static
MinStepIn2d
()¶ - Returns simple step value that is used in 2D-computations = 1.e-5
Return type: float
-
static
OrientEdgeOnFace
()¶ - Get the edge <aER> from the face <aF> that is the same as the edge <aE>
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aER (TopoDS_Edge &) –
Return type: void
-
static
PointInFace
()¶ - Computes a point <theP> inside the face <theF>. <theP2D> - 2D representation of <theP> on the surface of <theF> Returns 0 in case of success.
Parameters: Return type:
-
static
PointNearEdge
()¶ - Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is <aDt2D>
Parameters: Return type: void
- Computes the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is dt2D=BOPTools_AlgoTools3D::MinStepIn2d()
Parameters: Return type: void
- Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at arbitrary parameter towards to the material of the face <aF>. The value of shifting in 2D is dt2D=BOPTools_AlgoTools3D::MinStepIn2d()
Parameters: Return type: void
-
static
SenseFlag
()¶ - Returns 1 if scalar product aNF1* aNF2>0. Returns 0 if directions aNF1 aNF2 coinside Returns -1 if scalar product aNF1* aNF2<0.
Parameters: Return type:
-
thisown
¶ The membership flag
-
static
-
BOPTools_AlgoTools3D_DoSplitSEAMOnFace
()¶ - Make the edge <aSp> seam edge for the face <aF>
Parameters: - aSp (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
Return type: void
-
BOPTools_AlgoTools3D_GetApproxNormalToFaceOnEdge
()¶ - Computes normal to the face <aF> for the 3D-point that belonds to the edge <aE> at parameter <aT>. Output: aPx - the 3D-point where the normal computed aD - the normal; //! Warning: The normal is computed not exactly in the point on the edge, but in point that is near to the edge towards to the face material (so, we’ll have approx. normal)
Parameters: Return type: void
Return type: void
-
BOPTools_AlgoTools3D_GetNormalToFaceOnEdge
()¶ - Computes normal to the face <aF> for the point on the edge <aE> at parameter <aT>
Parameters: Return type: void
- Computes normal to the face <aF> for the point on the edge <aE> at arbitrary intermediate parameter
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aD (gp_Dir) –
Return type: void
-
BOPTools_AlgoTools3D_GetNormalToSurface
()¶ - Compute normal <aD> to surface <aS> in point (U,V) Returns True if directions aD1U, aD1V coinside
Parameters: Return type:
-
BOPTools_AlgoTools3D_IsEmptyShape
()¶ - Returns True if the shape <aS> does not contain geometry information (e.g. empty compound)
Parameters: aS (TopoDS_Shape &) – Return type: bool
-
BOPTools_AlgoTools3D_MinStepIn2d
()¶ - Returns simple step value that is used in 2D-computations = 1.e-5
Return type: float
-
BOPTools_AlgoTools3D_OrientEdgeOnFace
()¶ - Get the edge <aER> from the face <aF> that is the same as the edge <aE>
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aER (TopoDS_Edge &) –
Return type: void
-
BOPTools_AlgoTools3D_PointInFace
()¶ - Computes a point <theP> inside the face <theF>. <theP2D> - 2D representation of <theP> on the surface of <theF> Returns 0 in case of success.
Parameters: Return type:
-
BOPTools_AlgoTools3D_PointNearEdge
()¶ - Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is <aDt2D>
Parameters: Return type: void
- Computes the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is dt2D=BOPTools_AlgoTools3D::MinStepIn2d()
Parameters: Return type: void
- Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at arbitrary parameter towards to the material of the face <aF>. The value of shifting in 2D is dt2D=BOPTools_AlgoTools3D::MinStepIn2d()
Parameters: Return type: void
-
BOPTools_AlgoTools3D_SenseFlag
()¶ - Returns 1 if scalar product aNF1* aNF2>0. Returns 0 if directions aNF1 aNF2 coinside Returns -1 if scalar product aNF1* aNF2<0.
Parameters: Return type:
-
BOPTools_AlgoTools_AreFacesSameDomain
()¶ Parameters: - theF1 (TopoDS_Face &) –
- theF2 (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools_CheckSameGeom
()¶ Parameters: - theF1 (TopoDS_Face &) –
- theF2 (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools_ComputeState
()¶ - Computes the 3-D state of the point thePoint toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: Return type: TopAbs_State
- Computes the 3-D state of the vertex theVertex toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theVertex (TopoDS_Vertex &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
- Computes the 3-D state of the edge theEdge toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theEdge (TopoDS_Edge &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
- Computes the 3-D state of the face theFace toward solid theSolid. theTol - value of precision of computation theBounds - set of edges of theFace to avoid theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theFace (TopoDS_Face &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theBounds (BOPCol_IndexedMapOfShape &) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
-
BOPTools_AlgoTools_ComputeStateByOnePoint
()¶ - Computes the 3-D state of the shape theShape toward solid theSolid. theTol - value of precision of computation theContext- cahed geometrical tools Returns 3-D state.
Parameters: - theShape (TopoDS_Shape &) –
- theSolid (TopoDS_Solid &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type: TopAbs_State
-
BOPTools_AlgoTools_ComputeTolerance
()¶ - Computes the necessary value of the tolerance for the edge
Parameters: - theFace (TopoDS_Face &) –
- theEdge (TopoDS_Edge &) –
- theMaxDist (float &) –
- theMaxPar (float &) –
Return type:
-
BOPTools_AlgoTools_ComputeVV
()¶ Parameters: Return type: Return type:
-
BOPTools_AlgoTools_CorrectCurveOnSurface
()¶ - Provides valid values of tolerances for the shape <theS> in terms of BRepCheck_InvalidCurveOnSurface.
Parameters: Return type: void
-
BOPTools_AlgoTools_CorrectPointOnCurve
()¶ - Provides valid values of tolerances for the shape <theS> in terms of BRepCheck_InvalidPointOnCurve.
Parameters: Return type: void
-
BOPTools_AlgoTools_CorrectRange
()¶ - Correct shrunk range <aSR> taking into account 3D-curve resolution and corresp. tolerances’ values of <aE1>, <aE2>
Parameters: - aE1 (TopoDS_Edge &) –
- aE2 (TopoDS_Edge &) –
- aSR (IntTools_Range &) –
- aNewSR (IntTools_Range &) –
Return type: void
- Correct shrunk range <aSR> taking into account 3D-curve resolution and corresp. tolerances’ values of <aE>, <aF>
Parameters: - aE (TopoDS_Edge &) –
- aF (TopoDS_Face &) –
- aSR (IntTools_Range &) –
- aNewSR (IntTools_Range &) –
Return type: void
-
BOPTools_AlgoTools_CorrectShapeTolerances
()¶ - Corrects tolerance values of the sub-shapes of the shape <theS> if needed.
Parameters: - theS (TopoDS_Shape &) –
- theRunParallel (bool) – default value is Standard_False
Return type: void
-
BOPTools_AlgoTools_CorrectTolerances
()¶ - Provides valid values of tolerances for the shape <theS> <theTolMax> is max value of the tolerance that can be accepted for correction. If real value of the tolerance will be greater than <aTolMax>, the correction does not perform.
Parameters: Return type: void
-
BOPTools_AlgoTools_Dimension
()¶ - Retutns dimension of the shape <theS>.
Parameters: theS (TopoDS_Shape &) – Return type: int
-
BOPTools_AlgoTools_GetEdgeOff
()¶ - Returns True if the face theFace contains the edge theEdge but with opposite orientation. If the method returns True theEdgeOff is the edge founded
Parameters: - theEdge (TopoDS_Edge &) –
- theFace (TopoDS_Face &) –
- theEdgeOff (TopoDS_Edge &) –
Return type:
-
BOPTools_AlgoTools_GetEdgeOnFace
()¶ - For the face theFace gets the edge theEdgeOnF that is the same as theEdge Returns True if such edge exists Returns False if there is no such edge
Parameters: - theEdge (TopoDS_Edge &) –
- theFace (TopoDS_Face &) –
- theEdgeOnF (TopoDS_Edge &) –
Return type:
-
BOPTools_AlgoTools_GetFaceOff
()¶ - For the face theFace and its edge theEdge finds the face suitable to produce shell. theLCEF - set of faces to search. All faces from theLCEF must share edge theEdge
Parameters: - theEdge (TopoDS_Edge &) –
- theFace (TopoDS_Face &) –
- theLCEF (BOPTools_ListOfCoupleOfShape &) –
- theFaceOff (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools_IsBlockInOnFace
()¶ - Returns True if PaveBlock <aPB> lays on the face <aF>, i.e the <PB> is IN or ON in 2D of <aF>
Parameters: - aShR (IntTools_Range &) –
- aF (TopoDS_Face &) –
- aE (TopoDS_Edge &) –
- aContext (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools_IsHole
()¶ Parameters: - aW (TopoDS_Shape &) –
- aF (TopoDS_Shape &) –
Return type:
-
BOPTools_AlgoTools_IsInternalFace
()¶ - Returns True if the face theFace is inside of the couple of faces theFace1, theFace2. The faces theFace, theFace1, theFace2 must share the edge theEdge
Parameters: - theFace (TopoDS_Face &) –
- theEdge (TopoDS_Edge &) –
- theFace1 (TopoDS_Face &) –
- theFace2 (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
Return type: - Returns True if the face theFace is inside of the appropriate couple of faces (from the set theLF) . The faces of the set theLF and theFace must share the edge theEdge
Parameters: - theFace (TopoDS_Face &) –
- theEdge (TopoDS_Edge &) –
- theLF (BOPCol_ListOfShape &) –
- theContext (Handle_IntTools_Context &) –
Return type: - Returns True if the face theFace is inside the solid theSolid. theMEF - Map Edge/Faces for theSolid theTol - value of precision of computation theContext- cahed geometrical tools
Parameters: - theFace (TopoDS_Face &) –
- theSolid (TopoDS_Solid &) –
- theMEF (BOPCol_IndexedDataMapOfShapeListOfShape &) –
- theTol (float) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools_IsInvertedSolid
()¶ - Returns true if the solid <theSolid> is inverted
Parameters: theSolid (TopoDS_Solid &) – Return type: bool
-
BOPTools_AlgoTools_IsMicroEdge
()¶ - Checks if it is possible to compute shrunk range for the edge <aE>.
Parameters: - theEdge (TopoDS_Edge &) –
- theContext (Handle_IntTools_Context &) –
Return type:
-
BOPTools_AlgoTools_IsOpenShell
()¶ - Returns true if the shell <theShell> is open
Parameters: theShell (TopoDS_Shell &) – Return type: bool
-
BOPTools_AlgoTools_IsSplitToReverse
()¶ - Returns True if the shape theSplit has opposite direction than theShape theContext - cashed geometrical tools
Parameters: - theSplit (TopoDS_Shape &) –
- theShape (TopoDS_Shape &) –
- theContext (Handle_IntTools_Context &) –
Return type: - Returns True if normal direction of the face theShape is not the same as for the face theSplit theContext - cashed geometrical tools
Parameters: - theSplit (TopoDS_Face &) –
- theShape (TopoDS_Face &) –
- theContext (Handle_IntTools_Context &) –
- aE1 (TopoDS_Edge &) –
- aE2 (TopoDS_Edge &) –
- aContext (Handle_IntTools_Context &) –
Return type: Return type:
-
BOPTools_AlgoTools_MakeConnexityBlock
()¶ - For the list of faces theLS build block theLSCB in terms of connexity by edges theMapAvoid - set of edges to avoid for the treatment
Parameters: - theLS (BOPCol_ListOfShape &) –
- theMapAvoid (BOPCol_IndexedMapOfShape &) –
- theLSCB (BOPCol_ListOfShape &) –
- theAllocator (BOPCol_BaseAllocator &) –
Return type: void
-
BOPTools_AlgoTools_MakeConnexityBlocks
()¶ - For the compound theS build the blocks theLCB (as list of compounds) in terms of connexity by the shapes of theType
Parameters: - theS (TopoDS_Shape &) –
- theType1 (TopAbs_ShapeEnum) –
- theType2 (TopAbs_ShapeEnum) –
- theLCB (BOPCol_ListOfShape &) –
Return type: void
-
BOPTools_AlgoTools_MakeContainer
()¶ Parameters: - theType (TopAbs_ShapeEnum) –
- theShape (TopoDS_Shape &) –
Return type: void
-
BOPTools_AlgoTools_MakeEdge
()¶ Parameters: Return type: void
-
BOPTools_AlgoTools_MakeNewVertex
()¶ - Make a vertex using 3D-point <aP1> and 3D-tolerance value <aTol>
Parameters: Return type: void
- Make a vertex using couple of vertices <aV1, aV2>
Parameters: - aV1 (TopoDS_Vertex &) –
- aV2 (TopoDS_Vertex &) –
- aNewVertex (TopoDS_Vertex &) –
Return type: void
- Make a vertex in place of intersection between two edges <aE1, aE2> with parameters <aP1, aP2>
Parameters: Return type: void
- Make a vertex in place of intersection between the edge <aE1> with parameter <aP1> and the face <aF2>
Parameters: - aE1 (TopoDS_Edge &) –
- aP1 (float) –
- aF2 (TopoDS_Face &) –
- aNewVertex (TopoDS_Vertex &) –
Return type: void
-
BOPTools_AlgoTools_MakePCurve
()¶ Parameters: Return type: void
-
BOPTools_AlgoTools_MakeSectEdge
()¶ - Make the edge from 3D-Curve <aIC> and two vertices <aV1,aV2> at parameters <aP1,aP2>
Parameters: Return type: void
-
BOPTools_AlgoTools_MakeSplitEdge
()¶ - Make the edge from base edge <aE1> and two vertices <aV1,aV2> at parameters <aP1,aP2>
Parameters: Return type: void
-
BOPTools_AlgoTools_MakeVertex
()¶ Parameters: - aLV (BOPCol_ListOfShape &) –
- aV (TopoDS_Vertex &) –
Return type: void
-
BOPTools_AlgoTools_OrientFacesOnShell
()¶ Parameters: theS (TopoDS_Shape &) – Return type: void
-
BOPTools_AlgoTools_PointOnEdge
()¶ - Compute a 3D-point on the edge <aEdge> at parameter <aPrm>
Parameters: Return type: void
-
BOPTools_AlgoTools_Sense
()¶ Parameters: - theF1 (TopoDS_Face &) –
- theF2 (TopoDS_Face &) –
Return type:
-
BOPTools_AlgoTools_UpdateVertex
()¶ - Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the curve <aIC>
Parameters: - aIC (IntTools_Curve &) –
- aT (float) –
- aV (TopoDS_Vertex &) –
Return type: void
- Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the edge <aE>
Parameters: - aE (TopoDS_Edge &) –
- aT (float) –
- aV (TopoDS_Vertex &) –
Return type: void
- Update the tolerance value for vertex <aVN> taking into account the fact that <aVN> should cover tolerance zone of <aVF>
Parameters: - aVF (TopoDS_Vertex &) –
- aVN (TopoDS_Vertex &) –
Return type: void
-
class
BOPTools_ConnexityBlock
(*args)¶ Bases:
object
Return type: None Parameters: theAllocator (Handle_NCollection_BaseAllocator &) – Return type: None -
ChangeLoops
()¶ Return type: BOPCol_ListOfShape
-
ChangeShapes
()¶ Return type: BOPCol_ListOfShape
-
Loops
()¶ Return type: BOPCol_ListOfShape
-
Shapes
()¶ Return type: BOPCol_ListOfShape
-
thisown
¶ The membership flag
-
-
class
BOPTools_EdgeSet
(*args)¶ Bases:
object
Return type: None Parameters: theAllocator (BOPCol_BaseAllocator &) – Return type: None -
AddEdges
()¶ Parameters: - theLS (BOPCol_ListOfShape &) –
- theFace (TopoDS_Shape &) –
Return type: Return type:
-
Shape
()¶ Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
-
class
BOPTools_Set
(*args)¶ Bases:
object
Return type: None Parameters: theAllocator (BOPCol_BaseAllocator &) – Return type: None -
Assign
()¶ Parameters: Other (BOPTools_Set &) – Return type: BOPTools_Set
-
Set
()¶ Parameters: Other (BOPTools_Set &) – Return type: BOPTools_Set
-
Shape
()¶ Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
-
BOPTools_SetMapHasher_IsEqual
()¶ Parameters: - aSet1 (BOPTools_Set &) –
- aSet2 (BOPTools_Set &) –
Return type:
-
class
BOPTools_ShapeSet
(*args)¶ Bases:
object
Return type: None Parameters: theAllocator (BOPCol_BaseAllocator &) – Return type: None -
Add
()¶ Parameters: - theLS (BOPCol_ListOfShape &) –
- theShape (TopoDS_Shape &) –
- theShape –
- theType (TopAbs_ShapeEnum) –
Return type: Return type: Return type:
-
AddEdges
()¶ Parameters: - theLS (BOPCol_ListOfShape &) –
- theFace (TopoDS_Shape &) –
Return type: Return type:
-
Shape
()¶ Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
boptools
¶ Bases:
object
-
static
MapShapes
()¶ Parameters: - S (TopoDS_Shape &) –
- M (BOPCol_IndexedMapOfShape &) –
- S –
- M –
- S –
- T (TopAbs_ShapeEnum) –
- M –
Return type: void
Return type: void
Return type: void
-
static
MapShapesAndAncestors
()¶ Parameters: - S (TopoDS_Shape &) –
- TS (TopAbs_ShapeEnum) –
- TA (TopAbs_ShapeEnum) –
- M (BOPCol_IndexedDataMapOfShapeListOfShape &) –
Return type: void
-
thisown
¶ The membership flag
-
static
-
boptools_MapShapes
()¶ Parameters: - S (TopoDS_Shape &) –
- M (BOPCol_IndexedMapOfShape &) –
- S –
- M –
- S –
- T (TopAbs_ShapeEnum) –
- M –
Return type: void
Return type: void
Return type: void
-
boptools_MapShapesAndAncestors
()¶ Parameters: - S (TopoDS_Shape &) –
- TS (TopAbs_ShapeEnum) –
- TA (TopAbs_ShapeEnum) –
- M (BOPCol_IndexedDataMapOfShapeListOfShape &) –
Return type: void
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases