OCC.Draft module¶
-
class
Draft_DataMapIteratorOfDataMapOfEdgeEdgeInfo(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (Draft_DataMapOfEdgeEdgeInfo &) – Return type: None -
Key()¶ Return type: TopoDS_Edge
-
Value()¶ Return type: Draft_EdgeInfo
-
thisown¶ The membership flag
-
-
class
Draft_DataMapIteratorOfDataMapOfFaceFaceInfo(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (Draft_DataMapOfFaceFaceInfo &) – Return type: None -
Key()¶ Return type: TopoDS_Face
-
Value()¶ Return type: Draft_FaceInfo
-
thisown¶ The membership flag
-
-
class
Draft_DataMapIteratorOfDataMapOfVertexVertexInfo(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIteratorReturn type: None Parameters: aMap (Draft_DataMapOfVertexVertexInfo &) – Return type: None -
Key()¶ Return type: TopoDS_Vertex
-
Value()¶ Return type: Draft_VertexInfo
-
thisown¶ The membership flag
-
-
class
Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (TopoDS_Edge &) –
- I (Draft_EdgeInfo &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: TopoDS_Edge
-
Value()¶ Return type: Draft_EdgeInfo
-
thisown¶ The membership flag
-
class
Draft_DataMapNodeOfDataMapOfFaceFaceInfo(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (TopoDS_Face &) –
- I (Draft_FaceInfo &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: TopoDS_Face
-
Value()¶ Return type: Draft_FaceInfo
-
thisown¶ The membership flag
-
class
Draft_DataMapNodeOfDataMapOfVertexVertexInfo(*args)¶ Bases:
OCC.TCollection.TCollection_MapNodeParameters: - K (TopoDS_Vertex &) –
- I (Draft_VertexInfo &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle()¶
-
Key()¶ Return type: TopoDS_Vertex
-
Value()¶ Return type: Draft_VertexInfo
-
thisown¶ The membership flag
-
class
Draft_DataMapOfEdgeEdgeInfo(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (Draft_DataMapOfEdgeEdgeInfo &) – Return type: Draft_DataMapOfEdgeEdgeInfo
-
ChangeFind()¶ Parameters: K (TopoDS_Edge &) – Return type: Draft_EdgeInfo
-
ChangeFind1()¶ Parameters: K (TopoDS_Edge &) – Return type: Standard_Address
-
Find()¶ Parameters: K (TopoDS_Edge &) – Return type: Draft_EdgeInfo
-
Find1()¶ Parameters: K (TopoDS_Edge &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (Draft_DataMapOfEdgeEdgeInfo &) – Return type: Draft_DataMapOfEdgeEdgeInfo
-
thisown¶ The membership flag
-
-
class
Draft_DataMapOfFaceFaceInfo(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (Draft_DataMapOfFaceFaceInfo &) – Return type: Draft_DataMapOfFaceFaceInfo
-
ChangeFind()¶ Parameters: K (TopoDS_Face &) – Return type: Draft_FaceInfo
-
ChangeFind1()¶ Parameters: K (TopoDS_Face &) – Return type: Standard_Address
-
Find()¶ Parameters: K (TopoDS_Face &) – Return type: Draft_FaceInfo
-
Find1()¶ Parameters: K (TopoDS_Face &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (Draft_DataMapOfFaceFaceInfo &) – Return type: Draft_DataMapOfFaceFaceInfo
-
thisown¶ The membership flag
-
-
class
Draft_DataMapOfVertexVertexInfo(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapParameters: NbBuckets (int) – default value is 1 Return type: None -
Assign()¶ Parameters: Other (Draft_DataMapOfVertexVertexInfo &) – Return type: Draft_DataMapOfVertexVertexInfo
-
ChangeFind()¶ Parameters: K (TopoDS_Vertex &) – Return type: Draft_VertexInfo
-
ChangeFind1()¶ Parameters: K (TopoDS_Vertex &) – Return type: Standard_Address
-
Find()¶ Parameters: K (TopoDS_Vertex &) – Return type: Draft_VertexInfo
-
Find1()¶ Parameters: K (TopoDS_Vertex &) – Return type: Standard_Address
-
Set()¶ Parameters: Other (Draft_DataMapOfVertexVertexInfo &) – Return type: Draft_DataMapOfVertexVertexInfo
-
thisown¶ The membership flag
-
-
class
Draft_EdgeInfo(*args)¶ Bases:
objectReturn type: None Parameters: HasNewGeometry (bool) – Return type: None -
ChangeFirstPC()¶ Return type: Handle_Geom2d_Curve
-
ChangeGeometry()¶ Return type: Handle_Geom_Curve
-
ChangeSecondPC()¶ Return type: Handle_Geom2d_Curve
-
FirstFace()¶ Return type: TopoDS_Face
-
FirstPC()¶ Return type: Handle_Geom2d_Curve
-
Geometry()¶ Return type: Handle_Geom_Curve
-
RootFace()¶ Parameters: F (TopoDS_Face &) – Return type: None Return type: TopoDS_Face
-
SecondFace()¶ Return type: TopoDS_Face
-
SecondPC()¶ Return type: Handle_Geom2d_Curve
-
thisown¶ The membership flag
-
-
class
Draft_FaceInfo(*args)¶ Bases:
objectReturn type: Parameters: - S (Handle_Geom_Surface &) –
- HasNewGeometry (bool) –
Return type: -
ChangeCurve()¶ Return type: Handle_Geom_Curve
-
ChangeGeometry()¶ Return type: Handle_Geom_Surface
-
Curve()¶ Return type: Handle_Geom_Curve
-
FirstFace()¶ Return type: TopoDS_Face
-
Geometry()¶ Return type: Handle_Geom_Surface
-
RootFace()¶ Parameters: F (TopoDS_Face &) – Return type: None Return type: TopoDS_Face
-
SecondFace()¶ Return type: TopoDS_Face
-
thisown¶ The membership flag
-
class
Draft_Modification(*args)¶ Bases:
OCC.BRepTools.BRepTools_ModificationParameters: S (TopoDS_Shape &) – Return type: None -
Add()¶ - Adds the face F and propagates the draft modification to its neighbour faces if they are tangent. If an error occurs, will return False and ProblematicShape will return the ‘bad’ face.
Parameters: Return type:
-
ConnectedFaces()¶ - Returns all the faces which have been added together with the face <F>.
Parameters: F (TopoDS_Face &) – Return type: TopTools_ListOfShape
-
Error()¶ Return type: Draft_ErrorStatus
-
GetHandle()¶
-
IsDone()¶ - Returns True if Perform has been succesfully called. Otherwise more information can be obtained using the methods Error() and ProblematicShape().
Return type: bool
-
ModifiedFaces()¶ - Returns all the faces on which a modification has been given.
Return type: TopTools_ListOfShape
-
Perform()¶ - Performs the draft angle modification and sets the value returned by the method IsDone. If an error occurs, IsDone will return Standard_False, and an error status will be given by the method Error, and the shape on which the problem appeared will be given by ProblematicShape
Return type: None
-
ProblematicShape()¶ - Returns the shape (Face, Edge or Vertex) on which an error occured.
Return type: TopoDS_Shape
-
Remove()¶ - Removes the face F and the neighbour faces if they are tangent. It will be necessary to call this method if the method Add returns Standard_False, to unset ProblematicFace.
Parameters: F (TopoDS_Face &) – Return type: None
-
thisown¶ The membership flag
-
-
class
Draft_VertexInfo(*args)¶ Bases:
objectReturn type: None -
Edge()¶ Return type: TopoDS_Edge
-
thisown¶ The membership flag
-
-
class
Handle_Draft_DataMapNodeOfDataMapOfEdgeEdgeInfo(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_Draft_DataMapNodeOfDataMapOfFaceFaceInfo(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_Draft_DataMapNodeOfDataMapOfVertexVertexInfo(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode-
static
DownCast()¶
-
GetObject()¶
-
IsNull()¶
-
Nullify()¶
-
thisown¶ The membership flag
-
static
-
class
Handle_Draft_Modification(*args)¶ Bases:
OCC.BRepTools.Handle_BRepTools_Modification-
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()¶
-
-
class
draft¶ Bases:
object-
static
Angle(*args)¶ - Returns the draft angle of the face <F> using the direction <Direction>. The method is valid for : - Plane faces, - Cylindrical or conical faces, when the direction of the axis of the surface is colinear with the direction. Otherwise, the exception DomainError is raised.
Parameters: - F (TopoDS_Face &) –
- Direction (gp_Dir) –
Return type:
-
thisown¶ The membership flag
-
static
-
draft_Angle(*args)¶ - Returns the draft angle of the face <F> using the direction <Direction>. The method is valid for : - Plane faces, - Cylindrical or conical faces, when the direction of the axis of the surface is colinear with the direction. Otherwise, the exception DomainError is raised.
Parameters: - F (TopoDS_Face &) –
- Direction (gp_Dir) –
Return type:
-
register_handle(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases