OCC.Core.Draft module¶
Draft module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_draft.html
-
class
Draft_EdgeInfo
(*args)¶ Bases:
object
- Return type
None:param HasNewGeometry: :type HasNewGeometry: bool :rtype: None
-
Add
()¶ - Parameters
F –
- type F
TopoDS_Face
- rtype
None
-
ChangeFirstPC
()¶ - Return type
opencascade::handle<Geom2d_Curve>
-
ChangeGeometry
()¶ - Return type
opencascade::handle<Geom_Curve>
-
ChangeSecondPC
()¶ - Return type
opencascade::handle<Geom2d_Curve>
-
FirstFace
()¶ - Return type
-
FirstPC
()¶ - Return type
opencascade::handle<Geom2d_Curve>
-
Geometry
()¶ - Return type
opencascade::handle<Geom_Curve>
-
IsTangent
()¶ - Parameters
P –
- type P
gp_Pnt
- rtype
bool
-
RootFace
()¶ - Parameters
F –
- type F
TopoDS_Face
- rtype
None:rtype: TopoDS_Face
-
SecondFace
()¶ - Return type
-
SecondPC
()¶ - Return type
opencascade::handle<Geom2d_Curve>
-
SetNewGeometry
()¶ - Parameters
NewGeom –
- type NewGeom
bool
- rtype
None
-
Tangent
()¶ - Parameters
P –
- type P
gp_Pnt
- rtype
None
-
Tolerance
()¶ - Parameters
tol –
- type tol
float
- rtype
None:rtype: float
-
property
thisown
¶ The membership flag
-
class
Draft_FaceInfo
(*args)¶ Bases:
object
- Return type
None:param S: :type S: Geom_Surface :param HasNewGeometry: :type HasNewGeometry: bool :rtype: None
-
Add
()¶ - Parameters
F –
- type F
TopoDS_Face
- rtype
None
-
ChangeCurve
()¶ - Return type
opencascade::handle<Geom_Curve>
-
ChangeGeometry
()¶ - Return type
opencascade::handle<Geom_Surface>
-
Curve
()¶ - Return type
opencascade::handle<Geom_Curve>
-
FirstFace
()¶ - Return type
-
Geometry
()¶ - Return type
opencascade::handle<Geom_Surface>
-
RootFace
()¶ - Parameters
F –
- type F
TopoDS_Face
- rtype
None:rtype: TopoDS_Face
-
SecondFace
()¶ - Return type
-
property
thisown
¶ The membership flag
-
class
Draft_IndexedDataMapOfEdgeEdgeInfo
(*args)¶ Bases:
object
-
Add
()¶
-
Assign
()¶
-
ChangeFromIndex
()¶
-
ChangeFromKey
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Contains
()¶
-
Exchange
()¶
-
FindFromIndex
()¶
-
FindFromKey
()¶
-
FindIndex
()¶
-
FindKey
()¶
-
ReSize
()¶
-
RemoveFromIndex
()¶
-
RemoveKey
()¶
-
RemoveLast
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
Substitute
()¶
-
Swap
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Draft_IndexedDataMapOfFaceFaceInfo
(*args)¶ Bases:
object
-
Add
()¶
-
Assign
()¶
-
ChangeFromIndex
()¶
-
ChangeFromKey
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Contains
()¶
-
Exchange
()¶
-
FindFromIndex
()¶
-
FindFromKey
()¶
-
FindIndex
()¶
-
FindKey
()¶
-
ReSize
()¶
-
RemoveFromIndex
()¶
-
RemoveKey
()¶
-
RemoveLast
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
Substitute
()¶
-
Swap
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Draft_IndexedDataMapOfVertexVertexInfo
(*args)¶ Bases:
object
-
Add
()¶
-
Assign
()¶
-
ChangeFromIndex
()¶
-
ChangeFromKey
()¶
-
ChangeSeek
()¶
-
Clear
()¶
-
Contains
()¶
-
Exchange
()¶
-
FindFromIndex
()¶
-
FindFromKey
()¶
-
FindIndex
()¶
-
FindKey
()¶
-
ReSize
()¶
-
RemoveFromIndex
()¶
-
RemoveKey
()¶
-
RemoveLast
()¶
-
Seek
()¶
-
Set
()¶
-
Size
()¶
-
Substitute
()¶
-
Swap
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Draft_Modification
(*args)¶ Bases:
OCC.Core.BRepTools.BRepTools_Modification
- Parameters
S –
- type S
TopoDS_Shape
- rtype
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.
- param F
- type F
TopoDS_Face
- param Direction
- type Direction
gp_Dir
- param Angle
- type Angle
float
- param NeutralPlane
- type NeutralPlane
gp_Pln
- param Flag
default value is Standard_True
- type Flag
bool
- rtype
bool
-
Clear
()¶ - Resets on the same shape.
- rtype
None
-
ConnectedFaces
()¶ - Returns all the faces which have been added together with the face <F>.
- param F
- type F
TopoDS_Face
- rtype
TopTools_ListOfShape
-
static
DownCast
(t)¶
-
Error
()¶ - Return type
Draft_ErrorStatus
-
Init
()¶ - Changes the basis shape and resets.
- param S
- type S
TopoDS_Shape
- rtype
None
-
IsDone
()¶ - Returns True if Perform has been succesfully called. Otherwise more information can be obtained using the methods Error() and ProblematicShape().
- rtype
bool
-
ModifiedFaces
()¶ - Returns all the faces on which a modification has been given.
- rtype
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
- rtype
None
-
ProblematicShape
()¶ - Returns the shape (Face, Edge or Vertex) on which an error occured.
- rtype
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.
- param F
- type F
TopoDS_Face
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Draft_VertexInfo
(*args)¶ Bases:
object
- Return type
-
Add
()¶ - Parameters
E –
- type E
TopoDS_Edge
- rtype
None
-
Edge
()¶ - Return type
-
GetChangeParameter
(Draft_VertexInfo self, TopoDS_Edge E) → Standard_Real¶
-
Parameter
()¶ - Parameters
E –
- type E
TopoDS_Edge
- rtype
float
-
SetChangeParameter
(Draft_VertexInfo self, TopoDS_Edge E, Standard_Real value)¶
-
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
draft
¶ Bases:
object
-
static
Angle
()¶ - 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.
- param F
- type F
TopoDS_Face
- param Direction
- type Direction
gp_Dir
- rtype
float
-
property
thisown
¶ The membership flag
-
static